Re: [Gimp-developer] How to distribute translated/translatable python plugins in 2.99
- From: Jehan Pagès <jehan marmottard gmail com>
- To: ofnuts gmx com
- Cc: gimp-developer <gimp-developer-list gnome org>
- Subject: Re: [Gimp-developer] How to distribute translated/translatable python plugins in 2.99
- Date: Tue, 26 Jul 2022 16:48:28 +0200
Hi!
On Mon, Jul 25, 2022 at 11:38 PM Ofnuts via gimp-developer-list <
gimp-developer-list gnome org> wrote:
What is necessary to distribute a translation-enabled python plugin for
2.99?
I assume that the plugin distribution should be self-sufficient since
it cannot assume that translations will be available in some general
repository.
What should the plugin directory look like (it seems it needs a "locale"
subdirectory)?
Indeed.
But adding and "fr.po" file there with some msgid/msgstr
doesn't seem enough.
It must be "compiled" too. `.po` files are source for `.mo` (or `.gmo`)
files.
Also it must be in subdirectories (standard translation organizations). So
if your plug-in is called "my-plug-in", then the .mo file for French would
likely be in locale/fr/LC_MESSAGES/my-plug-in.mo
Are there examples available (outside of Gimp's
source code since these use the general repo).
I am planning to make tutorials for all the GIMP 3.0 API for plug-in
creation, and more generally extension creation. This will include
localization.
We are currently also in the process of reviving https://developer.gimp.org/
(which is very outdated right now).
Anyway that's a lot of work being done right now. We can't give ETA, but it
will happen. :-)
And do menu locations need to be translated as well?
That's actually one of the things I still have to review and make decisions
or changes about. Look at my little checkbox at the bottom of this comment:
https://gitlab.gnome.org/GNOME/gimp/-/issues/8124#note_1493804
The one box still unchecked says "Menu paths" which I believe is what you
are asking about.
Again, it's on my TODO, but I can't give an ETA. My hope is that I can make
time to finish this one for the next dev release. We'll see.
Jehan
--
Ofnuts
_______________________________________________
gimp-developer-list mailing list
List address: gimp-developer-list gnome org
List membership:
https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives: https://mail.gnome.org/archives/gimp-developer-list
--
ZeMarmot open animation film
http://film.zemarmot.net
Liberapay: https://liberapay.com/ZeMarmot/
Patreon: https://patreon.com/zemarmot
Tipeee: https://www.tipeee.com/zemarmot
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]