Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internationalization (saver.py) #6

Open
Smile4ever opened this issue May 20, 2015 · 1 comment
Open

Internationalization (saver.py) #6

Smile4ever opened this issue May 20, 2015 · 1 comment

Comments

@Smile4ever
Copy link

Hi. I would like to translate saver.py to Dutch (all strings). What's the best way?

@akkana
Copy link
Owner

akkana commented May 23, 2015

I'm actually not sure how to translate a plug-in that's added to your install rather than being part of the standard GIMP build.
Probably saver.py would need underscores added, e.g. msg = _("Saving ") + filename
instead of msg = "Saving " + filename, for all the strings that need to be translated.
https://git.gnomegettext.install("gimp20-python", gimp.locale_directory, plus the line:
unicode=True).org/browse/gimp/tree/plug-ins/pygimp/plug-ins
at the beginning after the imports. It looks like not all the Python plug-ins in the GIMP source tree are translated, but this one might work as an example:
https://git.gnome.org/browse/gimp/tree/plug-ins/pygimp/plug-ins/py-slice.py
I'm not sure where the corresponding .po or other translation files need to be installed, though.

I'd be happy to take patches to internationalize Saver.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants