Ok no problem Life's too short mark!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
Localizing scripts
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
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
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
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
Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]
That way it worked with connect wizard, tested only in es_ES.MU wrote:this will not work.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
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:You did not include the spanish connectwizard.mo, please attach it, so that I can test it.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
Mark
The way I saw it, if no mo files were found, suicide would be a great choice
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.
hehe, but, no, sorry, this is a bad idea.The way I saw it, if no mo files were found, suicide would be a great choice
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
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]
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.
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.
I know it was awhile ago, Droope, but I just spotted this, and thought it might be useful to youI 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.
http://murga-linux.com/puppy/viewtopic. ... 6714f82a57
Good effort, guys!
Aitch
- esmourguit
- Posts: 1410
- Joined: Fri 17 Nov 2006, 14:45
- Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie
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
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
- Attachments
-
- petget_loc_09-03-18.tar.gz
- (24.98 KiB) Downloaded 1315 times
[url=http://moulinier.net/][color=blue][b]Toutou Linux[/b][/color][/url] - [url=http://toutoulinux.free.fr/pet.php][color=blue][b]Paquets français[/b][/color][/url]
- esmourguit
- Posts: 1410
- Joined: Fri 17 Nov 2006, 14:45
- Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie
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
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
[url=http://moulinier.net/][color=blue][b]Toutou Linux[/b][/color][/url] - [url=http://toutoulinux.free.fr/pet.php][color=blue][b]Paquets français[/b][/color][/url]
Russian translations for menu
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/...
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/...
- Attachments
-
- desktop-dirs.tar.gz
- example for JWM menu entries
- (2.26 KiB) Downloaded 932 times
-
- Rep-Applications-Loc.tar.gz
- added russian translations
- (24.46 KiB) Downloaded 890 times
- esmourguit
- Posts: 1410
- Joined: Fri 17 Nov 2006, 14:45
- Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie
Bonjour,
Here is the desktop-dirs.tar.gz.
French added.
Cordialement
Here is the desktop-dirs.tar.gz.
French added.
Cordialement
- Attachments
-
- desktop-dirs.tar.gz
- (2.7 KiB) Downloaded 1173 times
[url=http://moulinier.net/][color=blue][b]Toutou Linux[/b][/color][/url] - [url=http://toutoulinux.free.fr/pet.php][color=blue][b]Paquets français[/b][/color][/url]
I'd say marks right. I'll just patch them for spanish, since it isn't working for me. It works for french, right?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
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.
Sorry aitch for ignoring you, and thanks!!!!! for the initial support for this and also for the link.Aitch wrote:I know it was awhile ago, Droope, but I just spotted this, and thought it might be useful to youI 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.
http://murga-linux.com/puppy/viewtopic. ... 6714f82a57
Good effort, guys!
Aitch
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
- esmourguit
- Posts: 1410
- Joined: Fri 17 Nov 2006, 14:45
- Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie
- esmourguit
- Posts: 1410
- Joined: Fri 17 Nov 2006, 14:45
- Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie
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
@ 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
[url=http://moulinier.net/][color=blue][b]Toutou Linux[/b][/color][/url] - [url=http://toutoulinux.free.fr/pet.php][color=blue][b]Paquets français[/b][/color][/url]