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:

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


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:

Posted on 2 Feb 2012, 6:56 by rodin.s
$(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:

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,, set_hwclock_type, set_time_for_puppy, sfsget, usb_modeswitch_status, video-wizard, wakepup2, wizardwizard, xinitrc_test, xserverwixard:

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:

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

${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
Thanks, modified sfsget.

More internationalization: