1 (edited by Silvio 2013-06-24 17:40:12)

Topic: Language selection

Is possible to add the language selection?
In "Configurer QElectroTech", inserted between "apparence" and "projects".
It would be useful if the system language is not their own language, or to verify translation problems.

Silvio

Re: Language selection

Hi Silvio,

On linux platform Qet by default detect locale system, but you can run Qet in other language by :
just run in a terminal

for example :
german

LANG=de_DE qelectrotech

italian

LANG=it_IT qelectrotech

english

 LANG=en_EN qelectrotech

It run Qet in the language that you want

[09:14:05] laurent@debian:~$ LANG=en_EN qelectrotech
transaction began for  "common"
transaction commited for  "common"
transaction began for  "custom"
transaction commited for  "custom"

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Language selection

As usual, for me, don't work :-(
I receive this message:

Gtk-WARNING **: Locale not supported by C library.
    Using the fallback 'C' locale.

Re: Language selection

does Qet start as german if you start as follows:

$ LANG=de_DE.utf8 qelectrotech 

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

5 (edited by Silvio 2013-06-24 19:37:37)

Re: Language selection

No, it is always in Italian.

But this is the terminal:

$ LANG=de_DE.utf8 qelectrotech
transaction began for  "common"
transaction commited for  "common"
transaction began for  "custom"
transaction commited for  "custom"

Re: Language selection

http://forums.debian.net/viewtopic.php?f=6&t=103163

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Language selection

why not, but two method are possible:

Change language at runtime or translate on fly
http://qt-project.org/wiki/How_to_creat … pplication
http://www.informit.com/articles/articl … p;seqNum=3

but I prefer to use our time to add business functions already asked :p
I'll add it anyway todo for version 0.4

Regards

Laurent

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Language selection

in windows OS a workaround is possible to change language setting at runtime just

[12:22:12] laurent@debian:~/qet_directory/misc$ grep REDEFINE launch_qet.sh 
# REDEFINE_LANG="es"
if [ "${REDEFINE_LANG}" ]; then
        export LANG="${REDEFINE_LANG}"
[12:24:07] laurent@debian:~/qet_directory/misc$ 

change

# REDEFINE_LANG="es"

by

REDEFINE_LANG="it"

after run Lancer QET.bat

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Language selection

http://qelectrotech.org/wiki/en/doc/tra … ranslation

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Language selection

Hi Silvio,

Done

Revision: 2762
Author:   blacksun
Date:     2014-01-21 20:23:44 +0100 (Tue, 21 Jan 2014)
Log Message:
-----------
Add widget to select langage, must relauch qet for make change

Debian packages are availables.

https://download.qelectrotech.org/qet/forum_img/switch_language2.png

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Language selection

Hi Silvio,
Since the commit 2772 (I think scorpio will build it soon)

If you need change langage in qet for translate the elements, no need to relaunch it, just reload the collection.
This commit just work for elements, none for titleblocks or main windows.

Développeur QElectroTech

12 (edited by teknikyedek 2017-06-06 00:34:46)

Re: Language selection

Çok hoş program ama türkçe olsa da şahane olurdu nomicons/smile
Very nice program but it would be great if it was turkish

Re: Language selection

Thank you. nomicons/smile
If you know someone for this job?

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."