AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   ML Translation (https://forums.alliedmods.net/showthread.php?t=317014)

edon1337 06-21-2019 16:42

ML Translation
 
I'm encountering a problem with ML system, if we have

ROUND_START = Round starts in %d second%s

which is going to translate to Round starts in 10 seconds or Round starts in 1 second, that doesn't mean every language has 's' at the end of 'second'.

The question is, how can I make the %s different for each language? I'm thinking of adding a PLURAL for each language like:

PHP Code:

[en]
PLURAL s
ROUND_START 
Round starts in %d second%(%s is PLURAL)

[
al]
PLURAL a
ROUND_START 
Rundi fillon ne %d sekond%

Is there a better solution?

OciXCrom 06-21-2019 19:58

Re: ML Translation
 
Simply add two different translations for the entire sentence. There may be other differences in other languages beside the plural in the end.

Mordekay 06-22-2019 02:39

Re: ML Translation
 
Exactly. In German it would be
Code:

[de]
ROUND_START = Runde startet in einer Sekunde

And you wouldn't need a placeholder for "1" as singular is always "1" :wink:

thEsp 06-22-2019 03:26

Re: ML Translation
 
Simply avoid this, there are more than one plural vowels/consonants in every language.


All times are GMT -4. The time now is 17:25.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.