jwm_tools-0.9 (was jwm_menu_create)

Window managers, icon programs, widgets, etc.
Message
Author
User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

technosaurus' translation method in momanager

#141 Post by L18L »

technosaurus wrote:Leave me a link to your current work and I will try to keep it compatible or send a patch. I am going to be replacing some puppy terminology with appropriate standards from standards.freedesktop.org.
Purpose of my work is:
let translator use our translation tool momanager to translate jwm_create_menu.
They will see and translate just .po files as usual.
gettext tools msginit msgmerge and msguniq are used.
Translation file jwm had to be renamed to jwm_menu_create (or anything other than jwm).
Only translated items are to be stored in these translation files (the gettext way 8) ).

Biggest change is use of variable _M_n
e.g. _M_6 instead of jwm_GraphicGraphics
Hope you can live with this; or with _M_jwm_GraphicGraphics
as _M_ is needed to identify this translation METHOD at the moment in momanager (3 methods ATM):

Code: Select all

 # METHOD
 # note, gettext method does NOT need explicit 'gettext', see ex: /etc/grub.d/20_ppc_terminfo
 # thus grep gettext is not useful
 case ${SCRIPT##*.} in
  md) METHOD='mdview' ;;
   *) [ "`grep -m 1 '${_M_'   $SCRIPT`" ] && METHOD='t12s' || METHOD='gettext' ;;
 esac
I'll post a link here if/when it is all tested and working (new version of momanager).

Note @all,
technosaurus' translation method is older than momanager. 8)
EDIT
t12s method is in momanager but has never been really tested bacause no one seems to use it.

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

jwm_tools-0.9

#142 Post by L18L »

You do not need to give manually numbers for the _M_ variables. It is done automatically.

Tested. It works. Just use ${_M_:-English message}
Attachments
jwm_menu_create.gz
ready for translation in attached momanager
(5.74 KiB) Downloaded 289 times
momanager.gz
All in one script
(36.68 KiB) Downloaded 285 times
moma.png
Note translation METHOD of TEXTDOMAIN jwm_menu_create
(40.35 KiB) Downloaded 378 times

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Re: back to work on jwm tools

#143 Post by L18L »

technosaurus wrote:Leave me a link to your current work and I will try to keep it compatible or send a patch. I am going to be replacing some puppy terminology with appropriate standards from standards.freedesktop.org.
Latest momanager can use one and the same TEXTDOMAIN for
gettext, our t12s and mdview files now.

Thus a .md help file would be nice.

... and a Happy New Year :D

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#144 Post by technosaurus »

I don't think we'll need to generate translations specifically for jwm if we simply add the appropriate translations to /usr/share/desktop-directories/*.directory ... Translations (same format as .desktop files)are currently missing from woof-ce, but this way other menu systems can benefit.
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

Post Reply