[etoys-dev] Translation of strings with arguments
Bert Freudenberg
bert at freudenbergs.de
Tue Mar 6 09:42:16 EST 2012
Hi folks,
I just noticed a problem in the new strings for translation. This way of assembling a string makes it very hard for translators:
attachmentEdgeString
^ 'choose attachment edge' translated, ' (', 'now' translated, ' ', attachmentEdge asString translated, ')'
The proper way would be using the #format: message:
attachmentEdgeString
^ 'choose attachment edge (now {1})' translated format: {attachmentEdge asString translated}
Below are three instances of this problem I noticed, but possibly there are more - you know best what you added, so please fix it, too ;)
- Bert -
==============================
+#: Etoys-Scripting_Support,FollowingWatcher>>addCustomMenuItems:hand:
+msgid "currently"
+msgstr ""
+
+#: Etoys-Scripting_Support,FollowingWatcher>>addCustomMenuItems:hand:,FollowingWatcher>>chooseOffset
+msgid "offset"
+msgstr ""
+
+#: Etoys-Scripting_Support,FollowingWatcher>>attachmentEdgeString
+msgid "choose attachment edge"
+msgstr ""
+
+#: Etoys-Scripting_Support,FollowingWatcher>>attachmentEdgeString
+msgid "now"
+msgstr ""
+
+#: Etoys-Scripting,NewVariableDialogMorph>>askUserForNewType
+msgid ""
+"Choose the TYPE\n"
+"for {1}\n"
msgstr ""
+#: Etoys-Scripting,NewVariableDialogMorph>>askUserForNewType
+msgid ""
+"\n"
+"(currently {2})"
+msgstr ""
+
More information about the etoys-dev
mailing list