RSS/Atom feed Twitter
Site is read-only, email is disabled

translate menu mod

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

10 of 10 messages available
Toggle history

Please log in to manage your subscriptions.

translate menu mod Ek kian 08 Jan 05:02
  translate menu mod Sven Neumann 10 Jan 20:44
   translate menu mod Ek kian 11 Jan 00:15
    translate menu mod Alexia Death 11 Jan 11:53
     translate menu mod Alexandre Prokoudine 11 Jan 12:36
      translate menu mod Sven Neumann 13 Jan 20:19
       translate menu mod Alexandre Prokoudine 13 Jan 22:42
        translate menu mod Sven Neumann 17 Jan 21:37
         translate menu mod Kevin Cozens 18 Jan 05:29
          translate menu mod Sven Neumann 18 Jan 22:08
Ek kian
2011-01-08 05:02:00 UTC (about 14 years ago)

translate menu mod

hi,
i usually modify menu directly from image-menu.xml, but that made menu is broken on other language than English.

what is the right steps to do menu modification so the menu still can be translateable to other language?

Thanks for any help or information.

Regards, ek kian

Sven Neumann
2011-01-10 20:44:16 UTC (about 14 years ago)

translate menu mod

On Sat, 2011-01-08 at 12:02 +0700, Ek kian wrote:

i usually modify menu directly from image-menu.xml, but that made menu is broken on other language than English.

what is the right steps to do menu modification so the menu still can be translateable to other language?

The right step is to get your changes upstream. What exactly are you changing and why?

Sven

Ek kian
2011-01-11 00:15:09 UTC (about 14 years ago)

translate menu mod

i only create new "Photo" menu where consist of many photography related functions,
to speed up our workflow on editing photo rather than jumping around on the menu.

can you be more specific about the steps? do i need to call command "update-po"?

Thanks,
ek kian

On Tue, Jan 11, 2011 at 3:44 AM, Sven Neumann wrote:

On Sat, 2011-01-08 at 12:02 +0700, Ek kian wrote:

i usually modify menu directly from image-menu.xml, but that made menu is broken on other language than English.

what is the right steps to do menu modification so the menu still can be translateable to other language?

The right step is to get your changes upstream. What exactly are you changing and why?

Sven

Alexia Death
2011-01-11 11:53:15 UTC (about 14 years ago)

translate menu mod

On Tue, Jan 11, 2011 at 2:15 AM, Ek kian wrote:

i only create new "Photo" menu where consist of many photography related functions,
to speed up our workflow on editing photo rather than jumping around on the menu.

You are maybe better off creating this menu using script-fu. That would allow for very easy deployment in vanilla gimp and woudnt mess anything up. If you use strings that have translations in their original location, you may even get translation working, tho Im not sure how script-fu and localization interact specially in regard to lables. But since the menus do contain localized script names, it should be supported.

Alexandre Prokoudine
2011-01-11 12:36:53 UTC (about 14 years ago)

translate menu mod

On 1/11/11, Alexia Death wrote:

anything up. If you use strings that have translations in their original location, you may even get translation working, tho Im not sure how script-fu and localization interact specially in regard to lables.

Checboxes and suchlike in FX Foundry scripts dialogs are partly translated, because some messages ara translated in po-script-fu/*.po.

Alexandre Prokoudine http://libregraphicsworld.org

Sven Neumann
2011-01-13 20:19:57 UTC (about 14 years ago)

translate menu mod

On Tue, 2011-01-11 at 15:36 +0300, Alexandre Prokoudine wrote:

On 1/11/11, Alexia Death wrote:

anything up. If you use strings that have translations in their original location, you may even get translation working, tho Im not sure how script-fu and localization interact specially in regard to lables.

Checboxes and suchlike in FX Foundry scripts dialogs are partly translated, because some messages ara translated in po-script-fu/*.po.

Why doesn't FX Foundry install its own po files in its own translation domain? Script-Fu has support for registering an additional translation domain.

Sven

Alexandre Prokoudine
2011-01-13 22:42:32 UTC (about 14 years ago)

translate menu mod

On 1/13/11, Sven Neumann wrote:

Why doesn't FX Foundry install its own po files in its own translation domain? Script-Fu has support for registering an additional translation domain.

Because you said it was impossible :)

http://www.mail-archive.com/gimp-developer@lists.xcf.berkeley.edu/msg19130.html

And Kevin agreed :)

Alexandre Prokoudine http://libregraphicsworld.org

Sven Neumann
2011-01-17 21:37:29 UTC (about 14 years ago)

translate menu mod

On Fri, 2011-01-14 at 01:42 +0300, Alexandre Prokoudine wrote:

On 1/13/11, Sven Neumann wrote:

Why doesn't FX Foundry install its own po files in its own translation domain? Script-Fu has support for registering an additional translation domain.

Because you said it was impossible :)

http://www.mail-archive.com/gimp-developer@lists.xcf.berkeley.edu/msg19130.html

And Kevin agreed :)

Um, sorry. Somehow I was under the impression that it should work. But you are right, it's supported for plug-ins but not (yet) for Script-Fu scripts.

Sven

Kevin Cozens
2011-01-18 05:29:15 UTC (about 14 years ago)

translate menu mod

Sven Neumann wrote:

Um, sorry. Somehow I was under the impression that it should work. But you are right, it's supported for plug-ins but not (yet) for Script-Fu scripts.

Are translations enabled on all plug-ins? What about for Python scripts?

Having taken a look at a plugin just after I wrote those initial questions I remember we talked about adding a _ function (or something like that) so that Script-Fu would have a way to mark strings for translation allowing for getenv(?) to be called during runtime.

Sven Neumann
2011-01-18 22:08:00 UTC (about 14 years ago)

translate menu mod

On Tue, 2011-01-18 at 00:29 -0500, Kevin Cozens wrote:

Sven Neumann wrote:

Um, sorry. Somehow I was under the impression that it should work. But you are right, it's supported for plug-ins but not (yet) for Script-Fu scripts.

Are translations enabled on all plug-ins? What about for Python scripts?

Python scripts are full-fledged plug-ins and can use the framework that exists for GIMP plug-ins. There's API to register a translation domain and this allows third-party plug-ins to install their own message catalogs.

Having taken a look at a plugin just after I wrote those initial questions I remember we talked about adding a _ function (or something like that) so that Script-Fu would have a way to mark strings for translation allowing for getenv(?) to be called during runtime.

Script-Fu has that already (and it's gettext that gets called, or actually dgetext). However so far the message is translated in the standard script-fu translation domain so this doesn't work for third-party scripts.

Sven