mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-17 13:53:57 -07:00
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.
23 lines
473 B
JavaScript
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
|
|
};
|
|
}
|