Author |
Message |
L18L

Joined: 19 Jun 2010 Posts: 3493 Location: www.eussenheim.de/
|
Posted: Tue 01 Apr 2014, 08:19 Post subject:
Run apps in multiple languages simultaneously Subject description: quick switch of desktop language for all languages of xwin.mo |
|
Running an app simultaneously in 2 (or more) languages.
and/or Switching between languages of desktop (xwin.mo required)
EDIT: jwm menu, desktop icons and wbar titles /EDIT
EDIT: and rox right click text /EDIT
Needed: mo file of that app in /usr/share/locale(<LANGUAGE>/textdomain.mo (or the entire langpack)
Code: | # set_LANGUAGE_and_launch_app -h
usage: set_LANGUAGE_and_launch_app textdomain [ "app [ argument(s) ]..." ]
app only needed if different from textdomain
choose a language from available textdomains
app will be launched in chosen language or English if cancelled
-h this help
-v version
Examples:
set_LANGUAGE_and_launch_app xwin
set_LANGUAGE_and_launch_app geany "geany /root/my-applications/bin/README-my-applications-bin.txt"
# |
Enjoy
EDIT
version 1.2
fit for use with Firstrun (quicksetup) now
EDIT
version 1.1
roxOpenWith(right-click) text (ex:Search with Pfind) translatable now
EDIT
version 1.0
support for wbar simpler now
EDIT
version 0.7
support for wbar added
EDIT
version 0.6
use desktop icon (from languageicon.org) only for changing desktop language
EDIT
version 0.5
use jwm menu only for changing desktop language
EDIT
version 0.4
- apps launched from menu come up in language of menu
- console prompts language for languages other than original language
EDIT
version 0.3 can switch jwm menu and rox desktop between several installed languages
Description |
use with quicksetup also possible now
|

Download |
Filename |
set_LANGUAGE-1.2.pet |
Filesize |
70.51 KB |
Downloaded |
526 Time(s) |
Description |
|

Download |
Filename |
set_LANGUAGE-1.1.pet |
Filesize |
69.68 KB |
Downloaded |
487 Time(s) |
Description |
version 1.0 is supporting different languages in wbar now |
Filesize |
12.5 KB |
Viewed |
642 Time(s) |

|
Description |
|

Download |
Filename |
set_LANGUAGE-1.0.pet |
Filesize |
69.74 KB |
Downloaded |
732 Time(s) |
Description |
|

Download |
Filename |
set_LANGUAGE-0.7.pet |
Filesize |
70.06 KB |
Downloaded |
506 Time(s) |
Description |
language and choice in jwm menu now, no tray button
|

Download |
Filename |
set_LANGUAGE-0.5.pet |
Filesize |
10.22 KB |
Downloaded |
611 Time(s) |
Description |
taken in slacko57 |
Filesize |
10.16 KB |
Viewed |
809 Time(s) |

|
Description |
if you do not have the language button then launch set_LANGUAGE_and_launch_app xwin from console
Have fun
|

Download |
Filename |
set_LANGUAGE-0.4.pet |
Filesize |
9.37 KB |
Downloaded |
562 Time(s) |
Description |
Have always access to English JWM menu and ROXdesktop |
Filesize |
9.96 KB |
Viewed |
1093 Time(s) |

|
Description |
for single app or jwm menu and rox desktop
|

Download |
Filename |
set_LANGUAGE-0.3.pet |
Filesize |
6.36 KB |
Downloaded |
554 Time(s) |
Last edited by L18L on Wed 23 Jul 2014, 14:13; edited 22 times in total
|
Back to top
|
|
 |
L18L

Joined: 19 Jun 2010 Posts: 3493 Location: www.eussenheim.de/
|
Posted: Tue 01 Apr 2014, 08:21 Post subject:
Multilingual Simultan Subject description: xwin |
|
You can start xwin from command line or from X
Description |
|
Filesize |
19.66 KB |
Viewed |
1041 Time(s) |

|
|
Back to top
|
|
 |
L18L

Joined: 19 Jun 2010 Posts: 3493 Location: www.eussenheim.de/
|
Posted: Tue 01 Apr 2014, 08:29 Post subject:
Subject description: ex: geany |
|
open 2 instances of defaulttexteditor in 2 different UI languages
Description |
|
Filesize |
62.95 KB |
Viewed |
1079 Time(s) |

|
|
Back to top
|
|
 |
SFR

Joined: 26 Oct 2011 Posts: 1802
|
Posted: Tue 01 Apr 2014, 13:10 Post subject:
|
|
Aaah, so it's export LANGUAGE=... - I was unsuccessfully struggling with export LANG=... before.
Yeah, will be useful for checking out translations without switching the entire system to the given lang.
Thanks L18L &
Greetings!
_________________ [O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
|
Back to top
|
|
 |
L18L

Joined: 19 Jun 2010 Posts: 3493 Location: www.eussenheim.de/
|
Posted: Tue 01 Apr 2014, 13:50 Post subject:
|
|
SFR wrote: | Aaah, so it's export LANGUAGE=... - I was unsuccessfully struggling with export LANG=... before. |
Even an export is not really needed
If you have polish langpack try just
LANGUAGE does not need a locale being set.
LANGUAGE can be a list, ex: LANGUAGE=pl:de_AT:ru
http://www.murga-linux.com/puppy/viewtopic.php?t=91934
Glad you like it
Greetings
|
Back to top
|
|
 |
vicmz

Joined: 15 Jan 2012 Posts: 1268
|
Posted: Wed 02 Apr 2014, 00:05 Post subject:
|
|
Cool way to test translations.
_________________ Puppy Linux en español
|
Back to top
|
|
 |
L18L

Joined: 19 Jun 2010 Posts: 3493 Location: www.eussenheim.de/
|
Posted: Fri 04 Apr 2014, 11:39 Post subject:
|
|
.... not for test only
it is made for use
next version:
menu and desktop in several fast switchable languages
Language right of menu button
tooltip is showing other installed languages (or just xwin.mo)
pet will follow (needs some testing before)
Description |
for jwm and rox |
Filesize |
28.32 KB |
Viewed |
962 Time(s) |

|
|
Back to top
|
|
 |
L18L

Joined: 19 Jun 2010 Posts: 3493 Location: www.eussenheim.de/
|
Posted: Fri 04 Apr 2014, 13:28 Post subject:
Multilingual Simultan Subject description: version 0.3 (pet see 1st post) |
|
Code: | version=0.3 #140404 switch jwm menu and rox desktop to another LANG for app=xwin |
L18L wrote: | pet will follow (needs some testing before) | Tested in precise5.71 pfix=ram
One langpack must be installed (or maybe just one xwin.mo)
set_LANGUAGE-0,3.pet installed
... and language tray button exists (...and works)
Download set_LANGUAGE-0.3.pet from 1st post
|
Back to top
|
|
 |
L18L

Joined: 19 Jun 2010 Posts: 3493 Location: www.eussenheim.de/
|
Posted: Sat 05 Apr 2014, 03:34 Post subject:
Multilingual Simultan Subject description: slacko test |
|
Version 0.3 tested in slacko57
Icon for button does not exist
Thus at first install of pet the button is totally empty.
------
TODO
Launching an app from menu the app should come up in language of menu
Stuff for next version
Description |
|
Filesize |
8.87 KB |
Viewed |
925 Time(s) |

|
|
Back to top
|
|
 |
L18L

Joined: 19 Jun 2010 Posts: 3493 Location: www.eussenheim.de/
|
Posted: Tue 08 Apr 2014, 13:28 Post subject:
Multilingual Simultan Subject description: version 0.4 |
|
L18L wrote: | TODO
Launching an app from menu the app should come up in language of menu |
...done
see 1st post please
QUESTION:
Howto integrate the languages into language button to build a language menu?
EDIT
ANSWER:
is in next version
EDIT
which is version 0.5 and downloadable from first post.
|
Back to top
|
|
 |
L18L

Joined: 19 Jun 2010 Posts: 3493 Location: www.eussenheim.de/
|
Posted: Sat 19 Apr 2014, 14:08 Post subject:
Multilingual Simultan |
|
Code: | version=0.6 #140419 use desktop icon for switching to each language with "locale" |
Change desktop language by one single click.
No more special language menu in jwm menu or jwm tray.
desktop icon from languageicon.org
See image (glued by rcrsn51's peasyglue)
icon at bottom right side of screen with name of language
right click gives choice for other languages (which need their locale and xwin.mo) ,
My example: English Deutsch and Slovenc.... for direct change
and ? for menu
Single click on desktop lets you switch between languages....
pet version 0.6 at post 1.
Have fun
Description |
|
Filesize |
80.84 KB |
Viewed |
614 Time(s) |

|
|
Back to top
|
|
 |
L18L

Joined: 19 Jun 2010 Posts: 3493 Location: www.eussenheim.de/
|
Posted: Thu 24 Apr 2014, 10:11 Post subject:
Multilingual Simultan Subject description: version 0.7 |
|
This version is also supporting translation of wbar
Needed a template named _root_.wbar in /etc/xdg/template
and entries in /usr/share/sss/menu_strings/....
Example see in Italian langpack thread
pet in 1st post
|
Back to top
|
|
 |
L18L

Joined: 19 Jun 2010 Posts: 3493 Location: www.eussenheim.de/
|
Posted: Tue 15 Jul 2014, 13:58 Post subject:
Multilingual Simultan Subject description: version 1.1 |
|
version 1.1
roxOpenWith(right-click) text (ex:Search with Pfind) translatable now
contains /usr/sbin/fixroxOpenWith
translatable in momanager....
download from 1st post
|
Back to top
|
|
 |
gcmartin
Joined: 14 Oct 2005 Posts: 6730 Location: Earth
|
Posted: Tue 15 Jul 2014, 19:28 Post subject:
|
|
Hello @L18L.
Have you noticed PMs to you on language recently?
Here to help
_________________ Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engines or use DogPile
|
Back to top
|
|
 |
L18L

Joined: 19 Jun 2010 Posts: 3493 Location: www.eussenheim.de/
|
Posted: Wed 23 Jul 2014, 14:16 Post subject:
quicksetup Subject description: version 1.2 |
|
fit for use with quicksetup now
http://www.murga-linux.com/puppy/viewtopic.php?p=790610
Thanks gcmartin....
|
Back to top
|
|
 |
|