forked from mirrors/0ad
b1a116db37
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.
24 lines
473 B
JavaScript
24 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
|
|
};
|
|
}
|