[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Can not translate %s%s%s

From: Dovák István <dovak.istvan_at_otka.hu>
Date: Mon, 14 Dec 2009 17:51:23 +0100
Hi,

I am translating TSVN. From my point of view it is hard or sometimes impossible to translate resources correctly in which %s occurs more than 2 times. There is an other thing to mention here. Please do not use %s (more than one time) at the end of a string. Because it it totally useless but may cause a translation problem when a %s is left out by the translators mistake.
- My recommendation would be (instead of sprintf(buf, "SouthPark %s%s", a, b); you may split into two part sprintf(temp, "%s%s", a, b); sprintf(buf, "SouthPark%s", temp); )
- Also there may be an bigger improvment to intruduce a "custom-sprintf" function that can change the order of %s. eg: customsprintf("Import %s[1], to %s[2]%s[3]", "bill", "gates", "family"); this should be translated to customsprintf("%s[3] %s[2] import to %s[1]", "bill", "gates", "family");

This is not a big thing, makes some trouble only in a few cases. So it is not urgent, but would be nice.

Thanks,
Istvan

eg:
#. Resource IDs: (229)
#, c-format
msgid "Import %s to %s%s"

eg: 
#. Resource IDs: (229)
#, c-format
msgid "Merging from %s, revision %s to %s, revision %s into %s, %s%s%s"

Received on 2009-12-14 18:47:55 CET

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.