It is currently Thu Mar 28, 2024 9:01 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 18 posts ] 
Author Message
 Post subject: interface language for G'MIC
PostPosted: Sat Jun 20, 2015 11:31 am  (#1) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14801
Location: roma, italy
maybe a stupid question, but at the moment for me it's serious:
I'm working for the moment with a different computer (mine has to be repared).
Installed Gimp 2.8.14
Changed in Preferences the Interface Language to English
Gimp starts in English, OK
Installed G'MIC 1.6.5 pre
When activating G'MIC to select a filter for my current image I get as G'MIC interface language Italian.
That sounds strange to me because in my home PC I had G'MIC in English, as GIMP, and I don't remember to have set up anything specific for G'MIC Language.
How can I have G'MIC also speaking English, as Gimp?
Thanks for any help

(to complete the info: my home PC is running Windows 7 32-bits, this one I'm using now is running Windows 8.1 64-bits)

_________________
"Where am I ?"


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: interface language for G'MIC
PostPosted: Sat Jun 20, 2015 1:23 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
You can override the default locale used by G'MIC, by setting the 'LANG' environment variable.
On Linux, for instance :
$ export LANG=en
$ gimp


On Windows, I don't know how to do this, probably by setting the properties of the executable ?
Not sure.


Top
 Post subject: Re: interface language for G'MIC
PostPosted: Sat Jun 20, 2015 1:29 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14801
Location: roma, italy
thanks David, unfortunately I don't know either what to set under Windows G'MIC
is it not possible for the plug-in (which works under Gimp) to take the language from Gimp?
in Gimp there s an easy way to set this and I did it, my Gimp speaks English

_________________
"Where am I ?"


Top
 Post subject: Re: interface language for G'MIC
PostPosted: Sun Jun 21, 2015 5:08 am  (#4) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
No it's not possible for the plug-in to get the locale from the GIMP preferences right now.


Top
 Post subject: Re: interface language for G'MIC
PostPosted: Thu Jun 25, 2015 5:16 am  (#5) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
There is one page you can refer to, to change the default language of GIMP, this should work for G'MIC too :

http://docs.gimp.org/en/gimp-fire-up.html

(set variable LANG).


Top
 Post subject: Re: interface language for G'MIC
PostPosted: Thu Jun 25, 2015 5:46 am  (#6) 
Offline
Script Coder
User avatar

Joined: Dec 27, 2014
Posts: 508
@David:
Gimp will not necessarily use the language selected by the LANG environment variable - if you use Edit>Preferences>Interface>Language to select a different language, Gimp will use that instead.

The language currently selected for any given user is stored in the user's gimprc file (~/.gimp-2.8/gimprc) which starts like this:
# GIMP gimprc
#
# This is your personal gimprc file.  Any variable defined in this file takes
# precedence over the value defined in the system-wide gimprc:
# /etc/gimp/2.0/gimprc
# Most values can be set within GIMP by changing some options in the
# Preferences dialog.

(language "en_GB")

Perhaps G'MIC could get the language selection from that file?

Edit:
there is a libgimp convenience function to query entries in the gimprc file:
http://developer.gimp.org/api/2.0/libgi ... mprc-query


Top
 Post subject: Re: interface language for G'MIC
PostPosted: Thu Jun 25, 2015 7:43 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
Ha thanks jonait2, I've been able to use it to set the default language of the G'MIC plug-in interface from the one defined in the GIMP preferences (if any) :

https://github.com/dtschump/gmic/commit ... addee65b6f

Will be available for the next G'MIC release. Thanks for the suggestion!


Top
 Post subject: Re: interface language for G'MIC
PostPosted: Thu Jun 25, 2015 8:02 am  (#8) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14801
Location: roma, italy
thanks David and Jonathan!
as said in previous post, I did already the set-up for Gimp in preferences, and it works showing English
in the meantime I added also the system variable LANG set to EN and it seems that is "received" by G'MIC
in any case i'm sure it is much better to link G'MIC language to Gimp language, as Jonathan and David agreed.
Hence: next release => one single choice for both Gimp and G'MIC
Thanks again!

_________________
"Where am I ?"


Top
 Post subject: Re: interface language for G'MIC
PostPosted: Thu Jun 25, 2015 9:32 am  (#9) 
Offline
Script Coder
User avatar

Joined: Dec 27, 2014
Posts: 508
Glad to help, David.


Top
 Post subject: Re: interface language for G'MIC
PostPosted: Wed Jul 01, 2015 11:48 am  (#10) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2231
Location: Poland
My countryman POGO compiled for me Gmic from git.
Translating acts great for windows now (never earlier)
Technical attention for monitoring - after is starting Normal - should be probably Preview size...
Is possible to to add (on solid) correction Samj for version portable?
- Modifier gmic.cpp pour assurer la compatibilité avec nos versions Gimp Portable
        if (!_path_rc) _path_rc = getenv("GMIC_PATH");
        if (!_path_rc) _path_rc = getenv("GMIC_GIMP_PATH");
                    remplace :
        if (!_path_rc) _path_rc = getenv("GMIC_PATH");


Attachments:
Lang1.png
Lang1.png [ 29.71 KiB | Viewed 3535 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: interface language for G'MIC
PostPosted: Fri Jul 17, 2015 9:20 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2231
Location: Poland
:ninja

_________________
Image

Slava
Ukraini!


Top
 Post subject: Re: interface language for G'MIC
PostPosted: Sat Jul 18, 2015 3:02 am  (#12) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
I've added GMIC_GIMP_PATH as default valid path for the gmicrc folder, so the Samj's patch won't be necessary anymore.


Top
 Post subject: Re: interface language for G'MIC
PostPosted: Sat Jul 18, 2015 9:20 am  (#13) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14801
Location: roma, italy
does this mean that if I opted for English Language in GIMP, G'MIC will "speak English" too?
for the moment I do not see this
should I perform some adjustment/setup?

_________________
"Where am I ?"


Top
 Post subject: Re: interface language for G'MIC
PostPosted: Sat Jul 18, 2015 9:23 am  (#14) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
Yes, it should switch to the default language used in GIMP when defined.
This should already work with latest binaries available on the website (version 1.6.5.1_pre).
If you have 1.6.5.0 try to upgrade, and tell me.


Top
 Post subject: Re: interface language for G'MIC
PostPosted: Sat Jul 18, 2015 9:35 am  (#15) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14801
Location: roma, italy
the official site only shows the last stable (1.6.5.0)
from where do I get the pre- 1.6.5.1?

_________________
"Where am I ?"


Top
 Post subject: Re: interface language for G'MIC
PostPosted: Sat Jul 18, 2015 9:38 am  (#16) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
dinasset, no try downloading from http://gmic.eu/gimp.shtml, you will get 1.6.5.1_pre as default.


Top
 Post subject: Re: interface language for G'MIC
PostPosted: Sat Jul 18, 2015 9:43 am  (#17) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14801
Location: roma, italy
OK David.
Installed the pre- and G'MIC speaks English!
thanks!

_________________
"Where am I ?"


Top
 Post subject: Re: interface language for G'MIC
PostPosted: Sat Jul 18, 2015 9:47 am  (#18) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
Cool ! Nice to see a working feature :)


Top
Post new topic Reply to topic  [ 18 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) SCROLLING INTERFACE HELP

2

No new posts Attachment(s) Logo Toolbox Scrolling interface for GIMP 2.10.18

10

No new posts Attachment(s) Script-Fu Scrolling Interface For GIMP 2.10.10_Win32bit

0

No new posts Attachment(s) No scrollomg interface for text logo bend path

7

No new posts Attachment(s) Script-Fu Scrolling Interface V1.1 for Windows10 GIMP 2.10.16_64bit

4



* Login  



Powered by phpBB3 © phpBB Group