Localizing scripts
COnnectio n wizard still a lot to go tho. And no time.
- Attachments
-
- connectwizard.tar.gz
- (2.55 KiB) Downloaded 792 times
- esmourguit
- Posts: 1410
- Joined: Fri 17 Nov 2006, 14:45
- Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie
Well, at least I am a programming beast now (?)
I thought that wasn't complete?
Well, mine or yours, it's the same. The good thing is that dougal localized net-setup, WHIch is HUGE, extremely long. I love dougal, I'd be mad by now.
I' think that localizing puppy universal installer would be usefull.I'll do it, when i feel like doing it (too tired now), if you want to do it, feel free, but please MP or post it.
I think we'll be done in no time.
I thought that wasn't complete?
Well, mine or yours, it's the same. The good thing is that dougal localized net-setup, WHIch is HUGE, extremely long. I love dougal, I'd be mad by now.
I' think that localizing puppy universal installer would be usefull.I'll do it, when i feel like doing it (too tired now), if you want to do it, feel free, but please MP or post it.
I think we'll be done in no time.
- esmourguit
- Posts: 1410
- Joined: Fri 17 Nov 2006, 14:45
- Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie
Bonjour,
@ droope,
I am trying to complete xorgwizard, but i have some issues.
I let you work on Puppy Installer.
I'll make a list of scripts to be localized and submit it to the community.
Cordialement
@ droope,
I am trying to complete xorgwizard, but i have some issues.
I let you work on Puppy Installer.
I'll make a list of scripts to be localized and submit it to the community.
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]
- esmourguit
- Posts: 1410
- Joined: Fri 17 Nov 2006, 14:45
- Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie
Bonjour,
For anyone who wants to test, here are /usr/sbin/xorgwizard and /usr/X11R7/bin/xwin localized as they have relations. I have tried to localize /etc/rc.d/functions4puppy4, but I am not able to.
There are also the english and french .mo files, for both.
There are 2 issues in xwin : line 482 and 490. If somebody wants to fix.
@Droope,
I've found an issue in your puppy remaster script. Is the file you've joined the good one?
Cordialement
Edited by esmourguit feb 19 - 03:14 PM: below updated files
For anyone who wants to test, here are /usr/sbin/xorgwizard and /usr/X11R7/bin/xwin localized as they have relations. I have tried to localize /etc/rc.d/functions4puppy4, but I am not able to.
There are also the english and french .mo files, for both.
There are 2 issues in xwin : line 482 and 490. If somebody wants to fix.
@Droope,
I've found an issue in your puppy remaster script. Is the file you've joined the good one?
Cordialement
Edited by esmourguit feb 19 - 03:14 PM: below updated files
- Attachments
-
- xwin-420loc.tar.gz
- (8.91 KiB) Downloaded 1292 times
-
- xorgwizard420-loc.tar.gz
- (24.05 KiB) Downloaded 784 times
Last edited by esmourguit on Wed 18 Feb 2009, 14:15, edited 2 times 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]
Please explain it in detail.esmourguit wrote: There are 2 issues in xwin : line 482 and 490. If somebody wants to fix.
482 looks ok:
Code: Select all
if [ ! "$NEWLANG" = "$LANG" ];then
Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]
Darn didn't get that error the last time i tried it. :/
But yes, that's the finished version. Every time i try to fix it i think i break it further. Perhaps mu...
I'm sure it's just something i deleted, or something. (Thanks esmorguit for testing it!!)
The file is above,
Here is a screenshot of the error.
And the console error:
This i got the second time:
But yes, that's the finished version. Every time i try to fix it i think i break it further. Perhaps mu...
I'm sure it's just something i deleted, or something. (Thanks esmorguit for testing it!!)
The file is above,
Here is a screenshot of the error.
And the console error:
This i got the second time:
/root/NewDir/NewDir/remasterpup2: line 49: kill: (15246) - No such process
SIZETOTALM=424
cat: /tmp/tag.txt: No such file or directory
I get a diferent error every time :/ If someone can help me it would be great/root/NewDir/NewDir/remasterpup2: line 50: 16841 Terminated Xdialog --wrap --title "${L_CALCULATINGT}" --msgbox "${L_CALCULATING}" 0 0
SIZETOTALM=424
cat: /tmp/tag.txt: No such file or directory
droope,
line 110
must be:
Mark
line 110
Code: Select all
echo -n "${L_CHOOSEDRIVE}" 0 0 5 " >> /tmp/savedlg
Code: Select all
echo -n "${L_CHOOSEDRIVE}\" 0 0 5 " >> /tmp/savedlg
Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]
Thanks, that solved line 110
But now, after i go through the screenshot's window, i get a weird thing:
And it goes on and on..
Console tells me that:
(the number of the process changes)
But now, after i go through the screenshot's window, i get a weird thing:
Code: Select all
Xdialog v2.3.1 by Thierry Godefroy <xdialog@free.fr> (v1.0 was
written by Alfred at Cyberone Internet <alfred@cyberone.com.au>).
Xdialog home page available at: http://xdialog.dyns.net/
Usage: Xdialog [<common options>] [<transient options>] <box option> ...
Common options:
--wmclass <name>
--rc-file <gtkrc filename>
--backtitle <backtitle>
--title <title>
--allow-close | --no-close
--screen-center | --under-mouse | --auto-placement
--center | --right | --left | --fill
--no-wrap | --wrap
--cr-wrap | --no-cr-wrap
--stderr | --stdout
--separator <character> | --separate-output
--buttons-style default|icon|text
Transient options:
--fixed-font
--password (may be repeated 2 or 3 times before --2inputsbox or --3inputsbox)
--password=1|2 (for --2inputsbox or --3inputsbox)
--editable
--time-stamp | --date-stamp
--reverse
--keep-colors
--interval <timeout>
--timeout <timeout> (in seconds)
--no-tags
--item-help (if used, the {...} parameters are needed in menus/lists widgets)
--default-item <tag>
--icon <xpm filename>
--no-ok
Console tells me that:
Code: Select all
/tmp/asd/remasterpup2: line 49: kill: (1660) - No such process
SIZETOTALM=443
WKGPART=sda1
hm, for me, it works here.
I run it like this
cd /root/tests/xwin-localized
./remasterpup2
Maybe you must not run it from /tmp/.
What you can do, is to add echo statements (debug-messages), so that you see, where in the code the script currently is.
Like for example around line 33:
Like this you will find out, where the script stopped.
If the Xdialog (line 35) would have an error, the last thing you would see would be:
------------------TEST 1
So you know, that the error is in line 35.
The long error you got, shows, that a line with "Xdialog" is working wrong.
Certainly again a " instead of \".
This is a very common mistake, that also often happens to me.
Mak
I run it like this
cd /root/tests/xwin-localized
./remasterpup2
Maybe you must not run it from /tmp/.
What you can do, is to add echo statements (debug-messages), so that you see, where in the code the script currently is.
Like for example around line 33:
Code: Select all
#choose where to create isolinux-builds/ directory...
Xdialog --wrap --left --title "${L_WELCOMET}" --msgbox "${L_WELCOME}" 0 0
Code: Select all
echo "------------------TEST 1"
#choose where to create isolinux-builds/ directory...
Xdialog --wrap --left --title "${L_WELCOMET}" --msgbox "${L_WELCOME}" 0 0
echo "------------------TEST 2"
If the Xdialog (line 35) would have an error, the last thing you would see would be:
------------------TEST 1
So you know, that the error is in line 35.
The long error you got, shows, that a line with "Xdialog" is working wrong.
Certainly again a " instead of \".
This is a very common mistake, that also often happens to me.
Mak
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]
- esmourguit
- Posts: 1410
- Joined: Fri 17 Nov 2006, 14:45
- Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie
Bonjour,
@droope,
Here is the remasterpup script localized almost finished.
But there is one large issue with the "custom-puppy" variable (line 478).
All is OK until the iso file creation.
I don't know how to resolve it.
Maybe someone can help?
@ MU,
I have modified script as you said and uploaded the new one (in this post), but still issue when creating iso file.
Seems the line 478 below has no effect
updated remasterpup2_420_LOC.tar.gz on feb 17. Needs ntfs fix.
@droope,
Here is the remasterpup script localized almost finished.
But there is one large issue with the "custom-puppy" variable (line 478).
All is OK until the iso file creation.
I don't know how to resolve it.
Maybe someone can help?
@ MU,
I have modified script as you said and uploaded the new one (in this post), but still issue when creating iso file.
Seems the line 478 below has no effect
Cordialementrxvt -bg orange -title "${L_WELCOMET}" -e mkisofs -D -R -o $WKGMNTPT/custom-puppy-$PUPPYVERSION.iso -b isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table $WKGMNTPT/puppylivecdbuild/
updated remasterpup2_420_LOC.tar.gz on feb 17. Needs ntfs fix.
- Attachments
-
- remasterpup2_420_LOC.tar.gz
- (13.28 KiB) Downloaded 1547 times
Last edited by esmourguit on Tue 17 Feb 2009, 07:49, edited 2 times 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]
esmourguit
at first look I see nothing problematic, except line 475:
Here you use ' instead of ".
So it should be:
Mark
at first look I see nothing problematic, except line 475:
Code: Select all
Xdialog --wrap --left --title "${L_WELCOMET}" --yesno "${L_CLICKYES} 'custom-puppy-${PUPPYVERSION}.iso' ${L_CLICKYES1} ${WKGMNTPT}/ ${L_CLICKYES2} ${WKGMNTPT}/${L_PLCDB}/ ${L_CLICKYES3}" 0 0
Here you use ' instead of ".
So it should be:
Code: Select all
Xdialog --wrap --left --title "${L_WELCOMET}" --yesno "${L_CLICKYES} "custom-puppy-${PUPPYVERSION}.iso" ${L_CLICKYES1} ${WKGMNTPT}/ ${L_CLICKYES2} ${WKGMNTPT}/${L_PLCDB}/ ${L_CLICKYES3}" 0 0
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]
- esmourguit
- Posts: 1410
- Joined: Fri 17 Nov 2006, 14:45
- Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie
Bonjour,
@ MU,
I have modified script as you said and uploaded the new one (previous post), but still issue when creating iso file.
Seems the line 478 below has no effect
@ MU,
I have modified script as you said and uploaded the new one (previous post), but still issue when creating iso file.
Seems the line 478 below has no effect
Cordialementrxvt -bg orange -title "${L_WELCOMET}" -e mkisofs -D -R -o $WKGMNTPT/custom-puppy-$PUPPYVERSION.iso -b isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table $WKGMNTPT/puppylivecdbuild/
[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,
@Mu
When i test on Puppy 420 alpha and beta1, i choose to create the puppylivecdbuild on NTFS partition, and the remasterpup2 localized script couldn't create iso file.
When i changed the target partition to ext2, there is no more issue.
So, it's OK for creating iso file on linux partition, but not on ntfs partition (with Puppy 420 beta1).
Maybe we can test on others versions.
Cordialement
@Mu
When i test on Puppy 420 alpha and beta1, i choose to create the puppylivecdbuild on NTFS partition, and the remasterpup2 localized script couldn't create iso file.
When i changed the target partition to ext2, there is no more issue.
So, it's OK for creating iso file on linux partition, but not on ntfs partition (with Puppy 420 beta1).
Maybe we can test on others versions.
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]
in Newyearspup it works, but it is different:
-other windowmanager
-urxvt
You might try 2 things:
1.) do not use a translation for the rxvt title, so use the old code:
2.) if this still fails, set a "safe" locale:
Note that you should run remasterpup2 from a consolewindow, to see possible errors.
I get this message from urxvt, but it works nevertheless (LANG is set to "fr"):
urxvt: default locale unavailable, check LC_* and LANG variables. Continuing.
Mark
-other windowmanager
-urxvt
You might try 2 things:
1.) do not use a translation for the rxvt title, so use the old code:
Code: Select all
rxvt -bg orange -title "Puppy simple remaster CD" -e mkisofs -D -R -o $WKGMNTPT/custom-puppy-$PUPPYVERSION.iso -b isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table $WKGMNTPT/puppylivecdbuild/
Code: Select all
#echo $LANG
#echo $LC_ALL
OLDLANG=$LANG
OLDLC=$LC_ALL
export LANG=C
export LC_ALL=C
rxvt -bg orange -title "Puppy simple remaster CD" -e mkisofs -D -R -o $WKGMNTPT/custom-puppy-$PUPPYVERSION.iso -b isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table $WKGMNTPT/puppylivecdbuild/
export LANG=$OLDLANG
export LC_ALL=$OLDLC
I get this message from urxvt, but it works nevertheless (LANG is set to "fr"):
urxvt: default locale unavailable, check LC_* and LANG variables. Continuing.
Mark
Last edited by MU on Sun 15 Feb 2009, 12:56, edited 1 time in total.
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]
concerning ntfs please check, if you can mount such partitions read/write with pmount.
remasterpup2 has a check for the partitiontype and should mount using the option "-t ntfs".
Maybe the beta versions had bugs in "mount".
In newyearspup, it works using a NTFS drive (based on Puppy 4.1.1).
It just must not have been mounted before with Muppyquickmount, as that mounted read only (solved by servicepack 2).
Mark
remasterpup2 has a check for the partitiontype and should mount using the option "-t ntfs".
Maybe the beta versions had bugs in "mount".
In newyearspup, it works using a NTFS drive (based on Puppy 4.1.1).
It just must not have been mounted before with Muppyquickmount, as that mounted read only (solved by servicepack 2).
Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]
- esmourguit
- Posts: 1410
- Joined: Fri 17 Nov 2006, 14:45
- Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie
Bonjour,
@ MU,
It remains one issue now, but essential: create custom-$PUPPYVERSION.iso on ntfs partition.
I checked on 4.1.2 and the custom-$PUPPYVERSION.iso on ntfs failed.
I changed ' by " on lines 70 and 77 (as you said) and now, the status of partitions appear in the popup about selection of partition in which create puppylivecdbuild.
But creation of custom-$PUPPYVERSION.iso file still failed on ntfs partition.
Tried partition mounted first then not mounted, but each failed.
I think it lacks the option ("-t ntfs") you told in previous post in the remasterpup2 script.
Mounting read/write ntfs partition by Pmount is OK.
Cordialement
@ MU,
It remains one issue now, but essential: create custom-$PUPPYVERSION.iso on ntfs partition.
I checked on 4.1.2 and the custom-$PUPPYVERSION.iso on ntfs failed.
I changed ' by " on lines 70 and 77 (as you said) and now, the status of partitions appear in the popup about selection of partition in which create puppylivecdbuild.
But creation of custom-$PUPPYVERSION.iso file still failed on ntfs partition.
Tried partition mounted first then not mounted, but each failed.
I think it lacks the option ("-t ntfs") you told in previous post in the remasterpup2 script.
Mounting read/write ntfs partition by Pmount is OK.
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]