Page 5 of 7

Posted: Wed 18 Mar 2009, 17:44
by droope
MU wrote:droope, I would suggest, that you contact Whodoo.
I'm sooo tired...
Did hours of tests to get Genie+Glade working in Windows, and from tomorrow on, I must work on a Java project for 1 1/2 weeks.
It will need my full concentration, so I cannot follow all the messages in the Puppyforum.

Mark
Ok no problem :D Life's too short mark!

Posted: Wed 18 Mar 2009, 17:45
by MU
thanks, muchas gracias :D
Mark

Posted: Wed 18 Mar 2009, 18:18
by droope
Hi. Petget has the same issues as connectwizard. My system is configured in es_ES, and "echo $lng" echoes "es", but the program attemps to fetch the mo file in /usr/share/locale/en/.

I changed the code the way i did it with connect wizard and got a pretty scary error. I can't solve this, sorry :(

Esmorguit maybe you can? Or mark?

Ty.
Droope

Posted: Wed 18 Mar 2009, 18:29
by MU

Code: Select all

mo=connectwizard.mo 
lng=`echo $LANG | sed "s/\(..\).*/\1/"` 
#echo $lng 
. "/usr/share/locale/$lng/LC_MESSAGES/$mo" 
if [ -f "/usr/share/locale/$lng/LC_MESSAGES/$mo" ];then 
. "/usr/share/locale/$lng/LC_MESSAGES/$mo" 
fi
this will not work.
The first line MUST use "en", so that the script has a file to read the variables from, even if no localized .mo is available.

So it must be:

Code: Select all

mo=connectwizard.mo 
lng=`echo $LANG | sed "s/\(..\).*/\1/"` 
#echo $lng 
. "/usr/share/locale/en/LC_MESSAGES/$mo" 
if [ -f "/usr/share/locale/$lng/LC_MESSAGES/$mo" ];then 
. "/usr/share/locale/$lng/LC_MESSAGES/$mo" 
fi
You did not include the spanish connectwizard.mo, please attach it, so that I can test it.
Mark

Posted: Wed 18 Mar 2009, 18:34
by droope
MU wrote:

Code: Select all

mo=connectwizard.mo 
lng=`echo $LANG | sed "s/\(..\).*/\1/"` 
#echo $lng 
. "/usr/share/locale/$lng/LC_MESSAGES/$mo" 
if [ -f "/usr/share/locale/$lng/LC_MESSAGES/$mo" ];then 
. "/usr/share/locale/$lng/LC_MESSAGES/$mo" 
fi
this will not work.
The first line MUST use "en", so that the script has a file to read the variables from, even if no localized .mo is available.

So it must be:

Code: Select all

mo=connectwizard.mo 
lng=`echo $LANG | sed "s/\(..\).*/\1/"` 
#echo $lng 
. "/usr/share/locale/en/LC_MESSAGES/$mo" 
if [ -f "/usr/share/locale/$lng/LC_MESSAGES/$mo" ];then 
. "/usr/share/locale/$lng/LC_MESSAGES/$mo" 
fi
You did not include the spanish connectwizard.mo, please attach it, so that I can test it.
Mark
That way it worked with connect wizard, tested only in es_ES.

The way I saw it, if no mo files were found, suicide would be a great choice :P

Here are the mo files for petget:
http://murga-linux.com/puppy/viewtopic. ... h&id=15995

And here's connectwizard:
http://www.murga-linux.com/puppy/viewto ... h&id=15179

I've been working on this for too long, perhaps. Sure hope not to make you work for nothing.

Thanks mark.

Posted: Wed 18 Mar 2009, 19:02
by MU
The way I saw it, if no mo files were found, suicide would be a great choice
hehe, but, no, sorry, this is a bad idea.
Like this you could not connect to internet, even if you speak english, but use french, german, or other settings.
We must keep english as fallback.

I tested your connectwizard with the spanish connectwizard.mo.
In Puppy 4.12.
Language first was set to en_US, then I switched to es_ES.
It works fine with "en", so in the way, before you modified it.

With your modification it crashes, if I use "de_DE" (german) as language, so connectwizard is not usable for non-US american or non-spanish users.

So I cannot reproduce your errors.
Maybe you might try it with a second, new savefile.
Maybe in your old savefile, something got broken by all the work you did for localization?

Mark

Posted: Wed 18 Mar 2009, 21:31
by droope
It should crash, of course, unless you hace a connectwizard.mo in /usr/share... de_DE or "en".

What you could do to test it is to place the spanish mo in /usr/share/locale/de_DE/LC_Messages/ that way you will see it will continue crashing because it can't find the file in "en".

For some reason, it always looks for en, even tho $lng is es in my case.

Posted: Wed 18 Mar 2009, 21:48
by Aitch
I would like to know if anyone knows of a program that'd let me to know the exact diferences between a file and another. It would save a lot of work for me.
I know it was awhile ago, Droope, but I just spotted this, and thought it might be useful to you

http://murga-linux.com/puppy/viewtopic. ... 6714f82a57

Good effort, guys!

Aitch :)

Posted: Thu 19 Mar 2009, 06:37
by magerlab
i've almost finished to add russian names for applications, so i'll put my archive back here this evening

Posted: Thu 19 Mar 2009, 07:28
by esmourguit
Bonjour,
Here a fixed /usr/sbin/petget localized.
Tested in RC3 instead of original. Can you test yourself?
What conclusion about the corrections made on the localized files ? Should we change and what version to use?
I have great difficulties with the forum. It takes considerable time to load a page when it wants to load.
Cordialement ;)

Posted: Thu 19 Mar 2009, 07:41
by esmourguit
Bonjour,
About the menu files in /usr/share/applications.
I thought that my explanations were not clear.
Here one example for /usr/share/applications/Alsamixer-sound-sound.desktop :

[Desktop Entry]
Encoding=UTF-8
Name=AlsaMixer audio mixer
Name[fr]=Mixeur audio AlsaMixer
Icon=mini-sound.xpm
Comment=AlsaMixer sound mixer
Exec=xterm -e alsamixer
Terminal=true
Type=Application
Categories=AudioVideo
GenericName=AlsaMixer

Create a new line for spanish (here in red) and save.

[Desktop Entry]
Encoding=UTF-8
Name=AlsaMixer audio mixer
Name[fr]=Mixeur audio AlsaMixer
Name[es]=Name_of_mixer_in_spanish
Icon=mini-sound.xpm
Comment=AlsaMixer sound mixer
Exec=xterm -e alsamixer
Terminal=true
Type=Application
Categories=AudioVideo
GenericName=AlsaMixer

Cordialement ;)

Russian translations for menu

Posted: Thu 19 Mar 2009, 10:18
by magerlab
So here i am!
i 've added russian lines for applications and packed it back
:!: :?:
note : there are 3 .bak files for
e3 mp and top
i translated them also but i do not know if they will be in Puppy 4.2
also there's a pet.specs file wich can be removed :?:

as an example i put a pack from /usr/share/desktop-directories wich i did for puppy 4.1.2
i've translated only entries for JWM menu
it's all the same things: just added some lines

For Icewm it needs to have a localized template in /etc/xdg/...

Posted: Thu 19 Mar 2009, 14:10
by droope
The whole menus have been translated, so i figure there must be a way to make a program that extracts it from the original and pastes it here, i'll try.

It gets hard, programming :P

I won't do it manually, that is certain, waaay to many desktop files!! :(

Posted: Thu 19 Mar 2009, 15:43
by magerlab
i did it once in summer for puppy 4
so just copy/paste was not difficult
i'd also will add some scripts translations ...

Posted: Thu 19 Mar 2009, 17:09
by esmourguit
Bonjour,
Here is the desktop-dirs.tar.gz.
French added.
Cordialement ;)

Posted: Thu 19 Mar 2009, 18:33
by droope
esmourguit wrote:Bonjour,
Here a fixed /usr/sbin/petget localized.
Tested in RC3 instead of original. Can you test yourself?
What conclusion about the corrections made on the localized files ? Should we change and what version to use?
I have great difficulties with the forum. It takes considerable time to load a page when it wants to load.
Cordialement ;)
I'd say marks right. I'll just patch them for spanish, since it isn't working for me. It works for french, right?

This should be the list then.

Connect wizard (last esmorguit link).
Xwin
XorgWizard (Updated to Mu's corrected version)
Remasterpup2
Chooselocale
Bootmanager
Cups Shell
Petget. (fixed).
Applications directory localized


Updated 19/03/09.
Aitch wrote:
I would like to know if anyone knows of a program that'd let me to know the exact diferences between a file and another. It would save a lot of work for me.
I know it was awhile ago, Droope, but I just spotted this, and thought it might be useful to you

http://murga-linux.com/puppy/viewtopic. ... 6714f82a57

Good effort, guys!

Aitch :)
Sorry aitch for ignoring you, and thanks!!!!! for the initial support for this and also for the link. :)

I think it's of no use to me tho :(

But thanks :)

Cheers

EDIT:

Here is a screenie as proof of a non working connectwizard

Posted: Fri 20 Mar 2009, 08:08
by esmourguit
Bonjour,
Hey Droope, please check that no missing quote in the spanish.mo file.
This is often where I had errors.
Cordialement ;)

Posted: Fri 20 Mar 2009, 14:35
by droope
Will do. Maybe that's it.

Cheers,
Droope

Posted: Sat 21 Mar 2009, 10:47
by esmourguit
Bonjour,
@ Aitch,
You can use xfdiff in Utility menu.
Or this command in console :
diff file_a file_b.
Or to get the difference in a text file, that command :
diff file_a file_b. > name_of_file_you_want.txt
Cordialement ;)

Posted: Sat 21 Mar 2009, 11:02
by Dougal
Just in case you folks haven't noticed, the latest version of the network wizard requires an update to translations.