File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " LightPivotTable" ,
3
3
"author" : " ZitRo" ,
4
- "version" : " 1.4.5 " ,
4
+ "version" : " 1.4.6 " ,
5
5
"description" : " A lightweight pivot table for MDX2JSON source for InterSystems Cache" ,
6
6
"main" : " test/testServer.js" ,
7
7
"repository" : {
Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ DataSource.prototype.getCurrentData = function (callback) {
186
186
obj , i , u ;
187
187
188
188
if ( ! arr . length ) return {
189
- error : "No DrillThrough data."
189
+ error : pivotLocale . get ( 4 )
190
190
} ;
191
191
192
192
for ( i in arr [ 0 ] ) {
Original file line number Diff line number Diff line change @@ -38,6 +38,11 @@ PivotLocale.prototype.LOCALES = [
38
38
"ru" : "Возникла ошибка при получении данных с сервера." ,
39
39
"en" : "Error while trying to retrieve data from server." ,
40
40
"de" : "Beim Abrufen der Daten vom Server ist ein Fehler aufgetreten."
41
+ } ,
42
+ { // 4
43
+ "ru" : "Нет данных для отображения." ,
44
+ "en" : "No data to display." ,
45
+ "de" : "Keine Daten zum anzeigen."
41
46
}
42
47
] ;
43
48
@@ -71,7 +76,7 @@ PivotLocale.prototype.setLocale = function (locale) {
71
76
*/
72
77
PivotLocale . prototype . get = function ( index ) {
73
78
74
- return ( this . LOCALES [ index ] || { } ) [ this . LOCALE ] || "{not localized}" ;
79
+ return ( this . LOCALES [ index ] || { } ) [ this . LOCALE ] || ( "{not localized: " + index + "}" ) ;
75
80
76
81
} ;
77
82
You can’t perform that action at this time.
0 commit comments