From 0ff3d900fea8dc827211fe040997a11b032ea9a2 Mon Sep 17 00:00:00 2001 From: Lars Jung Date: Fri, 3 Aug 2012 15:09:04 +0200 Subject: [PATCH] Adds localization for filter placeholder. --- README.md | 1 + src/_h5ai/config.js | 6 ++++-- src/_h5ai/js/inc/core/langs.js | 3 ++- src/_h5ai/js/inc/ext/l10n.js | 2 ++ 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8ff4a30c..a1e37087 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,7 @@ It profits from these great projects: * adds Google Analytics support (async) * improves filter (now ignorecase, now only checks if chars in right order) * changes language code `gr` to `el` +* adds localization for filter placeholder * adds `hu` translation by [Rodolffo](http://github.com/Rodolffo) * updates to [jQuery.qrcode](http://larsjung.de/qrcode/) 0.2 * updates to [jQuery.scrollpanel](http://larsjung.de/scrollpanel/) 0.1 diff --git a/src/_h5ai/config.js b/src/_h5ai/config.js index a249a859..88e0efe3 100644 --- a/src/_h5ai/config.js +++ b/src/_h5ai/config.js @@ -341,7 +341,8 @@ var H5AI_CONFIG = { "files": "files", "download": "download", "noMatch": "no match", - "dateFormat": "YYYY-MM-DD HH:mm" + "dateFormat": "YYYY-MM-DD HH:mm", + "filter": "filter" }, "bg": { @@ -383,7 +384,8 @@ var H5AI_CONFIG = { "files": "Dateien", "download": "Download", "noMatch": "keine Treffer", - "dateFormat": "DD.MM.YYYY HH:mm" + "dateFormat": "DD.MM.YYYY HH:mm", + "filter": "Filter" }, "el": { diff --git a/src/_h5ai/js/inc/core/langs.js b/src/_h5ai/js/inc/core/langs.js index 21fc57fb..1c851f55 100644 --- a/src/_h5ai/js/inc/core/langs.js +++ b/src/_h5ai/js/inc/core/langs.js @@ -14,7 +14,8 @@ modulejs.define('core/langs', ['config', '_'], function (config, _) { files: 'files', download: 'download', noMatch: 'no match', - dateFormat: 'YYYY-MM-DD HH:mm' + dateFormat: 'YYYY-MM-DD HH:mm', + filter: 'filter' }, translations = {}, diff --git a/src/_h5ai/js/inc/ext/l10n.js b/src/_h5ai/js/inc/ext/l10n.js index daf7c3f0..c16e2b77 100644 --- a/src/_h5ai/js/inc/ext/l10n.js +++ b/src/_h5ai/js/inc/ext/l10n.js @@ -58,6 +58,8 @@ modulejs.define('ext/l10n', ['_', '$', 'core/settings', 'core/langs', 'core/form $this.text(format.formatDate($this.data('time'))); }); + + $('#filter input').attr('placeholder', currentLang.filter); }, initLangSelector = function (langs) {