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 18 Dec 2014, 23:17
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
Run apps in multiple languages simultaneously
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [15 Posts]  
Author Message
L18L

Joined: 19 Jun 2010
Posts: 2610
Location: www.eussenheim.de/

PostPosted: 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 Very Happy


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
set_LANGUAGE-1.2.pet
Description  use with quicksetup also possible now
pet

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

 Download 
Filename  set_LANGUAGE-1.1.pet 
Filesize  69.68 KB 
Downloaded  90 Time(s) 
set_LANGUAGE_with_wbar_2014-04-29_143745.png
 Description   version 1.0 is supporting different languages in wbar now
 Filesize   12.5 KB
 Viewed   369 Time(s)

set_LANGUAGE_with_wbar_2014-04-29_143745.png

set_LANGUAGE-1.0.pet
Description 
pet

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

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

 Download 
Filename  set_LANGUAGE-0.5.pet 
Filesize  10.22 KB 
Downloaded  137 Time(s) 
Screenshot_2014-04-08_192758.png
 Description   taken in slacko57
 Filesize   10.16 KB
 Viewed   535 Time(s)

Screenshot_2014-04-08_192758.png

set_LANGUAGE-0.4.pet
Description  if you do not have the language button
then launch
set_LANGUAGE_and_launch_app xwin
from console

Have fun
pet

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

set_LANGUAGE.png

set_LANGUAGE-0.3.pet
Description  for single app
or
jwm menu and rox desktop
pet

 Download 
Filename  set_LANGUAGE-0.3.pet 
Filesize  6.36 KB 
Downloaded  153 Time(s) 

Last edited by L18L on Wed 23 Jul 2014, 14:13; edited 22 times in total
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2610
Location: www.eussenheim.de/

PostPosted: Tue 01 Apr 2014, 08:21    Post subject: Multilingual Simultan
Subject description: xwin
 

You can start xwin from command line or from X
xwin_2014-04-01_142227.png
 Description   
 Filesize   19.66 KB
 Viewed   773 Time(s)

xwin_2014-04-01_142227.png

Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2610
Location: www.eussenheim.de/

PostPosted: Tue 01 Apr 2014, 08:29    Post subject:
Subject description: ex: geany
 

open 2 instances of defaulttexteditor in 2 different UI languages
xwin_2014-04-01_144446.png
 Description   
 Filesize   62.95 KB
 Viewed   809 Time(s)

xwin_2014-04-01_144446.png

Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 1111

PostPosted: 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
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2610
Location: www.eussenheim.de/

PostPosted: 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
Code:
LANGUAGE=en geany

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
View user's profile Send private message 
vicmz


Joined: 15 Jan 2012
Posts: 1152

PostPosted: Wed 02 Apr 2014, 00:05    Post subject:  

Cool way to test translations. Cool
_________________
OB Precise 14.07.26 Woof-CE|Puppy Linux en español
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2610
Location: www.eussenheim.de/

PostPosted: 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)
multilang.png
 Description   for jwm and rox
 Filesize   28.32 KB
 Viewed   715 Time(s)

multilang.png

Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2610
Location: www.eussenheim.de/

PostPosted: 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
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2610
Location: www.eussenheim.de/

PostPosted: 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 Very Happy
set_LANGUAGE_slacko_2014-04-05_094353.png
 Description   
 Filesize   8.87 KB
 Viewed   687 Time(s)

set_LANGUAGE_slacko_2014-04-05_094353.png

Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2610
Location: www.eussenheim.de/

PostPosted: 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
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2610
Location: www.eussenheim.de/

PostPosted: 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
setLanguage.png
 Description   
 Filesize   80.84 KB
 Viewed   367 Time(s)

setLanguage.png

Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2610
Location: www.eussenheim.de/

PostPosted: 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
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2610
Location: www.eussenheim.de/

PostPosted: 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
View user's profile Send private message 
gcmartin


Joined: 14 Oct 2005
Posts: 4502
Location: Earth

PostPosted: 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 Engine or use DogPile
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2610
Location: www.eussenheim.de/

PostPosted: 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
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [15 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
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.0994s ][ Queries: 13 (0.0061s) ][ GZIP on ]