MoManager now manages XML files

MoManager has two more drop-down lists, for management of translations in XML files.

Woof commit:
http://bkhome.org/fossil/woof2.cgi/info/1b114f7fd0

EDIT Feb. 13, 2012:
I updated the snapshot:



Posted on 13 Feb 2012, 7:15


Comments:

Posted on 10 Feb 2012, 19:13 by rodin.s
fixpin
I have made a simple script to switch PuppyPin to another locale. It's based upon desksetup.sh and scOttman changes to it. No X restart is needed. Gettext is used. But maybe restart of pup_event_frontend_d is done incorrectly.
http://ompldr.org/vY3FqcA/fixpin_dir.tar.gz


Posted on 10 Feb 2012, 23:53 by rodin.s
Russian mo-files pet
I have made a pet with Russian translations:
added 77 Russian mo files;
added t12s xdelta translation;
added application files and one desktop-directories file;
added XML-translation of Xlock;
added SSS-translations. fixmenus works: shutdown menu is translated, functions4puppy4 is not translated, fixdesk doesn't work so I have
added my script fixpin with fixpin.pot and fixpin.mo files.
It is for regenerating PuppyPin and .jwmrc_tray and it is simple.

added pot and ru.po files in /usr/share/doc/nls/i18n_woof;
pot files could be regenerated with script create_pot_files. This could be useful for poedit to access source files. You could work with pot files directly without MoManager if you know what to do;

added gxmessage and xmessage link to it for UTF-8.

One small thing in xorgwizard: line 1543 - LANG=C should be removed - xinitrc_test is not translated.
And my mistake in pgprs-setup: lines 96 and 210 - gettext quotes should not be escaped.



Posted on 11 Feb 2012, 16:41 by BarryK
fixdesk fixed
I fixed 'fixdesk':
http://bkhome.org/fossil/woof2.cgi/info/22fb98e847

rodin.s,
I'll get stuck into studying everything that you have posted tonight, including your gettext alternative for PuppyPin etc.



Posted on 11 Feb 2012, 16:49 by BarryK
Feedback appreciated
rodin.s, shinobar,
Feedback and assessments of my ideas much appreciated. I'll be studying more on what you guys have posted tonight and tomorrow.

Feeling a bit uncomfortable right now. Yesterday and today we had 42 degree C, and I don't have air conditioning. But, will settle down for some work later tonight.



Posted on 11 Feb 2012, 21:33 by L18L
fixdesk fix
#120211 major overhaul to ensure integrity of translation of target files back to en.

#Note to developers:
#you can run "fixdesk en" or "fixdesk de" in a terminal to convert the target files to en or de
#(or other language). this is convenient for testing your translations.


Sorry, this 'fixdisk en' does not change the translations with me. Or am I missing something?

---
TRANSLATIONs in desk_strings.de all lower case is not good German language. We need nouns upper case.


Posted on 11 Feb 2012, 23:59 by rodin.s
fixdesk, i18n for tray apps.
fixdesk doesn't translate back to English for me as well. I used my fixpin:
LANG=C fixpin
to translate to English. But fixdesk translates from English to Russian (PuppyPin but not .jwmrc-tray).
I have also i18n-ed tray apps: (network_tray, freememapplet_tray, powerapplet_tray). It would be good to add them as well.
http://www.murga-linux.com/puppy//viewtopic.php?p=570225&sid=9e77bfb0fa8fe0a190369cc0873ebd98#570225


Posted on 12 Feb 2012, 18:48 by BarryK
freememapplet_tray source
rodin.s,
Your comment;

I couldn't find source for freememapplet_tray-2.6 so I just changed icons in freememapplet_tray-2.3.

The latest version of freememapplet_tray is 2.3.1, which is in my sources repo:
http://bkhome.org/sources/alphabetical/f/



Posted on 12 Feb 2012, 18:58 by BarryK
re fixdesk en fail
Yeah, it will fail if you have already been using MoManager and earlier fixdesk.

You need to boot a pristine Racy 5.2.2.5 with 'en' locale, then install the latest /usr/sbin/fixdesk.

Sorry for that complication. I had been thinking of future users who would have that latest fixdesk at first boot.

But, I will think about it some more, see if I can work around that limitation.



Posted on 12 Feb 2012, 19:04 by BarryK
Re capitals
L18L,
Ok, I have changed them to capitals.

I am making so many changes, it is not really adequate to use Racy 5.2.2.5 for testing anymore.
I'll do another Racy build very soon.



Posted on 12 Feb 2012, 21:55 by rodin.s
delta-file
Barry, could you make a delta-file with Racy 5.2.2.5 for new Racy.


Posted on 13 Feb 2012, 6:26 by BarryK
Re fixpin
rodin.s,
I had a look at fixpin. It seems that you are loosing customization of PuppyPin -- there could be other icons on the desktop, created by some PETs or SFSs when they install, for example my OpenOffice SFS. After running fixpin, those icons would disappear.

shinobar,
I have removed comments in some of my docs in Woof that the gettext method is slower. The comments now simply state that the SSS method is a translation prior to execution, gettext and t12s translate during execution, and I also commented that the gettext method is much more sophisticated.



Posted on 13 Feb 2012, 7:25 by BarryK
re xorgwizard
rodin.s,

One small thing in xorgwizard: line 1543 - LANG=C should be removed - xinitrc_test is not translated.

Ok done.