Internationalization of Fatdog64-700b2

For efforts in internationalising Puppy and solving problems in this area
Message
Author
User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Internationalization of Fatdog64-700b2

#57 Post by L18L »

home and all faqs internationalized now.
README wrote: Sort of Help for Fatdog

You should already have loaded:
fd64-nls_700b2.sfs
(see http://www.murga-linux.com/puppy/viewtopic.php?t=96179 )


web server mongoose is launched at start of X
localhost:8080 will launch Fatdog's home page
from there you can navigate to faqs...



Translate:

create fatdoghelp.pot:

cd (usr/share/doc
xgettext -L shell --keyword=_ -o fatdoghelp.pot template_top home.html `ls faqs/*.html`

number of messages counted:
# grep -c msgid fatdoghelp.pot
1532
#


msginit # will create ${LANG%%_*}.po file for fatdoghelp

translate them using geany and then format the messages by:

msgfmt ${LANG%%_*}.po -o /usr/share/locale/${LANG%%_*}/LC_MESSAGES/fatdoghelp.mo

...and you can have


home.html and faqs

in your language (and hopefully soon in some other already translated languages)

Note, a translated doc is only counted as translation if translated title is different from English title



Enjoy
Download 549K from:http://now4u.org/fd64-700b2-NLS-2.tar.gz

EDIT
Size large, too large?
Partially translated German translation fatdoghelp.mo.
fatdoghelp.mo has 520 messages translated and is 83 K large for now.
All 1532 translated would make about 250K.
exiv2.mo - 249K
gimp.mo - 275 K
vlc.mo - 610 K
Attachments
translated_partially.png
(74.3 KiB) Downloaded 669 times

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

Re: Internationalization of Fatdog64

#58 Post by L18L »

7 posts earlier L18L wrote:145 locales
http://murga-linux.com/puppy/viewtopic. ... h&id=81422
Here is a small improvement:
2 levels only because all is UTF-8 only, no need to choose it.

Change /usr/sbin/fatdog-choose-locale.sh:

Code: Select all

#!/bin/ash
# choose locale for user
# Copyright (C) James Budiono 2012, 2014
# License: GNU GPL Version 3 or later
#
# 2014-01 L18L - localisation
#141202 omit territory in dialog, ex: German Germany. Now just: German de_DE.UTF - German locale for Germany

export TEXTDOMAIN=fatdog
,
,
,
	rm -rf $WORKDIR	
	
	# generate Xdialog strings
#	supported_locales > $CACHE_FILE                                 #141202
	supported_locales | grep -v '1$' | sed 's/2$/1/'  > $CACHE_FILE #141202
	kill $XPID
}

### main ###

mkdir -p $FIXED_LOCALES_DIR; build_cache
.
.
.
Attachments
just_2_levels_for_choosing_locale.png
see: Portuguese
(25.62 KiB) Downloaded 590 times

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

Internationalization of Fatdog64-700b2

#59 Post by L18L »

multimedia keyboard daemon

sven.pot created from source by:

Code: Select all

xgettext --keyword=_ --keyword=N_  -o sven.pot `find ./ -name *.c`
Will appear in /usr/share/doc/nls/sven thus can be translated using special (fatdog) momanager from http://www.murga-linux.com/puppy/viewto ... 287#810287.
Attachments
sven.png
(31.12 KiB) Downloaded 585 times
add_to_fd65-700b2-NLS-3.tar.gz
expand to /
contains
sven.pot
and German sven.mo
(3.9 KiB) Downloaded 450 times

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

Re: Openbox menu

#60 Post by L18L »

L18L wrote:Restartx
-
-
-
Shutdown :?:
No idea how to localize these items
Help needed.
Maybe you have another solution...
But here is how I have got it done...

Expand attached spot/add_to_fd65-700b2-NLS-4 to /
fatdog-choose-locale.sh will enable you to choose another locale
and switch to it without RestartX.

A quick-locale-switcher will have to follow soon.
Attachments
change_locale_without_RestartX.png
(21.63 KiB) Downloaded 557 times
add_to_fd65-700b2-NLS4.tar.gz
(23.34 KiB) Downloaded 474 times

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

locale

#61 Post by L18L »

L18L wrote:A quick-locale-switcher will have to follow soon.
.. and here it is.

Expand attached add_to_fd65-700b2-NLS-5 to /

This will enable you to quickly (without RestartX) switch between your different (UTF-8) locales that you have before in control panel.
Attachments
toggleLANG.png
(25.36 KiB) Downloaded 607 times
add_to_fd65-700b2-NLS-5.tar.gz
(64.29 KiB) Downloaded 496 times

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

jwm menu

#62 Post by L18L »

Copy

Code: Select all

#!/bin/ash
# create template for translation of technosaurus' jwm_menu_create
IN=/usr/bin/jwm_menu_create; OUT=jwm
echo "# translate \"strings\" to ${LANG%_*} language 
# and move this file jwm to $TEXTDOMAINDIR/${LANG%_*}/LC_MESSAGES/jwm
# run fixmenus and jwm -restart and you see your translation in JWM menu.
#" > $OUT
while read  A; do
  case "$A" in
   *{jwm_*\:\-*) A=${A%\}*}; A=${A##*\{}; echo "${A/:-/=\"}\"" >> $OUT ;;
  esac
done < $IN
exit 0
to new /usr/bin/jwm_menu_create_template
make it executable and run it.
A file named jwm will be created containing instructions about how to get translated jwm menu.

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

Re: Fatdog Chinese Language pets

#63 Post by L18L »

[quote="icake"]I am making new Chinese Language pets for fatdog64 630rc2 and runs into this challenge:

1. the starting menu at the lower left hand corner of the screen shows a fatdog logo with the word "Menu"
2. I think this is controlled by /etc/xdg/razor/razor-panel/panel.conf 2nd section [mainmenu] line 3:
English version: text=Menu
3. when I changed the above line to Chinese:
text=
Attachments
menu_button_text.png
right click on menu button
enabling localized configuration of text
(47.28 KiB) Downloaded 478 times

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

Internationalization of Fatdog64-700b2

#64 Post by L18L »

Starting fresh

In a fresh install (or savefile=none)

load_sfs the official fd64-nls_700b2.sfs

download my 800k
http://now4u.org/[b]fd64-700b2-NLS-20141220[/b].tar.gz
unpack to /
and restartx

Have fun

EDIT
tested not very successfully :cry:

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

Internationalization of Fatdog64-700b2

#65 Post by L18L »

work in progress for internationalizing Fatdog64

Use a fresh
fatdog64-700-b2

right click on downloaded
fd64-700b2-NLS.sfs
and choose Load SFS

extract this
http://now4u.org/fd64-700b2-NLS-20141221.tar.gz
to /
see screenshot

execute

Code: Select all

update_desktop_files.sh /tmp/my_desktop_info*
to get German data for menu

Hope that helps
Have fun
Attachments
extract.png
(29.94 KiB) Downloaded 414 times
Last edited by L18L on Wed 31 Dec 2014, 13:51, edited 1 time in total.

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

Fatdog64-700b2

#66 Post by L18L »

work in progress for internationalizing Fatdog64

Use an official fresh (savefile=none)
Fatdog64-700b2

right click on downloaded official
fd64-nls_700b2.sfs
and choose "Load SFS"

extract this
http://now4u.org/fd64-700b2-NLS-[b]20141231[/b].tar.gz
updated to: http://now4u.org/fd64-700b2-NLS-[b]20150106[/b].tar.gz
to /
see screenshot one post upwards

execute Code:

Code: Select all

update_desktop_files.sh /tmp/my_desktop_info*
to get data for menu

Menu (icon only) > Restartx
will simulate new internationalized Fatdog64
At the moment there is a choice just between English and German

Create a fatdog.mo for your language
(share it) and
the initial choice will grow by one

Have fun and a Happy New Year :wink:

... and a special thank to Bert. Without him I would have never been always using de_BE ! This made me detect a big bug in razor's internationalization (example: they use de_DE and no de )
..anyway it is fixed now (and not for de only)
Attachments
choose-locale.png
(13.13 KiB) Downloaded 484 times

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

Internationalization of Fatdog64-700b2

#67 Post by L18L »

Use an official fresh (savefile=none)
Fatdog64-700b2

right click on downloaded official
fd64-nls_700b2.sfs
and choose Load SFS

extract this:
http://now4u.org/fd64-700b2-NLS-20150115.tar.gz
to /
see screenshot two posts upwards

execute Code:

Code: Select all

update_desktop_files.sh /tmp/my_desktop_info*

to get some data for menus

Then use
Menu > Restartx
and see how the new internationalized Fatdog64 would be started.
At the moment there is a choice just between English and German

Create a fatdog.mo for your language
(share it) and
the initial choice will grow by one

Have fun

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

Internationalization of Fatdog64-700b2

#68 Post by L18L »

Time to add some docu
Attachments
i18n.png
(18.72 KiB) Downloaded 421 times

icake
Posts: 556
Joined: Fri 27 Jul 2012, 00:58

Chinese Language Pets

#69 Post by icake »

I have made 2 half-Chinese and 2 Chinese language txzes for fatdog64 700. 2 of these txzes are for Traditional Chinese (applicable to locales zh_HK and zh_TW) and 2 of these are for Simplified Chinese (applicable to locales zh_CN and zh_SG). For more details and download addresses, please visit the release notes dated Mar 9, 2015 below:

English: http://www.murga-linux.com/puppy/viewto ... &start=225
Chinese: http://www.minilinux.net/node/2545?page=2

Post Reply