GNOME Bugzilla – Bug 132509
Allow to choose language in text tool
Last modified: 2009-08-04 20:47:02 UTC
Sometimes it is useful to tell Pango what language the text it should render is written in. GIMP's text tool could offer a way to select the language. The problem is where to get a list of languages from and how to get these names translated. There seems to a list of languages and their translated names available here: http://www2.iro.umontreal.ca/translation/registry.cgi?domain=iso_639 It should be evaluated if this package can be useful. It might need some changes like the addition of a pkg-config file.
Just for the sake of completeness: Currently the language is taken from the locale using the same code that GTK+ uses to determine the default language (see app/text/gimptext.c: gimp_text_get_default_language()).
I'm not sure if I should file a different bug about this: it seems that the text input box is always Sans no matter what the selected font is; this could cause a problem for non-Unicode fonts, or things like Webdings.
Regarding comment #2, this is already handled in bug #170299.
The link in this bug report doesn't work. According to the Pango docs, language names are in RFC-3066 format, and it looks like a list of them can be found here: http://www.evertype.com/standards/iso639/iana-lang-assignments.html
That table is certainly far from being complete. We would need a complete list and we would also need to have it translated into every language supported by GIMP. So you better look for a third-party library that provides this information or this enhancement request is not going to be implemented.
I am implementing this now based on the iso-codes package. The same infrastructure can hopefully be reused for for selecting the user interface language in the Preferences dialog.
I ran into some problems here with GtkEntryCompletion and I am also unsure about where to add the Language entry. The code is currently not used. Let's bump this to 2.8. This should not block the release.
Do you have any code to share? I am interested in continuing this work.
All the code is there in the code repository.
This is now implemented in the master branch and pushed. Closing as FIXED.