0ad/binaries/data/mods/mod/globalscripts/l10n.js
elexis b1a116db37 Move translate functions from mod/globalscripts/ to mod/gui/common/.
This throws reference errors at JS compile time when attempting to
translate strings in the simulation.

Differential Revision: https://code.wildfiregames.com/D1075
Refs D619
Reviewed By: bb
This was SVN commit r20549.
2017-11-28 18:48:52 +00:00

23 lines
473 B
JavaScript

/**
* Function is used by the extract-messages tool.
* So it may only be used on a plain string,
* it won't have any effect on a calculated string.
*/
function markForTranslation(message)
{
return message;
}
function markForTranslationWithContext(context, message)
{
return message;
}
function markForPluralTranslation(singularMessage, pluralMessage, number)
{
return {
"message": singularMessage,
"pluralMessage": pluralMessage,
"pluralCount": number
};
}