This seems to be a packaging issue. "language-pack-de-base" installs the
"gimp*.mo" files at "/usr/share/locale-langpack/de/LC_MESSAGES", while
gimp searches them at "/usr/share/locale/de/LC_MESSAGES". After manually
copying "/usr/share/locale-langpack/de/LC_MESSAGES/gimp*" to
"/usr/share/locale/de/LC_MESSAGES/", the entry for the new language is
shown in the "Language" dropdown.

Probably "gimp_locale_directory()" returns the wrong directory (called
in gimp_language_store_parser_init() at
https://gitlab.gnome.org/GNOME/gimp/-/blob/0c8a7891f75a9f41cd36fc0efe2ad506a53d0a15/app/widgets/gimplanguagestore-
parser.c).

The "gimp_locale_directory()" function either uses the value from the
"GIMP2_LOCALEDIR" environment variable, OR a compile time absolute
directory ("LOCALEDIR") OR the directory "share/locale" below the GIMP
installation directory, in that order (see "gimp_locale_directory()" at
https://gitlab.gnome.org/GNOME/gimp/-/blob/0c8a7891f75a9f41cd36fc0efe2ad506a53d0a15/libgimpbase/gimpenv.c).

A workaround is to set the GIMP2_LOCALEDIR to "/usr/share/locale-
langpack" before launching gimp.

The solution is probably to set the LOCALEDIR compile time variable to
"/usr/share/locale-langpack" when building gimp.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1875829

Title:
  in kubuntu 20.04 GIMP offers only English language

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gimp/+bug/1875829/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to