Yet more scripts internationalized

I have applied rodin.s's internationalised scripts connectwizard, connectwizard_2nd, cups_shell, delayedrun, dotpup and download_file to Woof. See Woof commit:
http://bkhome.org/fossil/woof2.cgi/info/4978ad1d29

I decided to translate /usr/sbin/eventmanager myself, as I wanted to try doing it slightly differently.

That slight difference is just a small thing... in gtkdialog XML code, rodin.s translates strings by inserting directly, for example;

export DIALOG=" ... <frame $(gettext 'Name of frame')> ... "

However, if the string has a ' in it, rodin.s does it this way:

export DIALOG=" ... <frame `gettext \"Name of 'frame'\"`> ... "

Which is fine, however I wanted to consistently use only the $(gettext ....) syntax. So my translation is:

export DIALOG=" ... <frame $(gettext "Name of 'frame'")> ... "

This also works, and the " does not need to be back-slashed, in fact must not be back-slashed. It confuses Geany though, but we are accustomed to that It works because everything inside $( ... ) gets evaluated first, and only the resulting string inserted into DIALOG.

It is interesting that the back-tick works differently.


Posted on 1 Feb 2012, 16:37


Comments:

Posted on 1 Feb 2012, 20:56 by BarryK
More i18n
Added filemnt, icon_switcher, input-wizard, ipinfo, loginmanager, modemprobe, modemprobe_erase, modemprobe_help, modemtest. Woof commit:

http://bkhome.org/fossil/woof2.cgi/info/ac4cda81a1



Posted on 2 Feb 2012, 6:56 by rodin.s
delayedrun
$(gettext " ") is new to me. I have never used it.
Maybe line 276 in delayedrun should be removed and line 275 should be gettexted:
Name='$(gettext 'Adobe Flash Player preferences')'

The biggest and the hardest script is puppyinstaller.


Posted on 2 Feb 2012, 8:14 by BarryK
re delayedrun
Ok, I have modified delayedrun as you suggest.



Posted on 2 Feb 2012, 18:13 by BarryK
More scripts i18n'ed
internationalized: partview, pcur, pgprs-shell, pup-advert-blocker, pupcamera, pupdial, pupdial_init_hotpluggable, pupdial_wizard_helper, puppyinstaller, puppypdf, pupscan:

http://bkhome.org/fossil/woof2.cgi/info/a8b2196f13

Rodin.s, thanks in particular for 'puppyinstaller' conversion, yes, that is a massive effort.



Posted on 3 Feb 2012, 8:26 by BarryK
More scripts i18n'ed
internationalized: remove_builtin, resizepfile.sh, set_hwclock_type, set_time_for_puppy, sfsget, usb_modeswitch_status, video-wizard, wakepup2, wizardwizard, xinitrc_test, xserverwixard:

http://bkhome.org/fossil/woof2.cgi/info/57bb7bf225



Posted on 3 Feb 2012, 17:46 by BarryK
More i18n
internationalized: some files in /usr/local/apps, pupzip, some scripts in /usr/local/petget:

http://bkhome.org/fossil/woof2.cgi/info/0fb913f762



Posted on 3 Feb 2012, 19:25 by rodin.s
sfsget
Maybe line 160 of sfsget should also be gettexted:
`eval_gettext \"\\\${DEVNODE} filesystem: \\\${DEVFS} size: \\\${DEVSIZEM}MB\"` #needs . gettext.sh

or
${DEVNODE} $(gettext 'filesystem:') ${DEVFS} $(gettext 'size:') ${DEVSIZEM}MB



Posted on 3 Feb 2012, 20:41 by scottman
good stuff
I should say rodin.s has helped internationalise Akita very well indeed, many and has found himself repeatedly re-internationalising the same old puppy scripts, each time in a slightly different way, as the dev/puplet maker has asked for..

In fact, many scripts that have just been i18n'd in Woof2 have already been i18n'd by rodin.s for Akita, Spup, Quicket Wary and others!!

It is really good to see that the great work of rodin.s is finally gonna 'stick' and will be available as standard in Puppy from now on...


Posted on 4 Feb 2012, 8:13 by BarryK
More i18n
rodin.s,
Thanks, modified sfsget.

More internationalization:
http://bkhome.org/fossil/woof2.cgi/info/72ca0025a7