mirror of
https://github.com/grocy/grocy.git
synced 2025-08-19 03:40:10 +00:00
Fixed frontend translation with numbered arguments did not work (after upgrading gettext-translator)
This commit is contained in:
@@ -249,7 +249,7 @@ __t = function(text, ...placeholderValues)
|
||||
}
|
||||
}
|
||||
|
||||
return Grocy.Translator.__(text, ...placeholderValues)
|
||||
return sprintf(Grocy.Translator.__(text, ...placeholderValues), ...placeholderValues);
|
||||
}
|
||||
__n = function(number, singularForm, pluralForm, isQu = false)
|
||||
{
|
||||
|
Reference in New Issue
Block a user