GNOME Bugzilla – Bug 312941
Translations do not work at all
Last modified: 2006-04-25 22:23:59 UTC
Please describe the problem: In Tiny-Fu 1.0, translations do not work. Regardless of the language environment, the menu entries and GUI labels always display in English. Steps to reproduce: 1. Start GIMP with LANG set to anything not being 'en' 2. Navigate to Tiny-Fu related menu entries and 3. Launch some of them Actual results: There is a problem with the names for the .mo files - using a file monitor, one can see that gimp-tiny-fu-tiny-fu is searched, but not found - but renaming the file doesn't fix this. Expected results: Localized menus Does this happen every time? Yes Other information:
Handling of i18n should be redone in tiny-fu, equivalent to the changes that have recently been applied to the plug-in template.
Created attachment 50417 [details] [review] proposed changes
That patch has issues since it will break relocalibility which is important for the package to work on Win32.
2005-08-08 Kevin Cozens <kcozens@cvs.gnome.org> * tiny-fu/tiny-fu-intl.h: Don't append -tiny-fu to GETTEXT_PACKAGE. Spotted by Sven Neumann. Fix for bug #312941. The above change was made to both branches of Tiny-Fu. Now awaiting for confirmation that translations are working once again in Windows.
Translations are working once again on Windows. Closing this report.
Reopening this report. Michael Shumacher has reported that translations are still not working in Tiny-Fu when used with GIMP for Windows.
The problem is the fixed LOCALEDIR that was introduced by the patch. On Windows, the location of the translations can only be determined when GIMP is run - there is no fixed location where GIMP is installed (we have drive letters, for example), the file system is localized (different names for directories, depending on the language), and the directory structure simply isn't a fxied tree like on unix systems. Doesn't mean that the locale files have to be in GIMP's installation directory - there is a place for shared files - but the definite location can only be determined at runtime.
I think I pointed out that the changes that I proposed in comment #2 are wrong and should not be applied. As far as I understood comment #4, this hasn't happened and the only change that has been done is not to append -tiny-fu to GETTEXT_PACKAGE in tiny-fu-intl.h. I don't see how that introduces a fixed LOCALEDIR. BTW, the changes that have been made to the plug-in template should better be reverted as well...
Translations are working in 1.0.1