Adds localization for filter placeholder.

This commit is contained in:
Lars Jung 2012-08-03 15:09:04 +02:00
parent ce75e45b03
commit 0ff3d900fe
4 changed files with 9 additions and 3 deletions

View file

@ -37,6 +37,7 @@ It profits from these great projects:
* adds Google Analytics support (async) * adds Google Analytics support (async)
* improves filter (now ignorecase, now only checks if chars in right order) * improves filter (now ignorecase, now only checks if chars in right order)
* changes language code `gr` to `el` * changes language code `gr` to `el`
* adds localization for filter placeholder
* adds `hu` translation by [Rodolffo](http://github.com/Rodolffo) * adds `hu` translation by [Rodolffo](http://github.com/Rodolffo)
* updates to [jQuery.qrcode](http://larsjung.de/qrcode/) 0.2 * updates to [jQuery.qrcode](http://larsjung.de/qrcode/) 0.2
* updates to [jQuery.scrollpanel](http://larsjung.de/scrollpanel/) 0.1 * updates to [jQuery.scrollpanel](http://larsjung.de/scrollpanel/) 0.1

View file

@ -341,7 +341,8 @@ var H5AI_CONFIG = {
"files": "files", "files": "files",
"download": "download", "download": "download",
"noMatch": "no match", "noMatch": "no match",
"dateFormat": "YYYY-MM-DD HH:mm" "dateFormat": "YYYY-MM-DD HH:mm",
"filter": "filter"
}, },
"bg": { "bg": {
@ -383,7 +384,8 @@ var H5AI_CONFIG = {
"files": "Dateien", "files": "Dateien",
"download": "Download", "download": "Download",
"noMatch": "keine Treffer", "noMatch": "keine Treffer",
"dateFormat": "DD.MM.YYYY HH:mm" "dateFormat": "DD.MM.YYYY HH:mm",
"filter": "Filter"
}, },
"el": { "el": {

View file

@ -14,7 +14,8 @@ modulejs.define('core/langs', ['config', '_'], function (config, _) {
files: 'files', files: 'files',
download: 'download', download: 'download',
noMatch: 'no match', noMatch: 'no match',
dateFormat: 'YYYY-MM-DD HH:mm' dateFormat: 'YYYY-MM-DD HH:mm',
filter: 'filter'
}, },
translations = {}, translations = {},

View file

@ -58,6 +58,8 @@ modulejs.define('ext/l10n', ['_', '$', 'core/settings', 'core/langs', 'core/form
$this.text(format.formatDate($this.data('time'))); $this.text(format.formatDate($this.data('time')));
}); });
$('#filter input').attr('placeholder', currentLang.filter);
}, },
initLangSelector = function (langs) { initLangSelector = function (langs) {