diff options
author | sgiehl <stefan@piwik.org> | 2013-09-14 03:40:37 +0400 |
---|---|---|
committer | sgiehl <stefan@piwik.org> | 2013-09-14 03:40:37 +0400 |
commit | 55cbbec3d77b162103eb90e244d476404704d641 (patch) | |
tree | f8a5e85ef22325c4796111d8cd2aa291203bbed3 /plugins/CoreHome | |
parent | 7589d301b04fba494557ca8dae1a12bd3476363a (diff) |
refs #4151 refactored some more usages of _js hack
Diffstat (limited to 'plugins/CoreHome')
-rw-r--r-- | plugins/CoreHome/CoreHome.php | 4 | ||||
-rw-r--r-- | plugins/CoreHome/javascripts/dataTable.js | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/plugins/CoreHome/CoreHome.php b/plugins/CoreHome/CoreHome.php index f6f1a5a3a3..062b638092 100644 --- a/plugins/CoreHome/CoreHome.php +++ b/plugins/CoreHome/CoreHome.php @@ -103,5 +103,9 @@ class CoreHome extends \Piwik\Plugin $translationKeys[] = 'CoreHome_ExcludeRowsWithLowPopulation'; $translationKeys[] = 'CoreHome_DataTableIncludeAggregateRows'; $translationKeys[] = 'CoreHome_DataTableExcludeAggregateRows'; + $translationKeys[] = 'CoreHome_Default'; + $translationKeys[] = 'CoreHome_PageOf'; + $translationKeys[] = 'CoreHome_FlattenDataTable'; + $translationKeys[] = 'CoreHome_UnFlattenDataTable'; } }
\ No newline at end of file diff --git a/plugins/CoreHome/javascripts/dataTable.js b/plugins/CoreHome/javascripts/dataTable.js index 3bcae5609f..c9e64d42bc 100644 --- a/plugins/CoreHome/javascripts/dataTable.js +++ b/plugins/CoreHome/javascripts/dataTable.js @@ -469,7 +469,7 @@ dataTable.prototype = // only show this string if there is some rows in the datatable if (totalRows != 0) { - var str = sprintf(_pk_translate('CoreHome_PageOf_js'), offset + '-' + offsetEndDisp, totalRows); + var str = sprintf(_pk_translate('CoreHome_PageOf'), offset + '-' + offsetEndDisp, totalRows); $(this).text(str); } } @@ -963,7 +963,7 @@ dataTable.prototype = text = _pk_translate(text); if (text.indexOf('%s') > 0) { text = text.replace('%s', '<br /><span class="action">» '); - if (addDefault) text += ' (' + _pk_translate('CoreHome_Default_js') + ')'; + if (addDefault) text += ' (' + _pk_translate('CoreHome_Default') + ')'; text += '</span>'; } return text; @@ -1003,7 +1003,7 @@ dataTable.prototype = // handle flatten $('.dataTableFlatten', domElem) .each(function () { - setText(this, 'flat', 'CoreHome_UnFlattenDataTable_js', 'CoreHome_FlattenDataTable_js'); + setText(this, 'flat', 'CoreHome_UnFlattenDataTable', 'CoreHome_FlattenDataTable'); }) .click(generateClickCallback('flat')); |