site  contact  subhomenews

Yet more scripts internationalized

February 01, 2012 — BarryK
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.

Comments

More i18n
Username: BarryK
Added filemnt, icon_switcher, input-wizard, ipinfo, loginmanager, modemprobe, modemprobe_erase, modemprobe_help, modemtest. Woof commit: http://bkhome.org/fossil/woof2.cgi/info/ac4cda81a1

delayedrun
Username: 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: [code]Name='$(gettext 'Adobe Flash Player preferences')'[/code] The biggest and the hardest script is puppyinstaller.

re delayedrun
Username: BarryK
"Ok, I have modified delayedrun as you suggest.

More scripts i18n'ed
Username: BarryK
"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.

More scripts i18n'ed
Username: BarryK
"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

More i18n
Username: BarryK
"internationalized: some files in /usr/local/apps, pupzip, some scripts in /usr/local/petget: http://bkhome.org/fossil/woof2.cgi/info/0fb913f762

sfsget
Username: rodin.s
"Maybe line 160 of sfsget should also be gettexted: [code]`eval_gettext \"\\\${DEVNODE} filesystem: \\\${DEVFS} size: \\\${DEVSIZEM}MB\"` #needs . gettext.sh or ${DEVNODE} $(gettext 'filesystem:') ${DEVFS} $(gettext 'size:') ${DEVSIZEM}MB[/code]

good stuff
Username: scottman
"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...

More i18n
Username: BarryK
"rodin.s, Thanks, modified sfsget. More internationalization: http://bkhome.org/fossil/woof2.cgi/info/72ca0025a7


Tags: woof