Re: [Gimp-developer] GIMP 2.99.12 Python User Script's Localization

2022-08-31 Thread ShiroYuki Mot via gimp-developer-list
Dear Ofnuts, Thanks for your reply. In my environment, the results are a little different. Are these useful? GIMP 2.99.12 Python Console Python 3.10.6 (main, Aug 12 2022, 18:00:29) [GCC 12.1.0 64 bit (AMD64)] >>> import os >>> os.environ['LANG'] Traceback (most recent call last): File "",

Re: [Gimp-developer] GIMP 2.99.12 Python User Script's Localization

2022-08-31 Thread Ofnuts via gimp-developer-list
PS: of course your Gimp should be working in Japanese (which it will be if these environment variables are set when you start Gimp) On 31/08/2022 14:45, Ofnuts via gimp-developer-list wrote: Just re-checked, works for me. What are the environment values in the Python console? >>>

Re: [Gimp-developer] GIMP 2.99.12 Python User Script's Localization

2022-08-31 Thread Ofnuts via gimp-developer-list
Just re-checked, works for me. What are the environment values in the Python console? >>> os.environ['LANG'] 'fr_FR.UTF-8' >>> os.environ['LANGUAGE'] 'fr_FR' 'fr_FR' should be 'ja_JP' for you (and possibly only one of these is necessary) On 31/08/2022 10:58, ShiroYuki Mot wrote: Not

Re: [Gimp-developer] GIMP 2.99.12 Python User Script's Localization

2022-08-31 Thread ShiroYuki Mot via gimp-developer-list
Not localized! Am I doing something wrong? (I've tried replacing '_' with '-' or renaming the .mo file, but the result was the same.) cmd.exe Tree View Microsoft Windows [Version 10.0.19044.1889] (c) Microsoft Corporation. All rights reserved. C:\Users\UserA>tree

Re: [Gimp-developer] GIMP 2.99.12 Python User Script's Localization

2022-08-30 Thread ShiroYuki Mot via gimp-developer-list
Dear Ofnuts. Thanks for presenting the solution. It was detailed and easy to understand. I'm glad that this clears up my questions. :) I'll try this tonight. 2022年8月30日(火) 18:40 Ofnuts via gimp-developer-list < gimp-developer-list@gnome.org>: > My own plugin does: > > def do_set_i18n(self,

Re: [Gimp-developer] GIMP 2.99.12 Python User Script's Localization

2022-08-30 Thread Ofnuts via gimp-developer-list
My own plugin does:     def do_set_i18n(self, *args):     print(f'do_set_i18n({args})')     return True, 'ofn-guides-presets',None (where 'ofn-guides-presets' is the same same as the plugin python file itself, and as I understand it, if the I18N domain is the same name as the plugin

[Gimp-developer] GIMP 2.99.12 Python User Script's Localization

2022-08-29 Thread ShiroYuki Mot via gimp-developer-list
In the official page at https://www.gimp.org/news/2022/08/27/gimp-2-99-12-released/, You say that "with all gettext catalogs under the locale/ folder of the plug-in directory, and named the same way as the plug-in itself". Please teach me 'How TO do that'. On OS, Windows, If I placed my script