mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[fix] Strange space character.
This commit is contained in:
parent
96781e90aa
commit
54217acac1
1 changed files with 4 additions and 4 deletions
|
@ -25,8 +25,8 @@
|
||||||
* Translation
|
* Translation
|
||||||
*/
|
*/
|
||||||
y18n.translate = function(key, options) {
|
y18n.translate = function(key, options) {
|
||||||
options = options || {'locale' : y18n.locale};
|
options = options || {'locale' : y18n.locale};
|
||||||
options.locale = options.locale || y18n.locale;
|
options.locale = options.locale || y18n.locale;
|
||||||
|
|
||||||
// Get translation
|
// Get translation
|
||||||
var translation = this.lookup(key, options);
|
var translation = this.lookup(key, options);
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
return (translation) ? translation.printf(options) : key;
|
return (translation) ? translation.printf(options) : key;
|
||||||
}
|
}
|
||||||
|
|
||||||
y18n.lookup = function(key, options) {
|
y18n.lookup = function(key, options) {
|
||||||
// Default locale
|
// Default locale
|
||||||
if (typeof options.locale === 'undefined') {
|
if (typeof options.locale === 'undefined') {
|
||||||
options.locale = y18n.locale;
|
options.locale = y18n.locale;
|
||||||
|
|
Loading…
Add table
Reference in a new issue