Created attachment 57573 [details] timeadjust window with wrong translation Version: 1.7.0 (using KDE 4.5.5) OS: Linux There is string "Add" in kipiplugin_timeadjust.pot. In the Dutch translation this is translated to "Bijtellen". However, as can be seen in the attached picture, in the red ellips, the used translation is "Toevoegen". However "Toevoegen" is not in the file /usr/share/locale/nl/LC_MESSAGES/kipiplugin_timeadjust.mo prompt:~> strings -3 /usr/share/locale/nl/LC_MESSAGES/kipiplugin_timeadjust.mo | grep Add -B1 -A1 A Kipi plugin for adjusting the timestamp of picture files Add Adjust prompt:~> strings -3 /usr/share/locale/nl/LC_MESSAGES/kipiplugin_timeadjust.mo | grep Toevoegen -B1 -A1 prompt:~> strings -3 /usr/share/locale/nl/LC_MESSAGES/kipiplugin_timeadjust.mo | grep Bijtellen -B1 -A1 Een KIPI-plugin voor het aanpassen van datums en tijden van afbeeldingsbestanden Bijtellen Bijstellen freek@eik113:~> Reproducible: Didn't try Steps to Reproduce: Just open timeadjust in digikam with the Dutch locale. Actual Results: See picture Expected Results: Instead of "Toepassen", "Bijtellen" shoeld be shown.
String is there : https://projects.kde.org/projects/extragear/graphics/kipi-plugins/repository/revisions/5d438c5bb20ba1743335be85ab65f4c7fab99a92/entry/timeadjust/timeadjustdialog.cpp#L283 Gilles Caulier
The solution is to add a context string (use i18nc() instead of i18n()).
As I understand it, the problem is, that Gettext finds the exact same string in some underlying layer like KDELibs that is already loaded and just reuses the translation. So yes, adding a context helps here.
Has the context been added? If so, please change the status to FIXED.
Freek, Nothing changed yet. Look link to source code at #1 Solution is very easy (see #2) Fell free to patch code in git master... Gilles Caulier
Git commit aafe602bf0b27ef2c4c7eed1b01bb0530accde24 by Gilles Caulier. Committed on 21/09/2011 at 15:11. Pushed by cgilles into branch 'master'. add contect info for tanslators BUGS: 267309 M +4 -4 timeadjust/timeadjustdialog.cpp http://commits.kde.org/kipi-plugins/aafe602bf0b27ef2c4c7eed1b01bb0530accde24
Many thanks for your work.