Raised This Month: $32 Target: $400
 8% 

ML Translation


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 06-21-2019 , 16:42   ML Translation
Reply With Quote #1

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?
__________________
edon1337 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 06-21-2019 , 19:58   Re: ML Translation
Reply With Quote #2

Simply add two different translations for the entire sentence. There may be other differences in other languages beside the plural in the end.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 06-22-2019 , 02:39   Re: ML Translation
Reply With Quote #3

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"
__________________


Last edited by Mordekay; 06-22-2019 at 02:39.
Mordekay is offline
thEsp
BANNED
Join Date: Aug 2017
Old 06-22-2019 , 03:26   Re: ML Translation
Reply With Quote #4

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

Last edited by thEsp; 06-22-2019 at 03:33.
thEsp is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:30.


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