After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 132509 - Allow to choose language in text tool
Allow to choose language in text tool
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Tools
1.x
Other All
: Normal enhancement
: 2.8
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks: 136740
 
 
Reported: 2004-01-25 23:22 UTC by Sven Neumann
Modified: 2009-08-04 20:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sven Neumann 2004-01-25 23:22:44 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.
Comment 1 Sven Neumann 2004-01-27 12:04:53 UTC
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()).
Comment 2 Ari Pollak 2004-04-24 01:24:11 UTC
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.
Comment 3 Sven Neumann 2005-06-13 09:47:07 UTC
Regarding comment #2, this is already handled in bug #170299.
Comment 4 weskaggs 2007-12-12 04:44:39 UTC
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

Comment 5 Sven Neumann 2007-12-12 06:52:30 UTC
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.
Comment 6 Sven Neumann 2008-02-07 16:52:23 UTC
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.
Comment 7 Sven Neumann 2008-09-20 21:48:26 UTC
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.
Comment 8 Martin Nordholts 2009-07-16 07:54:08 UTC
Do you have any code to share? I am interested in continuing this work.
Comment 9 Sven Neumann 2009-07-16 20:01:49 UTC
All the code is there in the code repository.
Comment 10 Sven Neumann 2009-08-04 20:47:02 UTC
This is now implemented in the master branch and pushed. Closing as FIXED.