OpenboxPlus & Openbox-P language support

For efforts in internationalising Puppy and solving problems in this area
Post Reply
Message
Author
User avatar
vicmz
Posts: 1262
Joined: Sun 15 Jan 2012, 22:47

OpenboxPlus & Openbox-P language support

#1 Post by vicmz »

OpenboxPlus forum thread and downloads:
http://murga-linux.com/puppy/viewtopic.php?t=86206

Openbox-P forum thread and downloads:
http://murga-linux.com/puppy/viewtopic.php?t=86290


At the moment OpenboxPlus and Openbox-P are dual language (English, Spanish). You must have either OpenboxPlus or Openbox-P installed to translate (the first one recommended, plus the pfbpanel.pot for FBpanel below). The NLS file attached has the existing locales and some files needed to translate to more languages (use the extract-makepet tool if you don't want to install the file):

- .desktop files for the Lxpanel dock are in /root/.config/lxpanel
- .desktop files for the Tint2 panel are in /usr/share/tint2
- Some .desktop files for built-in applications are in /usr/share/applications (choosepanel, wallpaper, wmswitcher, desksetup, obconf, tint2configuration, PupShutdown)
- Wallpaper Setter locales are in /usr/local/apps/Wallpaper/locale
- Openbox, Obconf, Lxpanel (Binary executables section), Desksetup, ChoosePanel, WM Switcher, and PupShutdown (Scripts section) can be translated trough Momanager (some existing locales for some popular languages spoken by the Puppy Linux community are included)
- The top and bottom right-click menu of Openbox are in English. If translations are written directly into the file, I'll have to provide separate language files to install individually, not practical for multilingual OpenboxPlus. The files are attached bellow. If they can't get a localization method applied, separate langpacks for OpenboxPlus would be a short-term solution.
- Openbox-P has the same as OpenboxPlus but doesn't include ChoosePanel, PupShutdown, Nathan Wallpaper Setter or Lxpanel. The only component different in Openbox-P is FBpanel, which is gettexted and can be translated through Momanager. If you're already working with OpenboxPlus you can download the FBpanel .pot file below, so that you don't have to install the panel.
Attachments
pfbpanel.pot.gz
remove the .gz extension and change .pot extension to .po
to edit easily with POedit
(4.12 KiB) Downloaded 629 times
openbox_plus_NLS-1.0.pet
(194.8 KiB) Downloaded 681 times
openbox_menu-en-002.tar.gz
(879 Bytes) Downloaded 657 times
openbox-menus.jpg
(31.55 KiB) Downloaded 1362 times
Last edited by vicmz on Mon 20 May 2013, 03:48, edited 4 times in total.
[url=http://murga-linux.com/puppy/viewtopic.php?t=76948]Puppy Linux en español[/url]

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#2 Post by don570 »

I tried to change the tail end of that menu when I made my
French version of Fluppy but couldn't find out how to do it :(

If you look at esmourguit 's wolx , he has found how to
do it so ask him. (His English is rusty)

An alternative is to add an extra line to menu and launch
Radky's PupShutdown

Image

This allows a foreign language window to shut down your computer.

Easy to do. Just create a file /root/.config/openbox/menu.xml
(if it doesn't already exist then copy from /etc/xdg )

and add this

Code: Select all

<item label="Radky Shutdown"> 
   <action name="Execute"> 
      <execute> 
      /usr/local/bin/PupShutdown 
      </execute> 
   </action> 
</item> 
Here's the file in Fluppy

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<!-- Do not edit this file, it will be overwritten on install.
        Copy the file to $HOME/.config/openbox/ instead and edit this copy. -->
<openbox_menu xmlns="http://openbox.org/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://openbox.org/                 file:///usr/share/openbox/menu.xsd">
<menu id="root-menu" label="Puppy Linux">
<menu id="System" label="System">
<item label="Control Panel">
<action name="Execute"><execute>lxl-controlpanel</execute></action>
</item>
 <separator/> 
<item label="GSmartControl hard disk health inspection">
<action name="Execute"><execute>"/usr/bin/gsmartcontrol"</execute></action>
</item>
<item label="HardInfo hardware information">
<action name="Execute"><execute>hardinfo</execute></action>
</item>
<item label="LXTask task manager">
<action name="Execute"><execute>lxtask</execute></action>
</item>
<item label="LXTerminal terminal emulator">
<action name="Execute"><execute>lxterminal</execute></action>
</item>
<item label="Pdiag diagnostics collection">
<action name="Execute"><execute>pdiag.sh</execute></action>
</item>
<item label="Pmount mount/unmount drives">
<action name="Execute"><execute>pmount</execute></action>
</item>
<item label="Powertop energy usage">
<action name="Execute"><execute>rxvt -e powertop</execute></action>
</item>
<item label="Xconsole monitor system messages">
<action name="Execute"><execute>xconsole</execute></action>
</item>
 <separator/> 
<item label="BootFlash install Puppy to USB">
<action name="Execute"><execute>/usr/sbin/bootflash</execute></action>
</item>
<item label="Puppy universal installer">
<action name="Execute"><execute>/usr/sbin/puppyinstaller</execute></action>
</item>
</menu>
<separator/>
<menu id="Utility" label="Utility">
<item label="Figaros Password Manager 2">
<action name="Execute"><execute>fpm2</execute></action>
</item>
<item label="GNU Privacy Assistant">
<action name="Execute"><execute>gpa</execute></action>
</item>
<item label="Galculator - 3 way calculator">
<action name="Execute"><execute>galculator</execute></action>
</item>
<item label="Gmeasures units converter">
<action name="Execute"><execute>gmeasures</execute></action>
</item>
<item label="PupShutdown manager">
<action name="Execute"><execute>PupShutdown</execute></action>
</item>
<item label="XF-Prot - virus scanner">
<action name="Execute"><execute>xfprot</execute></action>
</item>
<item label="Xvkbd onscreen keyboard">
<action name="Execute"><execute>xvkbd</execute></action>
</item>
 <separator/> 
<menu id="File Utilities" label="File Utilities">
<item label="Bcrypt file encryption">
<action name="Execute"><execute>bcrypt_gui</execute></action>
</item>
<item label="GtkHash calculate file hashes">
<action name="Execute"><execute>gtkhash</execute></action>
</item>
<item label="GtkSplitter split large files ">
<action name="Execute"><execute>gtk-splitter %F</execute></action>
</item>
<item label="Turma2 search and replace">
<action name="Execute"><execute>turma2</execute></action>
</item>
<item label="Xarchiver file compression ">
<action name="Execute"><execute>xarchiver</execute></action>
</item>
<item label="Xdelta file difference manager">
<action name="Execute"><execute>xdelta_gui</execute></action>
</item>
<item label="Xfdiff-cut compare two files">
<action name="Execute"><execute>xfdiff-cut</execute></action>
</item>
<item label="gFnRename batch file renamer">
<action name="Execute"><execute>gfnrename</execute></action>
</item>
</menu>
 <separator/> 
<menu id="Timekeeping Utilities" label="Timekeeping Utilities">
<item label="Gstpw stopwatch">
<action name="Execute"><execute>gstpw</execute></action>
</item>
<item label="Gworldclock timezone tool">
<action name="Execute"><execute>gworldclock</execute></action>
</item>
<item label="LightSword Alarm Manager multiple alarms">
<action name="Execute"><execute>lsalarm-manager</execute></action>
</item>
<item label="LightSword alarm clock and timer ">
<action name="Execute"><execute>lsalarm</execute></action>
</item>
<item label="Simple GTK Time Tracker ">
<action name="Execute"><execute>sgtt</execute></action>
</item>
</menu>
</menu>
<menu id="Filesystem" label="Filesystem">
<item label="ROX-Filer file manager">
<action name="Execute"><execute>rox</execute></action>
</item>
 <separator/> 
<item label="Combine-SFS squash file combiner">
<action name="Execute"><execute>combine-sfs</execute></action>
</item>
<item label="Edit-SFS squash file editor">
<action name="Execute"><execute>edit-sfs</execute></action>
</item>
<item label="GParted modify partitions and filesystems">
<action name="Execute"><execute>gparted_shell</execute></action>
</item>
<item label="ISOMaster iso file editor">
<action name="Execute"><execute>isomaster</execute></action>
</item>
<item label="SFSconvert version converter">
<action name="Execute"><execute>/usr/local/sfsconvert/sfsconvert</execute></action>
</item>
 <separator/> 
<item label="Gdmap graphical disk usage">
<action name="Execute"><execute>gdmap</execute></action>
</item>
<item label="Partview free space on disk">
<action name="Execute"><execute>partview</execute></action>
</item>
<item label="Pfind file finder">
<action name="Execute"><execute>pfind</execute></action>
</item>
 <separator/> 
<menu id="Filesystem Backup and Recovery" label="Filesystem Backup and Recovery">
<item label="Ddrescue recover data from failing hard drive">
<action name="Execute"><execute>defaultbrowser /usr/share/doc/ddrescue.html</execute></action>
</item>
<item label="Extundelete recover deleted files">
<action name="Execute"><execute>defaultbrowser /usr/share/doc/extundelete.html</execute></action>
</item>
<item label="GAdmin-Rsync backup tool">
<action name="Execute"><execute>gadmin-rsync</execute></action>
</item>
<item label="Photorec recover images/videos from damaged media ">
<action name="Execute"><execute>xterm -e photorec</execute></action>
</item>
<item label="Pmirror backup a directory">
<action name="Execute"><execute>/usr/local/pmirror/pmirror</execute></action>
</item>
<item label="Pudd clone drive/partition">
<action name="Execute"><execute>Pudd</execute></action>
</item>
<item label="Testdisk undelete,filesystem,partition repair ">
<action name="Execute"><execute>xterm -e testdisk</execute></action>
</item>
</menu>
</menu>
<menu id="Graphic" label="Graphic">
<item label="Geeqie photo library">
<action name="Execute"><execute>geeqie</execute></action>
</item>
<item label="Viewnior image viewer">
<action name="Execute"><execute>viewnior</execute></action>
</item>
 <separator/> 
<item label="Dia diagram editor">
<action name="Execute"><execute>dia</execute></action>
</item>
<item label="Fotoxx photo retouching ">
<action name="Execute"><execute>/usr/bin/fotoxx</execute></action>
</item>
<item label="mtPaint image editor">
<action name="Execute"><execute>mtpaint</execute></action>
</item>
 <separator/> 
<item label="Gcolor2 color chooser">
<action name="Execute"><execute>gcolor2</execute></action>
</item>
<item label="GetPix digital camera transfer wizard">
<action name="Execute"><execute>getpix</execute></action>
</item>
<item label="Gtkam digital camera manager">
<action name="Execute"><execute>gtkam</execute></action>
</item>
<item label="Webcam Snapshot">
<action name="Execute"><execute>webcamsnapshot.sh</execute></action>
</item>
<item label="mtPaint-snapshot screen capture">
<action name="Execute"><execute>mtpaintsnapshot.sh</execute></action>
</item>
</menu>
<menu id="Document" label="Document">
<item label="AbiWord word processor">
<action name="Execute"><execute>abiword</execute></action>
</item>
<item label="Ease presentation editor">
<action name="Execute"><execute>ease --vblank=none</execute></action>
</item>
 <separator/> 
<item label="Geany text editor">
<action name="Execute"><execute>geany</execute></action>
</item>
 <separator/> 
<item label="Evince document viewer">
<action name="Execute"><execute>evince </execute></action>
</item>
<item label="FBReader e-book reader">
<action name="Execute"><execute>FBReader </execute></action>
</item>
<item label="Gaiksaurus thesaurus">
<action name="Execute"><execute>gaiksaurus</execute></action>
</item>
<item label="Gfontsel font viewer">
<action name="Execute"><execute>gfontsel</execute></action>
</item>
<item label="Pdict online dictionary">
<action name="Execute"><execute>pdict</execute></action>
</item>
<item label="StarDict dictionary and translator">
<action name="Execute"><execute>stardict</execute></action>
</item>
</menu>
<menu id="Business" label="Business">
<item label="Gnumeric spreadsheet editor">
<action name="Execute"><execute>gnumeric</execute></action>
</item>
<item label="HomeBank personal accounting">
<action name="Execute"><execute>homebank</execute></action>
</item>
</menu>
<menu id="Personal" label="Personal">
<item label="Cire diary ">
<action name="Execute"><execute>cire</execute></action>
</item>
<item label="DidiWiki personal wiki">
<action name="Execute"><execute>didiwiki-gui</execute></action>
</item>
<item label="Expense Tracker ">
<action name="Execute"><execute>ExpenseTracker</execute></action>
</item>
<item label="NoteCase notes manager">
<action name="Execute"><execute>notecase</execute></action>
</item>
<item label="Osmo personal organizer">
<action name="Execute"><execute>osmo</execute></action>
</item>
<item label="Xournal sketchpad ">
<action name="Execute"><execute>xournal</execute></action>
</item>
</menu>
<menu id="Network" label="Network">
<menu id="DialUp" label="DialUp">
<item label="GnomePPP modem dialup">
<action name="Execute"><execute>gnome-ppp</execute></action>
</item>
<item label="PGPRS Setup">
<action name="Execute"><execute>pgprs-shell</execute></action>
</item>
<item label="PupDial modem dialup">
<action name="Execute"><execute>pupdial</execute></action>
</item>
<item label="Roaring Penguin PPPoE">
<action name="Execute"><execute>pppoe_gui</execute></action>
</item>
</menu>
 <separator/> 
<menu id="VPN" label="VPN">
<item label="Gadmin-Openvpn openvpn client">
<action name="Execute"><execute>gadmin-openvpn-client</execute></action>
</item>
<item label="Gpptp pptp vpn client">
<action name="Execute"><execute>gpptp</execute></action>
</item>
<item label="VPN Wiz vpnc client">
<action name="Execute"><execute>/usr/share/vpnwiz/VPNWiz</execute></action>
</item>
</menu>
 <separator/> 
<item label="GAdmin-SSHD remote login and file server">
<action name="Execute"><execute>gadmin-sshd</execute></action>
</item>
<item label="IPinfo network status">
<action name="Execute"><execute>ipinfo</execute></action>
</item>
<item label="MTR traceroute">
<action name="Execute"><execute>mtr -g</execute></action>
</item>
<item label="Pnethood access windows shares">
<action name="Execute"><execute>pnethood</execute></action>
</item>
<item label="PuTTY ssh/telnet/rlogin client">
<action name="Execute"><execute>putty</execute></action>
</item>
<item label="Remmina remote desktop client ">
<action name="Execute"><execute>remmina</execute></action>
</item>
<item label="Superscan network scanner">
<action name="Execute"><execute>superscan</execute></action>
</item>
</menu>
<menu id="Internet" label="Internet">
<item label="Advert-Blocker - block online ads">
<action name="Execute"><execute>pup-advert-blocker</execute></action>
</item>
<item label="Axel download accelerator">
<action name="Execute"><execute>puppydownload</execute></action>
</item>
<item label="Claws mail and RSS reader">
<action name="Execute"><execute>claws-mail</execute></action>
</item>
<item label="GetEz wget website mirroring tool">
<action name="Execute"><execute>getez</execute></action>
</item>
<item label="Midori web browser">
<action name="Execute"><execute>midori </execute></action>
</item>
<item label="Pidgin internet messenger">
<action name="Execute"><execute>pidgin</execute></action>
</item>
<item label="Streamtuner internet radio">
<action name="Execute"><execute>streamtuner</execute></action>
</item>
<item label="TangoGPS map/gps client ">
<action name="Execute"><execute>tangogps</execute></action>
</item>
<item label="Transmission bittorrent client">
<action name="Execute"><execute>transmission-gtk</execute></action>
</item>
<item label="Uget download manager">
<action name="Execute"><execute>uget-gtk</execute></action>
</item>
<item label="gFTP ftp client">
<action name="Execute"><execute>gftp</execute></action>
</item>
</menu>
<menu id="Multimedia" label="Multimedia">
<item label="Eina music player">
<action name="Execute"><execute>eina </execute></action>
</item>
<item label="Flite speech synthesizer">
<action name="Execute"><execute>flite-speak</execute></action>
</item>
<item label="Parole media player">
<action name="Execute"><execute>parole </execute></action>
</item>
<item label="UCView webcam capture">
<action name="Execute"><execute>ucview</execute></action>
</item>
<item label="Xnoise media library">
<action name="Execute"><execute>xnoise </execute></action>
</item>
<item label="mhWaveEdit audio recorder/editor">
<action name="Execute"><execute>mhwaveedit</execute></action>
</item>
 <separator/> 
<item label="Gnac audio converter">
<action name="Execute"><execute>gnac </execute></action>
</item>
 <separator/> 
<menu id="CD/DVD Ripping and Burning" label="CD/DVD Ripping and Burning">
<item label="Asunder audio CD ripper">
<action name="Execute"><execute>asunder</execute></action>
</item>
<item label="Burniso2cd burning wizard ">
<action name="Execute"><execute>burniso2cd</execute></action>
</item>
<item label="Pburn CD/DVD/Blu-ray writer">
<action name="Execute"><execute>pburn</execute></action>
</item>
<item label="Thoggen DVD ripper">
<action name="Execute"><execute>thoggen</execute></action>
</item>
</menu>
</menu>
<menu id="Fun" label="Fun">
<menu id="Ace of Penguins" label="Ace of Penguins">
<item label="Ace of Penguins Freecell  ">
<action name="Execute"><execute>ace_freecell</execute></action>
</item>
<item label="Ace of Penguins Minesweeper  ">
<action name="Execute"><execute>ace_minesweeper</execute></action>
</item>
<item label="Ace of Penguins Pegged  ">
<action name="Execute"><execute>ace_pegged</execute></action>
</item>
<item label="Ace of Penguins Solitaire  ">
<action name="Execute"><execute>ace_solitaire</execute></action>
</item>
<item label="Ace of Penguins Taipei  ">
<action name="Execute"><execute>ace_taipei</execute></action>
</item>
</menu>
 <separator/> 
<item label="Battleship board game">
<action name="Execute"><execute>battleship</execute></action>
</item>
<item label="GLightOff turn off the lights">
<action name="Execute"><execute>glightoff</execute></action>
</item>
<item label="GPL Arcade Volleyball">
<action name="Execute"><execute>gav</execute></action>
</item>
<item label="GTans tanegrams">
<action name="Execute"><execute>gtans</execute></action>
</item>
<item label="Gtkballs 5 in a row  ">
<action name="Execute"><execute>gtkballs</execute></action>
</item>
<item label="Gweled puzzle game">
<action name="Execute"><execute>gweled</execute></action>
</item>
<item label="Primrose tile game ">
<action name="Execute"><execute>primrose</execute></action>
</item>
<item label="Vor dodge the rocks ">
<action name="Execute"><execute>vor -f</execute></action>
</item>
<item label="XBubble break the bubbles">
<action name="Execute"><execute>xbubble</execute></action>
</item>
<item label="Xinvaders3d arcade game  ">
<action name="Execute"><execute>xinv3d</execute></action>
</item>
</menu>
<separator/>
<!-- Do not edit this file, it will be overwritten on install.
        Copy the file to $HOME/.config/openbox/ instead and edit this copy. -->
        
<item label="Radky Shutdown">
	<action name="Execute">
		<execute>
		/usr/local/bin/PupShutdown
		</execute>
	</action>
</item>
		
<menu id="Shutdown" label="Shutdown">		
		<item label="Power-off computer">
			<action name="Execute">
				<execute>wmpoweroff</execute>
			</action>
		</item>	
		<item label="Reboot">
			<action name="Execute">
				<execute>wmreboot</execute>
			</action>
		</item>		
		<item label="Exit to prompt">
			<action name="Execute">
				<execute>openbox --exit</execute>
			</action>
		</item>		
		<item label="Restart X server">
			<action name="Execute">
				<execute>restartx</execute>

			</action>
		</item>	
		</menu>
		<separator/>
		<menu id="root-menu-11940" label="Openbox">
			<menu id="client-list-menu" label="client-list-menu">
			</menu>
			<item label="Obconfig">
				<action name="Execute">
					<execute>
						obconf
					</execute>
				</action>
			</item>
			<item label="Reconfigure">
				<action name="Reconfigure"/>
			</item>
			<item label="Refresh menu">
				<action name="Execute">
					<execute>fixmenus</execute>
				</action>
				<action name="Reconfigure"/>
			</item>
		</menu>
	</menu>
</openbox_menu>

User avatar
vicmz
Posts: 1262
Joined: Sun 15 Jan 2012, 22:47

#3 Post by vicmz »

See the first post for more information on the new OpenboxPlus and how to help with localization.
[url=http://murga-linux.com/puppy/viewtopic.php?t=76948]Puppy Linux en español[/url]

User avatar
vicmz
Posts: 1262
Joined: Sun 15 Jan 2012, 22:47

#4 Post by vicmz »

don570 wrote:I tried to change the tail end of that menu when I made my
French version of Fluppy but couldn't find out how to do it :(

If you look at esmourguit 's wolx , he has found how to
do it so ask him. (His English is rusty)

An alternative is to add an extra line to menu and launch
Radky's PupShutdown

Image

This allows a foreign language window to shut down your computer.
Thank you Don, that is likely to be the best solution if no other methods are applicable. Radky's PupShutdown is part of OpenboxPlus and is gettexted, it only needs translations.[/quote]

User avatar
vicmz
Posts: 1262
Joined: Sun 15 Jan 2012, 22:47

#5 Post by vicmz »

Information updated, see first post
[url=http://murga-linux.com/puppy/viewtopic.php?t=76948]Puppy Linux en español[/url]

User avatar
oldyeller
Posts: 889
Joined: Tue 15 Nov 2011, 14:26
Location: Alaska

#6 Post by oldyeller »

Hello,

This is going to be off topic sorry,

But do you maintain the Spanish language and if so which one is it. When one does the quick setup for language there is a lot of different ones for Spanish. What I am doing is localizing Manna-Editor for other languages.

Sorry for being off topic here.

Thanks

User avatar
vicmz
Posts: 1262
Joined: Sun 15 Jan 2012, 22:47

#7 Post by vicmz »

oldyeller wrote:Hello,

This is going to be off topic sorry,

But do you maintain the Spanish language and if so which one is it. When one does the quick setup for language there is a lot of different ones for Spanish. What I am doing is localizing Manna-Editor for other languages.

Sorry for being off topic here.

Thanks
Don't worry, it's OK :D
I maintain basically all of them because langpack_es translates to Spanish in general, the country choice is optional. The langpack_es.pet places .mo files at /usr/share/locale/es/LC_MESSAGES which is a directory for all locales, if a language pack specifies a country, say /usr/share/locale/es_ES/LC_MESSAGES (where es_ES would be Spanish from Spain), the translations will work only if you select that country, only practical if there actually is an important difference in the words used for that locale, that's why I prefer a one-for-all package.

If you translate through Momanager, make sure to click the 'es' button instead of 'es_ES', 'es_AR' etc. so that the translation is placed in the one-for-all directory.
[url=http://murga-linux.com/puppy/viewtopic.php?t=76948]Puppy Linux en español[/url]

User avatar
oldyeller
Posts: 889
Joined: Tue 15 Nov 2011, 14:26
Location: Alaska

#8 Post by oldyeller »

Hi vicmz,

Will do, Thanks

Post Reply