Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

msgcat win lang packs tester wanted

26 views
Skip to first unread message

Harald Oehlmann

unread,
May 10, 2013, 3:44:48 AM5/10/13
to
Dear community,

people having Windows Vista+ with language packs installed percept the
fact, that msgcat eventually detects the default system language and
not the ui language:
https://sourceforge.net/tracker/?func=detail&atid=110894&aid=3036566&group_id=10894

An untested fix based on Kevins patch is ready and I am looking for
testers.

If you observe this situation (like some people in the sourceforge bug
tracker), could you please check branch
https://core.tcl.tk/tcl/timeline?r=bug3036566&nd&c=2013-05-08+15%3A47%3A31

Basically, if you have tcl8.5 or 8.6 installed (for example in C:
\tcl), you may:
- go to c:\tcl\lib\tcl8\8.5
- There is a file named "msgcat-1.x.x.tm"
- get this file:
https://core.tcl.tk/tcl/raw/library/msgcat/msgcat.tcl?name=8c0ee32f512e52d80ad7efb1e3ec8bd86404fa19
- place it in the upper folder
- rename it to msgcat-1.5.2.tm
- start wish
- package require msgcat
-> must answer: 1.5.2 (it is already loaded on tk startup, but this
is to verify the version)
- Check if "msgcat::mclocale" now shows the right value

I will be 2 weeks in holiday now, but would be happy, if anybody has
done a test when I am back.

Thank you,
- Harald

George Petasis

unread,
May 10, 2013, 4:36:18 AM5/10/13
to
Perhaps irrelevant, but I have windows 7 english with greek UI language
installed, and wish picks up the correct language.
msgcat::mclocale returns "el".

I always thought that this information is retrieved from the locale set
for "non-unicode" programs. Is this about to change?

George

Harald Oehlmann

unread,
May 10, 2013, 8:26:08 AM5/10/13
to
Sorry, IMHO this is not entierely correct.
It should be "el_gr".
I might be wrong here, but please do the tests below.

> I always thought that this information is retrieved from the locale set
> for "non-unicode" programs. Is this about to change?

It always first looks to the environment and then to the registry.
The change is to check an additional registry key.

George,

could you please check, if you have an evironment variable "LANG" set
(and also "LC_ALL" or "LC_MESSAGES").
I have that due to an installed "Cygwin".

Could you start a wish without that (for example by the following
batch file):
--start.bat--
set LANG=
wish86.exe
--eof---

Then you should get:
el_gr
with Windows 7.

What is the normal ietf language tag for greek in Greece in greek
alphabet ?
Is it: el-GR
or el-grek-GR

I have implemented into msgcat to translate:
el-Latn-GR
to:
el_gr_latin
but this tag is marked as obsolate, so there is no script difference
for Greek any more...

Maybee you may enter the values of your system to the last discussion
tag of:
http://wiki.tcl.tk/1488

Thank you,
Harald

George Petasis

unread,
May 10, 2013, 10:26:37 AM5/10/13
to Harald Oehlmann
Στις 10/5/2013 3:26 μμ, ο/η Harald Oehlmann έγραψε:
> On 10 Mai, 10:36, George Petasis <petas...@yahoo.gr> wrote:
>> Στις 10/5/2013 10:44 πμ, ο/η Harald Oehlmann έγραψε:
>> Perhaps irrelevant, but I have windows 7 english with greek UI language
>> installed, and wish picks up the correct language.
>> msgcat::mclocale returns "el".
>
> Sorry, IMHO this is not entierely correct.
> It should be "el_gr".
> I might be wrong here, but please do the tests below.
>
>> I always thought that this information is retrieved from the locale set
>> for "non-unicode" programs. Is this about to change?
>
> It always first looks to the environment and then to the registry.
> The change is to check an additional registry key.
>
> George,
>
> could you please check, if you have an evironment variable "LANG" set
> (and also "LC_ALL" or "LC_MESSAGES").
> I have that due to an installed "Cygwin".
I also have "LANG=EL", and I don't have cygwin.
No LC_ALL or LC_MESSAGES.
>
> Could you start a wish without that (for example by the following
> batch file):
> --start.bat--
> set LANG=
> wish86.exe
> --eof---
>
> Then you should get:
> el_gr
> with Windows 7.

Yes, now it returns el_gr.
>
> What is the normal ietf language tag for greek in Greece in greek
> alphabet ?
> Is it: el-GR
> or el-grek-GR

el-GR.

>
> I have implemented into msgcat to translate:
> el-Latn-GR
> to:
> el_gr_latin
> but this tag is marked as obsolate, so there is no script difference
> for Greek any more...

I am not sure I follow you :-)
>
> Maybee you may enter the values of your system to the last discussion
> tag of:
> http://wiki.tcl.tk/1488

Ok
>
> Thank you,
> Harald
>

Harald Oehlmann

unread,
May 10, 2013, 10:38:16 AM5/10/13
to
On 10 Mai, 16:26, George Petasis <petas...@yahoo.gr> wrote:
> > Maybee you may enter the values of your system to the last discussion
> > tag of:
> >http://wiki.tcl.tk/1488
>
> Ok

Thank you entering the data.

At least you have all registry keys and they have the supposed
contents.

So msgcat 1.5.2 may work for you but would not make any difference...

Thank you,
Harald
0 new messages