RSS/Atom feed Twitter
Site is read-only, email is disabled

What's with the appended %s?

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

3 of 3 messages available
Toggle history

Please log in to manage your subscriptions.

What's with the appended %s? Christian Rose 21 Dec 20:11
  What's with the appended %s? Sven Neumann 27 Dec 12:41
   What's with the appended %s? Christian Rose 27 Dec 13:18
Christian Rose
2002-12-21 20:11:52 UTC (over 21 years ago)

What's with the appended %s?

Recently many messages in gimp have been changed to append " %s", like in this example:

#: app/tools/transform_options.c:223 #, c-format
msgid "Keep Height %s"

The %s seems to be filled in with the return value of a call to gimp_get_mod_name_control ().

What's the purpose of these changes to the translatable messages? Are the ordering of the %s, or the amount of whitespace used, supposed to change with the translations? If they aren't, perhaps moving these %s outside the gettext calls should be considered.

Christian

Sven Neumann
2002-12-27 12:41:13 UTC (over 21 years ago)

What's with the appended %s?

Hi,

Christian Rose writes:

Recently many messages in gimp have been changed to append " %s", like in this example:

#: app/tools/transform_options.c:223 #, c-format
msgid "Keep Height %s"

The %s seems to be filled in with the return value of a call to gimp_get_mod_name_control ().

that function returns the translation for "" and it was introduced to reduce the work of the translators and to eliminate a possible cause of i18n problems. Before this change there were tons of messages like "Keep Height ".

What's the purpose of these changes to the translatable messages? Are the ordering of the %s, or the amount of whitespace used, supposed to change with the translations? If they aren't, perhaps moving these %s outside the gettext calls should be considered.

we have not been sure if translators might need to change it. There's a chance that translators of RTL locales might want to add formatting information. If you (or someone else) can most definitely tell us that this is not the case, we will do as you suggested.

Salut, Sven

Christian Rose
2002-12-27 13:18:51 UTC (over 21 years ago)

What's with the appended %s?

fre 2002-12-27 klockan 12.41 skrev Sven Neumann:

Recently many messages in gimp have been changed to append " %s", like in this example:

#: app/tools/transform_options.c:223 #, c-format
msgid "Keep Height %s"

The %s seems to be filled in with the return value of a call to gimp_get_mod_name_control ().

that function returns the translation for "" and it was introduced to reduce the work of the translators and to eliminate a possible cause of i18n problems. Before this change there were tons of messages like "Keep Height ".

Ok.

What's the purpose of these changes to the translatable messages? Are the ordering of the %s, or the amount of whitespace used, supposed to change with the translations? If they aren't, perhaps moving these %s outside the gettext calls should be considered.

we have not been sure if translators might need to change it. There's a chance that translators of RTL locales might want to add formatting information. If you (or someone else) can most definitely tell us that this is not the case, we will do as you suggested.

Perhaps this could be moved to a lower level -- gtk+ also displays shortcut information, knows about the translation of "" and the like in the current locale, and knows about and adapts to RTL locales. Then this wouldn't need to be taken care of seperately by the GIMP, and the whitespace and %s would not need to be added in GIMP messages.

Christian