Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 24 Apr 2014, 01:57
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
jwm_tools-0.9 (was jwm_menu_create)
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 9 [124 Posts]   Goto page: 1, 2, 3, ..., 7, 8, 9 Next
Author Message
technosaurus


Joined: 18 May 2008
Posts: 4134

PostPosted: Mon 15 Aug 2011, 23:05    Post subject:  jwm_tools-0.9 (was jwm_menu_create)
Subject description: 15x faster than fixmenus , XXXx faster than ppm, ultralight notification gui ++
 

Forget about deciding whether to yaf-splash or gtkdialog-splash while creating jwm menus when it happens in <0.2 seconds _AND_ supports subcategory menus using only basic shell commands (no other requirements)

Thanks to amigo for his readline trick (and others) posted here:
http://www.murga-linux.com/puppy/viewtopic.php?t=70238

usage:
#to get a menu without subcategories
jwm_menu_create && jwm -restart

#to get a menu with subcategories
SUBMENU=0 jwm_menu_create && jwm -restart

#to test with another language
LANG=de_JA SUBMENU=0 jwm_menu_create && jwm -restart

see the German translation for a localization template


Changelog:
v0.9
added support for keybindings - if upgrading add this to your JWMRC
Code:
KEYBINDINGS=',Up,up ,Down,down ,Right,right ,Left,left ,h,left ,j,down ,k,up ,l,right ,Return,select ,Escape,escape A,Tab,next A,F4,close A,#,desktop# A,F1,root:3 A,F2,window'

fixed duplicate entries for menus/submenus (I think)
pinstall script is no longer required, now that all fixmenus items are supported
v0.8
fixed bug in menu entries that had desktop files without newline endings
added support for groups
v0.7
bugfixes (some typos and omissions - thanks maxerro)
reworked jwm_param_set to be able to unlimited values
included L18L's gui for wider testing
logical partitions and swap drives no longer show up in drive tray
media cards are now displayed in the drive tray
added the desktop related stuff including backgrounds and new jwm500 formatting
TODO - update jwm_image_view to change background now
v0.6
1. monolithic configuration file that can easily be used by any program to know what the jwm settings are, use them, change them etc... without having to hack at xml files with the shell
2. script to modify the configuration file (up to 9 parameters at a time)
3. jwm_menu_create now uses the config file (at ${HOME}/.jwm/JWMRC) to set almost all parameters (tray, keys and groups not yet implemented - see ${HOME}/.jwm/jwmrc-extra)
4. Submenus and drive icon tray are now enabled/disabled via JWMRC
5. drive tray is now part of the main .jwmrc if enabled
6 removable drives now display a usb icon (devicehandler doesn't however have an unmount option... or other frills )
7. jwm_notify and jwm_image_view now share a temporary jwmrc file (${HOME}/.jwm/jwmrc-tmp)
8. add jwm_param_set to modify jwm settings
usage:
jwm_param_set 'DRIVES="true"'
jwm_menu_create && jwm -restart
#will rebuild the jwmrc and include a drive tray at bottom center
jwm_param_set 'DRIVES=""'
jwm_menu_create && jwm -restart
#will rebuild the jwmrc and exclude the drive tray at bottom center
even with the extra

a gui wrapper can just do this
Code:
. ${HOME}/.jwm/JWMRC
#bunch of gui crud here
jwm_param_set 'PARAM1="'${VALUE}'"' ...
jwm_menu_create && jwm -restart


note the double and single quotes in jwm_param_set --- I find it easier to use than backslashing quotes (which are needed becaus some params have spaces or begin with a #)
v 0.5
added jwm_image_view ... usage: jwm_image_view [images]
add drive tray ... usage jwm_create_drives
fixed a bug in jwm_notify -- used by the drive tray
removed static install menu - make it with jwm_install_menu_create
added TODOs
- split out localizations in separat files to be sources
- background setting - already have gtk2jwm for the colors
v 0.4
de,fr,ru,es translations
fixed bug in keybindings
v 0.3
added jwm_notify tools
german localization
install menu-blacklisted BuildingBlock, DEV, DOC and NLS (feel free to modify)
and some minor bugfixes
v 0.2
defaults to $HOME/.jwmrc ... make a backup - it doesn't
bugfixes
install menu (auto-hidden at upper left)
v 0.1
initial release

Todo:
4. Support other window managers - just need a template and basic menu entry layout <<< after v1.0
5. Add it to bashbox. <<<will maintain separately merged with no modifications required
jwm_tools-0.9.pet
Description 
pet

 Download 
Filename  jwm_tools-0.9.pet 
Filesize  13.72 KB 
Downloaded  720 Time(s) 
jwm_tools-0.8.pet
Description  added typo fix in pinstall script (from Barry's woof compat fix)
pet

 Download 
Filename  jwm_tools-0.8.pet 
Filesize  13.79 KB 
Downloaded  493 Time(s) 
jwm_tools-0.7.pet
Description 
pet

 Download 
Filename  jwm_tools-0.7.pet 
Filesize  12.24 KB 
Downloaded  522 Time(s) 
jwm_tools-0.6.pet
Description 
pet

 Download 
Filename  jwm_tools-0.6.pet 
Filesize  11.14 KB 
Downloaded  482 Time(s) 
jwm_tools-0.5.pet
Description 
pet

 Download 
Filename  jwm_tools-0.5.pet 
Filesize  10.18 KB 
Downloaded  498 Time(s) 
jwm_tools-0.4.pet
Description 
pet

 Download 
Filename  jwm_tools-0.4.pet 
Filesize  38.38 KB 
Downloaded  474 Time(s) 
jwm_tools-0.3.pet
Description  added jwm_notify tools
german localization
install menu (auto-hidden at upper left)
-blacklisted BuildingBlock, DEV, DOC and NLS (feel free to modify)
and some minor bugfixes
pet

 Download 
Filename  jwm_tools-0.3.pet 
Filesize  36.98 KB 
Downloaded  476 Time(s) 
jwm_menu_create-0.1.pet
Description 
pet

 Download 
Filename  jwm_menu_create-0.1.pet 
Filesize  5.55 KB 
Downloaded  540 Time(s) 
subcats.png
 Description   and this is with submenus enabled
 Filesize   58.06 KB
 Viewed   3597 Time(s)

subcats.png

nosubcats.png
 Description   this is the results of "standard" flat puppy style with now submenus
 Filesize   54.41 KB
 Viewed   3569 Time(s)

nosubcats.png


_________________
Web Programming - Pet Packaging 100 & 101

Last edited by technosaurus on Sun 27 Nov 2011, 21:38; edited 16 times in total
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Tue 16 Aug 2011, 04:36    Post subject: Re: jwm_menu_create
Subject description: 15x faster than fixmenus - currently for development tests only
 

technosaurus wrote:

Todo:
1. What the heck is up the default*.desktop file stubs - do I need a work around or are they misplaced/malformed (they are missing most entries)


technosaurus,
Just tell your program to ignore those.

Xfce needs them. Thunor, I think, uses them, plus maybe other Xfce components.

I added those default*.desktop files when I was getting the Wary Thunor PET (and all other Thunor pkgs) to integrate nicely in Puppy, however I had a feeling that Xfce is abusing XDG (that is, how .desktop files are used) somewhat -- perhaps not, perhaps their understanding of it is more advanced than mine.

Stretching my memory a bit, they use .desktop files for mime handling, the files don't necessarily have to have a menu entry.

_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4134

PostPosted: Tue 16 Aug 2011, 04:54    Post subject:  

good to know, I think PCManFM2 uses them too.
I just fixed it by resetting the variables for each file - they don't get processed now and the other missing values don't get copied from the previous- time on my 1.6ghz machine is still 0.15s

I don't know if localizing the desktop file processing will do much now that I have looked into the files more ... many of them have been stripped of localization ... removing it from TODO for now.

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
aragon

Joined: 15 Oct 2007
Posts: 1696
Location: Germany

PostPosted: Tue 16 Aug 2011, 07:00    Post subject:  

technosaurus wrote:
...

I don't know if localizing the desktop file processing will do much now that I have looked into the files more ... many of them have been stripped of localization ... removing it from TODO for now.


Please don't. There are much efforts to get puppy-own-apps (gtkdialog) NLS-compatible , so it would be a missed chance, to not include that feature (if you're able to, what you are...).

aragon

_________________
PUPPY SEARCH: http://wellminded.com/puppy/pupsearch.html
Back to top
View user's profile Send private message 
maxerro


Joined: 10 Oct 2010
Posts: 65

PostPosted: Tue 16 Aug 2011, 08:02    Post subject:  

Thank you techno.
My biggest argument against JWM is finally solved as an even more customizable solution. Wow.

Hope this becomes part of the new fixmenus routine (at least for JWM), but even if not - I'll make it a standard in my fixmenus script.
p.s. One more <Separator/> in the Main menu between Setup and Utility to resemble the original.
Back to top
View user's profile Send private message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2368
Location: UK

PostPosted: Tue 16 Aug 2011, 09:13    Post subject:  

GREAT stuff... Can't say how much I love having a much faster fixmenus script - particularly as when the locale is non-english, the fixmenus script must retain these settings and is often much slower to finish when non-english locales are being used.

aragon wrote:
technosaurus wrote:
...

I don't know if localizing the desktop file processing will do much now that I have looked into the files more ... many of them have been stripped of localization ... removing it from TODO for now.


Please don't. There are much efforts to get puppy-own-apps (gtkdialog) NLS-compatible , so it would be a missed chance, to not include that feature (if you're able to, what you are...).

aragon

At the very least, make sure your script does not BREAK localisation, as it can then be used inside 'fixmenus_on_locale' (by shinobar) to update the menu, AND to convert most of the english to the current language.

I strongly recommend looking at and running 'fixmenus_on_locale' (used by any 'Puppy Desktop-NLS' enabled system) to see that the shutdown entries and categories can still be localised when this script is run as a replacement for 'fixmenus', inside 'fixmenus_on_locale'. I am gonna test this now, and try to make sure it works, and will get back to you.

And perhaps, for portability, the echo -e can, instead of being hardcoded, contain $(cat ~/.jwmrc) or an equivolent... minus the $MENU stuff, of course... Just a thought - as is, this may break font settings and such.

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2478
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Tue 16 Aug 2011, 10:54    Post subject: jwm_menu_create
Subject description: internationalization
 

Hi technosaurus,
thank you for this great script. Smile
you wrote:
...
I don't know if localizing the desktop file processing will do much now that I have looked into the files more ... many of them have been stripped of localization ... removing it from TODO for now.

I have put this on my TODO.
Code:
#!/bin/ash
#SUBMENU=0 #because sometimes its a PITA to have too many in one menu, set to "" for no sub category menus
# i18n by L18L
export TEXTDOMAIN=jwm_menu
export OUTPUT_CHARSET=UTF-8
# that's it plus some $(gettext "bla") or `gettext \"bla\`
#                in labels for Name, Comment (added !?) and Categories

It works, see screenshot for German translation (not yet finished).
Produced in drake01.
Just some translations required.

script attached.
started_internationalization.png
 Description   
 Filesize   24.84 KB
 Viewed   3430 Time(s)

started_internationalization.png

jwm_menu_create_i18n.gz
Description 
gz

 Download 
Filename  jwm_menu_create_i18n.gz 
Filesize  4.6 KB 
Downloaded  506 Time(s) 
Back to top
View user's profile Send private message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2368
Location: UK

PostPosted: Tue 16 Aug 2011, 11:24    Post subject:  

I found that the following is required around line 18 or 19 (before the case "$CATS" line)

Code:
   CATS="${CATS%;*}" # sc0ttman, keep just the first (or only) category.. everything before the semi-colon ;

Without this, I do not see .desktop files with have more than one category, for example deadbeef.desktop:

Code:
Categories=AudioVideo;Player


I also fixed a typo that prevented "utility" apps from showing..
Look for a mis-spelled 'utility' word... Around line 30, the line starts like:
Code:

Utility|Viewer|Development|Building|Debugger|IDE|


.....

And I am gonna apply your work L18L, after I have tried putting jwm_menu_create into fixmenus_on_locale ... If can be made to work OK when called from shinobars script, there may be no need to gettext this one.. Is that right?

** EDIT: No, that's not right, it would be best to move the gettext stuff into create_jwm_menu, I guess.

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2368
Location: UK

PostPosted: Tue 16 Aug 2011, 12:07    Post subject:  

OK, I attached an updated one...

- I have added the i18n stuff, except for $NAME .. see the comments for reasons why..
- I also fixed .desktop files with multiple categories
- I also changed 'export VAR=***' .. cos being strict, that is a bashism.

I attached my updated file...

Please search for #sc0ttman ... All changes marked #sc0ttman, plus there are suggestions in places where things can be done, thoughts from others are needed

One more thought, is gettext slower here, than the 'simple' way of just including a text localised file?

** EDIT: If you have Puppy-desktop installed, you will have the puppy-desktop.mo files for de, ru, nl, fr, es, jp and some others.

If installed, you can use the translations already available in the puppy-desktop.mo files, by simply changing L18Ls code at the top, to the following:

Code:
# i18n by L18L #sc0ttman, stricly no bashisms, using puppy-desktop translations
TEXTDOMAIN=puppy-desktop; export TEXTDOMAIN
OUTPUT_CHARSET=UTF-8; export OUTPUT_CHARSET


I now have all categories localised in the menu, built using this very fast little script Very Happy

The next step is to get the translated .desktop 'Name' fields, if they exist...
So we need to make this work:

Code:
for myLOCALE in C $(echo $LANGUAGE|cut -d':' -f1) $LC_ALL $LANG;do :;done   # ex.    ja_JP.UTF-8
myLOCALE2=${myLOCALE%_*}   # ex.   ja

....

case $LINE in
   Name[${myLOCALE2}]=*) NAME="${LINE#*=}"'' ;; # should use "Name[$LANG]=" if found
jwm_menu_create-sc0ttman.gz
Description 
gz

 Download 
Filename  jwm_menu_create-sc0ttman.gz 
Filesize  20 KB 
Downloaded  629 Time(s) 

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4134

PostPosted: Tue 16 Aug 2011, 14:46    Post subject:  

Code:
for myLOCALE in C $(echo $LANGUAGE|cut -d':' -f1) $LC_ALL $LANG;do :;done   # ex.    ja_JP.UTF-8
could be
Code:
for myLOCALE in C ${LANGUAGE%:*} $LC_ALL $LANG;do :;done   # ex.    ja_JP.UTF-8
prevents using cut unnecessarily - trying to keep it shell only

also rather than using gettext, we can just use variable names and export the variables from functions

ex:

Code:
<Menu label="'`gettext "Fun"`'" icon="games24.png" height="16">
would be:
Code:
<Menu label="'${Fun}'" icon="games24.png" height="16">
declare variables in the header

Desktop=Desktop ... Fun=Fun

then run
localize_$myLOCALE

the localize functions (must come before its call... probably right after the header)
Code:
localize_ja{
export Desktop=Desktop ... Fun=Fun #except _actually_ translated
}
for languages that have a close relative, a stub could look like
Code:
localize_es(){
localize_${some_close_language}
}
if a translation is not provided for some of the variables, it will just fall back to the defaults

I did this with the pprocess that is in bashbox and it worked ~5x faster

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
Dougal


Joined: 19 Oct 2005
Posts: 2505
Location: Hell more grotesque than any medieval woodcut

PostPosted: Tue 16 Aug 2011, 15:30    Post subject:  

There are a couple of suboptimal things in the inner loop:
- You only seem to be interested in four of the categories (judging by the case structure), yet test if ${EXEC} is nonzero for every line...
- If you got your MenuEntry, you might as well break.

Anyway, the problem with this script is that you're hardwiring the structure into the script, which is even worse than the current solution... I don't see the problem with waiting one second every now and then for the menu regeneration (you can also use a dynamic menu, if you have a reasonably fast machine).

_________________
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4134

PostPosted: Tue 16 Aug 2011, 16:42    Post subject:  

moved it outside the loop, couldn't break because the entry order can vary, so I would need to check all 4 variables ... its faster to just parse the whole file and then do one

can someone tell me the preferred order of LANG, LC_ALL, and LANGUAGE as well as the typical formats.

I think something like this will work:
myLANG=${myLANG:-${LANG%_}}

a wrapper could then set myLANG and call it with

SUBMENUS=0 myLANG=ja jwm_menu_create > ${HOME}/.jwmrc

Edit - here is a template for localization:
Code:
   xx*)   #this is a template, just remove any unnecessary translations
      jwm_Desktop=""
      jwm_DesktopSettings=""
      jwm_DesktopCountry=""
      jwm_DesktopApplets=""
      jwm_System=""
      jwm_SystemConfig=""
      jwm_SystemMemory=""
      jwm_SystemSchedule=""
      jwm_Setup=""
      jwm_SetupEntry=""
      jwm_SetupWizard=""
      jwm_SetupUtility=""
      jwm_Utility=""
      jwm_UtilityUtilities=""
      jwm_UtilityArchiving=""
      jwm_UtilityConsole=""
      jwm_Filesystem=""
      jwm_FilesystemManager=""
      jwm_FilesystemMount=""
      jwm_FilesystemUtilities=""
      jwm_FilesystemFind=""
      jwm_Graphic=""
      jwm_GraphicGraphics=""
      jwm_GraphicEdit=""
      jwm_GraphicUtility=""
      jwm_Document=""
      jwm_DocumentCompose=""
      jwm_DocumentText=""
      jwm_DocumentUtilities=""
      jwm_Business=""
      jwm_BusinessSheets=""
      jwm_BusinessCalculator=""
      jwm_BusinessUtilities=""
      jwm_Personal=""
      jwm_PersonalPlan=""
      jwm_PersonalUtilities=""
      jwm_Network=""
      jwm_NetworkDialup=""
      jwm_NetworkRemote=""
      jwm_Internet=""
      jwm_InternetWWW=""
      jwm_Multimedia=""
      jwm_MultimediaMedia=""
      jwm_MultimediaBurn=""
      jwm_Fun=""
      jwm_Help=""
      jwm_Shutdown=""
      jwm_Exit=""
      jwm_Reboot=""
      jwm_Poweroff=""
      jwm_RestartX=""
      jwm_RestartJWM=""
      ;;

_________________
Web Programming - Pet Packaging 100 & 101

Last edited by technosaurus on Tue 16 Aug 2011, 22:48; edited 1 time in total
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4134

PostPosted: Tue 16 Aug 2011, 19:59    Post subject:  

I have made a conscious decision to omit the localized keymaps, I will shift all of the additional template items to their own files ... in ${HOME}/.jwm/
groups keymaps desktop ... etc...
The menu is auto generated, but the rest is user (or developer) defined

Edit.
Ok, I have the menu localized, Names as well - if jwm ever gets tooltip support for menu items it is already ready there is a template in the script (/usr/bin/jwm_menu_create) for adding new localizations

moved the non-menu stuff to ${HOME}/.jwm/jwm-extra ... will split this apart as new tools develop (I know scottman and goingnuts have already done some work in this area)

also "multi-userized" the include paths and the pinstall.sh install script

a couple of other mods/bugfixes too

added more typos ... probably

see original post for 0.1 version pet

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4134

PostPosted: Wed 17 Aug 2011, 01:05    Post subject: jwm_menu_create v0.1 uploaded  

I have uploaded the first alpha pet package

possible issues from moving the non-menu stuff to a separate file if any P-apps modify the etc/xdg/template or jwmrc directly ... this will eventually make it much easier to change themes (I think zigbert's jwm theming and ptray may need to be looked at)
I may eventually put some pieces/parts back in if it can be auto-generated from a configuration file ... for example a parse-able file(s) with all of the shortcut key definitions, list of groups and definitions, etc... but since they are currently static, there is no real point in regenerating them every time (AFAICT)

Anyone using one of zigbert, scottman, goingnuts or many other jwm related apps/scripts that this doesn't play nice with let me know.

btw, does anyone (other than myself) prefer the submenus

Edit:
I started going through jwm-config which is spread out in several different files... so I just picked one (gtk2jwm) and went through it ... long story short ... now it is totally rewritten, but AFAICT not directly used
Code:

#!/bin/sh
. /root/.jwm/jwm_colors
while read LINE ; do #go through trayfile line by line
   case $LINE in
      include*/usr/share/themes*)GTKRC=${LINE#include };GTKRC=${GTKRC//\"/};break;;
   esac
done < ${HOME}/.gtkrc-2.0

while read LINE ; do #go through gtkrc file line by line
   case $LINE in
      *bg?NORMAL*)MENU_BG=${LINE##* };;
      *bg?SELECTED*)ACTIVE_BG=${LINE##* };;
      *fg?NORMAL*)FOREGROUND=${LINE##* };;
      *bg?ACTIVE*)PAGER_BG=${LINE##* };;
      *fg?SELECTED*)FG_SELECTED=${LINE##* };;
   esac
done < $GTKRC

 #save them...
echo '#This is written to by /usr/local/jwmconfig2/gtk2jwm script
MENU_BG='${MENU_BG}'
ACTIVE_BG='${ACTIVE_BG}'
FOREGROUND='${FOREGROUND}'
PAGER_BG='${PAGER_BG}'
FG_SELECTED='${FG_SELECTED} > ${HOME}/.jwm/jwm_colors

mv -f ${HOME}/.jwmrc-tray ${HOME}/.jwmrc-tray.bak

while read LINE ; do #go through trayfile line by line, fix blinky and xload, pass the rest through
   case $LINE in
      *blinkydelayed*)echo '      blinkydelayed -bg "'"$MENU_BG"'"' >> ${HOME}/.jwmrc-tray;;
      *xload??nolabel*)echo '      xload -nolabel -fg red -hl white -bg "'"$MENU_BG"'"' >> ${HOME}/.jwmrc-tray;;
      *)echo $LINE >> ${HOME}/.jwmrc-tray;;
      esac
done < ${HOME}/.jwmrc-tray.bak

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2478
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Wed 17 Aug 2011, 07:06    Post subject: jwm_menu_create
Subject description: LANGUAGE
 

technosaurus wrote:
...
can someone tell me the preferred order of LANG, LC_ALL, and LANGUAGE as well as the typical formats.
...

http://www.gnu.org/software/gettext/manual/gettext.html#The-LANGUAGE-variable
Though you might not use gettext I kindly suggest to use LANGUAGE in the way defined by GNU.

I am using LANGUAGE (my locale is de_DE) for example
Code:
LANGUAGE=en geany

If I had an error message from geany to reproduce the error message in English and searching for help from an international audience.

This is working with all GNU software
but NOT with rox and abiword, they seem to use "SIMPLE" localization.

LANGUAGE is a list of languages and can be used independently of having locales for all languages.
See my example
ymount

Technosaurus, did I get you right?
You support more then just the language set in locale but faster than gettext?
If that is true, CONGRATULATIONS
Smile
(And sc0ttman can use his slovio then Wink )

------------------------
Edited some hours later

Yes, it is true
Thank you Very Happy

Edited some minutes later
Changed first line of script from
Code:
myLANG=${LANG%_*}

to
Code:
 [ -z $LANGUAGE ] && myLANG=${LANG%_*} || myLANG=$LANGUAGE

And changed back to English:
Code:
 LANGUAGE=en ./jwm_menu_create > ${HOME}/.jwmrc && jwm -restart

Very Happy
German_translation_started.png
 Description   in wary513
 Filesize   6.21 KB
 Viewed   3229 Time(s)

German_translation_started.png

Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 9 [124 Posts]   Goto page: 1, 2, 3, ..., 7, 8, 9 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1293s ][ Queries: 12 (0.0081s) ][ GZIP on ]