Localizing scripts

For efforts in internationalising Puppy and solving problems in this area
Message
Author
User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#41 Post by MU »

yes, Puppys "mount" expects the option "-t ntfs", or it will not mount read/write.
I'd suggest to incorporate this little bugfix.

Mark.
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
droope
Posts: 801
Joined: Fri 01 Aug 2008, 00:17
Location: Uruguay, Mercedes

#42 Post by droope »

I'm so confused, did you fix it? :o

I' am the most unorganized person in the world, but still i am trying to organize the troops back in the spanish forum to work together. We are going to move forward, i'm starting to finish. I wish someone would organize me here, and tell me what to translate, because i don't know what should be done here.

Edit: Besides, i don't think we are getting any attention... i'm starting to get angry, since we are not in the beta, i think :( I'll download and check.

User avatar
esmourguit
Posts: 1410
Joined: Fri 17 Nov 2006, 14:45
Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie

#43 Post by esmourguit »

Bonjour,

@Mu,
Thanks for your reply,
yes, Puppys "mount" expects the option "-t ntfs", or it will not mount read/write.
I'd suggest to incorporate this little bugfix.
But as you know i'm not a coder. Please tell us where include this ntfs fix.

@Droope,
remasterpup2 is almost completed (it can't create the custom iso on ntfs partition), it needs the ntfs fix by Mark Uhlrich.
I'm going to beguin puppyinstaller script soon.

Updated in previous post remasterpup2 archive

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]

User avatar
esmourguit
Posts: 1410
Joined: Fri 17 Nov 2006, 14:45
Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie

#44 Post by esmourguit »

Bonjour;

@Droope,
Here is a list of script to be localized. They are in /usr/sbin :
alsaconf, bootmanager, burniso2cd, cdburner-wizard, chooselocale, connectwizard : already localized, countrywizard, cups_shell, delayedrun,
deskshortcut.sh, didiwiki-gui, dotpuprox.sh, eventmanager, filemnt, firewall_install.sh, firewallinstallshell, floppy-format.sh, gparted_shell, grubconfig, icon_switcher, input-wizard, modemprobe, modemprobe_erase, modemtest, modem-wizard, ndiswrapperGUI.sh, net-setup.sh : already localized, pcdripper, pdict, Pdisk, pdvdrsab, petget, pmetatagger, pmount, pppconnect, pppdisconnect, Pudd, pupdial, puppyhelp, puppyinstaller : current localazing, puppypdf, pupscan, Pwireless, remasterpup2 : already localized, resizepfile.sh, run-pureftpd, save2flash, save2image, savesession-dvd, scannerwizard.sh, securetelnetshell, set-time-for-puppy, set-xftdpi.glade, set-xftdpi.sh, snapmergepuppy, timezone-set, video-wizard, wag-profiles.sh, wakepup2, wirelesswizard, wizardwizard, xf86svga336wizard, xorgwizard : already localized, xrandrshell, xserverwizard.
What about that?
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]

User avatar
esmourguit
Posts: 1410
Joined: Fri 17 Nov 2006, 14:45
Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie

#45 Post by esmourguit »

Double post supprimé
[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]

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#46 Post by MU »

esmourguit,
remasterpup2 already has the code for ntfs, line 81:

Code: Select all

   mount -t $AFS /dev/$ATAG /mnt/$ATAG > /dev/null 2>&1
So if ntfs does not work, there must be a bug somewhere else.
I don't know if in the script itself, or somewhere else in Puppy.
Do you use a original Puppy 4.12, or a puplet?

I will not have time to test it myself before weekend.

Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
esmourguit
Posts: 1410
Joined: Fri 17 Nov 2006, 14:45
Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie

#47 Post by esmourguit »

Bonjour,
@MU,
I have Burnt and ran a brand new Puppy 4.1.2 (kernel 2.6.25.16) with "puppy pfix=ram"
The remasterpup2 localized script could create puppylivecdbuild on ntfs partition, but still no custom-puppy.iso.

I have localized chooselocale script and it works OK. Attached file
I started localizing puppyinstaller, but there is already something wrong. I continue.
Cordialement ;)

New uploaded version is now fixed.
Attachments
chooselocale-420Loc.pet
(4.74 KiB) Downloaded 1282 times
Last edited by esmourguit on Tue 24 Feb 2009, 15:59, edited 1 time in total.
[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]

User avatar
esmourguit
Posts: 1410
Joined: Fri 17 Nov 2006, 14:45
Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie

#48 Post by esmourguit »

Bonjour,

@MU,
About xwin localized and the issues line 482 and 490.
Here are the comments after exiting to prompt :
/usr/X11R7/bin/xwin:line 482:unexpected EOF while looking for matching '"'
/usr/X11R7/bin/xwin:line 490: Syntax error:unexpected end of file
What about that?
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]

User avatar
esmourguit
Posts: 1410
Joined: Fri 17 Nov 2006, 14:45
Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie

#49 Post by esmourguit »

Bonjour,
I have localized /usr/sbin/bootmanager. I have to test it before upload.
Puppyinstaller script : always with the same issues not yet fixed.
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]

User avatar
esmourguit
Posts: 1410
Joined: Fri 17 Nov 2006, 14:45
Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie

#50 Post by esmourguit »

Bonjour,
Here is bootmanager localized.
Cordialement ;)
Attachments
bootmanage420-loc.tar.gz
(7.52 KiB) Downloaded 1430 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]

User avatar
droope
Posts: 801
Joined: Fri 01 Aug 2008, 00:17
Location: Uruguay, Mercedes

#51 Post by droope »

esmourguit wrote:Bonjour,

Sorry for the inconvenience, but in fact it was missing the file /usr/share/locale/en/LC_MESSAGES/xorgwizard.mo. But not sure it was the issue.
Then it works.
Attached file xorgwizard4.2-localized and connectwizard-420loc for test and english and french files

Cordialement ;)
Hi there esmorguit. I've been testing connectwizard there, because someone translated it to spanish, but it isn't working for me... no error shows in console, but it doesn't run... Any ideas of what could be happening?

Mine isn't working, either. I am guessing it's an issue with locales, and i will solve it soon. Don't worry too much about it.

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#52 Post by MU »

esmourguit wrote:Bonjour,

@MU,
About xwin localized and the issues line 482 and 490.
Here are the comments after exiting to prompt :
/usr/X11R7/bin/xwin:line 482:unexpected EOF while looking for matching '"'
/usr/X11R7/bin/xwin:line 490: Syntax error:unexpected end of file
What about that?
Cordialement ;)
I'll have a look at it at weekend.
Within the week, I am too busy with my course and tired, when I come home.
Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
esmourguit
Posts: 1410
Joined: Fri 17 Nov 2006, 14:45
Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie

#53 Post by esmourguit »

Bonjour,
@Droope,
Hi there esmorguit. I've been testing connectwizard there, because someone translated it to spanish, but it isn't working for me... no error shows in console, but it doesn't run... Any ideas of what could be happening?
Sorry, there is an error in line 17, in /usr/share/locale/fr/LC_MESSAGES/connectwizard.mo. (only this one, the english.mo file is OK).
Change
comment5=
by
comment6=
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]

User avatar
esmourguit
Posts: 1410
Joined: Fri 17 Nov 2006, 14:45
Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie

#54 Post by esmourguit »

Bonjour,
About puppyinstaller script : there are issues when we get to the part on superfloppy and following.
The script does not take the localization variables.
I don't think this is a job in my skills. Sorry.
I will work on eventmanager script for now.
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]

User avatar
droope
Posts: 801
Joined: Fri 01 Aug 2008, 00:17
Location: Uruguay, Mercedes

#55 Post by droope »

hi there, made a list for the spanish community, guess it could be usefull here too.
Connect wizard
Xwin
XorgWizard
Remasterpup2
Chooselocale
Bootmanager

Esmorguit, thanks a lot for all your work :D i mean it, it's really apreciated.

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#56 Post by MU »

esmourguit,
I tested your xorgwizard today in a new newyearspup.
I get no errors so far, except there:

french mo:
line 166
(: instead of =)

english mo, line 166 as in french, and line 276, there is a " in the end, that must be removed.


You can check for such errors, if you examine:
/tmp/xorgwizard-errors.log

I attach a pet with the two updated mo files and the unmodified xorgwizard.
So this is an updated pet of the one posted here:
http://www.murga-linux.com/puppy/viewto ... 521#274521

I plan to incorporate the localized scripts from this thread in newyearspup next weekend :)

Mark
Attachments
xorgwizard420-loc.pet
(24.1 KiB) Downloaded 1175 times
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
esmourguit
Posts: 1410
Joined: Fri 17 Nov 2006, 14:45
Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie

#57 Post by esmourguit »

Bonjour,

@MU,
Thank you Mark. And what about xwin?

Here is cups_shell localized, i'had forgotten to upload.
Cordialement ;)
Attachments
cups_shell-420Loc.tar.gz
(2.69 KiB) Downloaded 1316 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]

User avatar
droope
Posts: 801
Joined: Fri 01 Aug 2008, 00:17
Location: Uruguay, Mercedes

#58 Post by droope »

Hi there, a member of Spanish community, not me, suggests this

Code: Select all

#-- simple localization for scripts by MU. Essai de JJM
mo=connectwizard.mo
if [ -f "/usr/share/locale/$LANG/LC_MESSAGES/$mo" ];then
. /usr/share/locale/$LANG/LC_MESSAGES/$mo
else
. /usr/share/locale/en/LC_MESSAGES/$mo
fi 
Instead of this:

Code: Select all

#-- simple localization for scripts by MU. Essai de JJM
mo=connectwizard.mo
lng=`echo $LANG | sed "s/\(..\).*/\1/"`
. "/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 
Reasons:

-He erases the " characters, otherwise it wont work. (In Spanish).

-He erases the order that chops the $lang variable (from being es_ES it would become "es" so that would limit the possibility of translating to other languages). He says he'd rather use $lang directly and then place the translations in "es_ES" or "es_AR", for example.

- Allows the possibility of, if desirable, the other localizations can be erased, so as to reduce the iso size. If no translation exists, it'll use the english one.

I don't understand much the code, but thought it could be iteresting. If you think it is worth it, i'll change all localized scripts to use it, so that you don't have to do it.

User avatar
esmourguit
Posts: 1410
Joined: Fri 17 Nov 2006, 14:45
Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie

#59 Post by esmourguit »

Bonjour,
Let's wait the MU's opinion.
It sounds interesting and there may be various specific localizations in the same language in relation to different countries.
Cordialement ;)

Edited Feb 27 18:00
I just look in the connectwizard file in version 4.20 RC1, and it is already like this:
#-- simple localization for scripts by MU.
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
[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]

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#60 Post by MU »

ok, we can use the full $LANG, if it is required for different languages.
I did not use it, to save space.
For example:
de_DE
de_CH

This is german and swiss german.
In Scripts, they are usually identical.
So if we check just for "de", just one .mo is needed.
This could be solved however if we would place a symlink to the "de_DE/LC_MESSAGES/example.mo" in "de_CH/LC_MESSAGES/".

This would combine both advantages: seperate language files if required (like for "es_"), and just one with symlinks, if it is the same for all "de".

But one change is needed:
the english file should ALWAYS be loaded.
So do not use "if else".
Reason: translations are often incomplete.
Example:
mywizard 4.0 is written by MU.
droope translates it to spanish.
Then MU enhances the wizard to 5.0. As MU speaks no spanish, new words are available in english only, until droope finds time to update the translation.
With "if else" the 5.0 would not work in spanish, but if english is always loaded, then it would work, just the not yet translated words would be english.

So this would be ok:

Code: Select all

#-- simple localization for scripts by MU. Essai de JJM 
mo=connectwizard.mo 

. /usr/share/locale/en/LC_MESSAGES/$mo
if [ -f "/usr/share/locale/$LANG/LC_MESSAGES/$mo" ];then 
. /usr/share/locale/$LANG/LC_MESSAGES/$mo
fi
Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

Post Reply