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/

Re: choose-locale

#42 Post by L18L »

jamesbond wrote:Rather than playing with this trick (SUPPORTED is a file from glibc, it will change in 700; same with those locale/* stuff; so I would prefer not to mess with them unless we really have to), we can in fact cache the entire pipeline.
...the play went on using unifont.ttf from .http://czyborra.com/unifont/updates/
( download and
move to /usr/share/fonts/default/TTF/
click Update-Fonts
reboot and have fun
)

Code: Select all

                     country_name*) CN=""${q#*"}" ; CN="${CN%"*} " ;;
                  esac           
					done < $LOCALE_DEF_DIR/$src
#              done << EOF
#$(show-ucs-data $LOCALE_DEF_DIR/$src)
#EOF
#               echo "${TI}|${LN}${LA}|${TE}" 

               [ "${LA%?} " = "${LN#?}" ] && LA='"' #avoid "Afrikaans Afrikaans"
               [ ${#LN} -gt 1 ] && LA='"'
               echo "${TI}|${LN}${LA}|${CN}${TE}" 

				fi
				;;
		esac
	done < $SUPPORTED_GLIBC_LOCALES | tr -d '"' | 
added country_name;
uses lang_name only (not language) if exists


glibc-2,18 has some new locales (ex: suomi) but the old crap is still there.
Attachments
lang_name_from_glibc-2.18.png
(12.49 KiB) Downloaded 413 times

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

Internationalization of Fatdog64-630

#43 Post by L18L »

Cancelled.

Edit
murga is not ready for upload at the moment. :cry:

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

Internationalization of Fatdog64-700_b1

#44 Post by L18L »

(I have not been able to create a new thread for this
so will continue here)

Install Fatdog64-700b1 (64 bit computer required)

Non-English users (... and translators :lol: ) might download
fd64-nls_700b1.sfs
and load it.

Then use Set locale (Control Panel) to set locale other than English.
Attachments
fatdog1.png
(46.74 KiB) Downloaded 320 times

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

Internationalization of Fatdog64-700b1

#45 Post by L18L »

Attached is fatdog.pot

Instructions

no devx required, no momanager at the moment.

change to directory
/usr/share/locale/<lang>/LC_MESSAGES
where <lang> is nl for Nederlands, fr for Francais, ru for Pycckuu,....

download attached file as fatdog.pot to this directory (no .gz in file name)

create portable object file <lang>.po by

Code: Select all

msginit
edit this file (translate some or some more or all ) using geany (or poedit....)

create machine obnject file fatdog.mo for your language
Terminal wrote:msgfmt <lang>.po -o fatdog.mo
See your translations in action..... correct mistakes.


---
edit
..... and upload your fatdog64.mo here
thus it can be included into the sfs
Attachments
fatdog.pot.gz
(46.71 KiB) Downloaded 410 times

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

Re: Internationalization of Fatdog64-700b1

#46 Post by L18L »

L18L wrote:..... and upload your fatdog64.mo here
thus it can be included into the sfs
Here is fatdog.mo for German language
Attachments
fatdog-german.tar.bz2
(15.1 KiB) Downloaded 528 times

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

/usr/share/applications/*.desktop

#47 Post by L18L »

If the *desktop files in /usr/share/applications/ contain

Name[<lang>]=Name in your language
or
Comment[<lang>]=Comment in your language

these will be displayed in Control Panel
and in QuickApps (/usr/bin/fatdog-quickapps.sh) too!

I have internationalized this script ...
(see attachment)
...and localized to "MeineApps"

... you might append the following to your po file

Code: Select all

#: fatdog-quickapps.sh:12
msgid "QuickApps"
msgstr "MeineApps"

#: fatdog-quickapps.sh:36
msgid "Application Launcher - create shortcuts for often-used applications"
msgstr "Anwendungsstarter - für oft benutzte Anwendungen"

#: fatdog-quickapps.sh:43
msgid "Add/remove application shortcuts"
msgstr "Anwendungen dazufügen/entfernen"

#: fatdog-quickapps.sh:58
#, sh-format
msgid ""
"Two folders have been opened. \\n\n"
"One is the ${APPTITLE} folder, the other one is the \"All applications folder\". \\n\n"
"You can identify them by looking at the window title. \\n \n"
"\n"
"To add a shortcut, follow these three easy steps:"
msgstr ""
"Zwei Ordner wurden geöffnet. \\n\n"
"Einer ist der Ordner ${APPTITLE}, der andere ist der \"Alle  Anwendungen\"-Ordner /usr/share/applications. \\n\n"
"Man kann sie durch Blick auf den Fenstertitel identifizieren. \n"
"\n"
"Zur Erzeugung individueller  Einträge einfach die folgenden drei Schritte durchführen:"

#: fatdog-quickapps.sh:64
#, sh-format
msgid ""
"Create a new folder in the ${APPTITLE} folder. \\n \n"
"   This new folder serves as \"Category\" and will appear as a tab in the ${APPTITLE}."
msgstr ""
"Im Ordner ${APPTITLE} einen neuen Ordner erzeugen. \\n \n"
"   Dieser neue Ordner dient als \"Kategorie\" und wird in ${APPTITLE} als Reiter erscheinen."

#: fatdog-quickapps.sh:67
msgid ""
"From the \"All applications folder\", select then drag and drop the applications you want \n"
"   into the \"Category\" folder you created in step 1. Choose \"Link\" when asked."
msgstr ""
"Aus dem \"Alle Anwendungen\"-Ordner die gewünschten Anwendungen in den in Schritt 1 erzeugten \n"
"   \"Kategorie\"-Ordner ziehen. Verknüpfung (relativ) wählen."

#: fatdog-quickapps.sh:70
#, sh-format
msgid ""
"Repeat step 1 & 2 as necessary. \n"
"\n"
"When done, click \"${REBUILD_LINK}\" on the ${APPTITLE} folder."
msgstr ""
"Schritte 1 und 2 gegebenenfalls wiederholen. \n"
"\n"
"Wenn fertig, \"${REBUILD_LINK}\" im Ordner ${APPTITLE} anklicken."

#: fatdog-quickapps.sh:74
#, sh-format
msgid "${APPTITLE} is available from your Home folder."
msgstr "${APPTITLE} ist im Home-Ordner (/root)."
... translate and msgfmt it.

See sample screenshot
Attachments
fatdog-quickapps.sh.gz
save to
/usr/bin/fatdog-quickapps.sh
and make executable
(3.06 KiB) Downloaded 464 times
QuickApps.png
Take this app QuickApps
and
forget any menu
(just my opinion)
(63.28 KiB) Downloaded 878 times

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#48 Post by jamesbond »

Thank you L18L.
1. The updated fatdog-quickapps will be part of basesfs in next release.
2. fatdog.pot and fatdog.mo (german) will be included in fatdog-i18n-1-noarch-1.txz package in the repo *AND* in fd64-nls.sfs. The one in fd64-nls.sfs obviously will be static, but the package in the repo will reflect continuous updates - all other languages will be in this package as well, when they are available.

cheers!
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

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

Internationalization of Fatdog64

#49 Post by L18L »

jamesbond wrote:Thank you L18L.
1. The updated fatdog-quickapps will be part of basesfs in next release.
2. fatdog.pot and fatdog.mo (german) will be included in fatdog-i18n-1-noarch-1.txz package in the repo *AND* in fd64-nls.sfs. The one in fd64-nls.sfs obviously will be static, but the package in the repo will reflect continuous updates - all other languages will be in this package as well, when they are available.

cheers!
Thank you jamesbond,
you have done another great work: looks like you have found all translations existing on the web and put them into one sfs.

Note, ROX-Filer.mo has to be located at
/usr/share/ROX-Filer/Messages/<lang>/LC_MESSAGES/

fatdog.potcan be found at /usr/share/locale if fd64-nls_700b2.sfs is loaded.

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

Internationalization of Fatdog64

#50 Post by L18L »

/usr/share/i18n/SUPPORTED wrote:This file names the currently supported and somewhat tested locales.
# If you have any additions please file a glibc bug report.
SUPPORTED-LOCALES=\
aa_DJ.UTF-8/UTF-8 \
-
-
-
zu_ZA/ISO-8859-1 \
456 locales
I have nothing to add but suggest to remove some locales

Code: Select all

cd /usr/share/i18n
mv SUPPORTED SUPPORTED.glib
grep UTF-8/UTF-8 SUPPORTED.glib > SUPPORTED
145 locales
Attachments
locales_orig.png
456 locales
most of them are crap
(20.22 KiB) Downloaded 1268 times
locales_145.png
145 is more than enough
(19.43 KiB) Downloaded 821 times

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

Openbox menu

#51 Post by L18L »

Restartx
-
-
-
Shutdown :?:
No idea how to localize these items
Help needed.
Attachments
localize_openbox_menu.html.gz
remove fake .gz
and view it in browser
there is info about GenericName

(and code for crating files is fixed)
(3.02 KiB) Downloaded 469 times
localize_openbox_menu.png
(46.63 KiB) Downloaded 772 times
Last edited by L18L on Sat 01 Nov 2014, 19:06, edited 2 times in total.

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

Openbox menu

#52 Post by L18L »

localize_openbox_menu.html has been downloaded 2 times.
Sorry, code did not work. :oops:
Fixed now, re-download please. :D

Example for German here:
CategoryNames_de wrote:AudioVideo.directory:Name[de]=Multimedia
Development.directory:Name[de]=Entwicklung
Education.directory:Name[de]=Bildung
Game.directory:Name[de]=Spiele
Graphics.directory:Name[de]=Grafik
Hardware.directory:Name[de]=Hardware
InternetAndNetwork.directory:Name[de]=Internet und Netzwerk
LookAndFeel.directory:Name[de]=Darstellung
Network.directory:Name[de]=Internet
Office.directory:Name[de]=Büro
Personal.directory:Name[de]=Persönlich
Puppy-Calculate.directory:Name[de]=Kalkulation
Puppy-Development.directory:Name[de]=Entwicklung
Puppy-Document.directory:Name[de]=Dokument
Puppy-Filesystem.directory:Name[de]=Dateisystem
Puppy-Fun.directory:Name[de]=Spiel
Puppy-Graphic.directory:Name[de]=Grafik
Puppy-Network.directory:Name[de]=Netzwerk
Puppy-Personal.directory:Name[de]=Persönlich
Puppy-Utility.directory:Name[de]=Werkzeug
Settings.directory:Name[de]=Einstellungen
Settings-System.directory:Name[de]=Systemverwaltung
System.directory:Name[de]=System
System-Tools.directory:Name[de]=Systemwerkzeuge
Utility-Accessibility.directory:Name[de]=Barrierefreiheit
Utility.directory:Name[de]=Zubehör
X-GNOME-Menu-Applications.directory:Name[de]=Anwendungen
X-GNOME-Menu-System.directory:Name[de]=System
X-GNOME-Other.directory:Name[de]=Sonstige
CategoryComments_de wrote:AudioVideo.directory:Comment[de]=Multimedia-Menü
Development.directory:Comment[de]=Werkzeuge zur Software-Entwicklung
Game.directory:Comment[de]=Spiel und Spaß
Graphics.directory:Comment[de]=Anwendungen zur Grafikbearbeitung
Hardware.directory:Comment[de]=Einstellungen für Hardware
InternetAndNetwork.directory:Comment[de]=Netzwerkbezogene Einstellungen
LookAndFeel.directory:Comment[de]=Einstellungen für das Aussehen und das Verhalten der Arbeitsoberfläche
Network.directory:Comment[de]=Programme um Internet-Dienste wie E-Mail oder das WWW zu nutzen
Office.directory:Comment[de]=Büroanwendungen
Personal.directory:Comment[de]=Persönliche Vorlieben und Einstellungen
Puppy-Calculate.directory:Comment[de]=Software für Kalkulation
Puppy-Development.directory:Comment[de]=Werkzeuge zur Software-Entwicklung
Puppy-Utility.directory:Comment[de]=auch Dienstprogramme genannt
Settings.directory:Comment[de]=Persönliche Einstellungen
Settings-System.directory:Comment[de]=Systemweite Einstellungen ändern (dies betrifft alle Benutzer)
System.directory:Comment[de]=Systemeinstellungen
System-Tools.directory:Comment[de]=Systemkonfiguration und -überwachung
Utility-Accessibility.directory:Comment[de]=Einstellungen zur Barrierefreiheit
Utility.directory:Comment[de]=Desktop-Zubehör
X-GNOME-Menu-Applications.directory:Comment[de]=Anwendungen
X-GNOME-Menu-System.directory:Comment[de]=Persönliche Anpassungen und Administratoreinstellungen
X-GNOME-Other.directory:Comment[de]=Anwendungen welche in keine andere Kategorie eingeordnet werden können
Note1, most of them have been already in the NLS.sfs

Note2, script for processing these data will follow

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

Internationalization of Fatdog64-700b2

#53 Post by L18L »

L18L wrote:script for processing these data will follow

Code: Select all

#!/bin/sh
# localize_openbox_menu.sh

# update localized Name        in /usr/share/applications/*.desktop
# update localized GenericName in /usr/share/applications/*.desktop
# update localized Comment     in /usr/share/applications/*.desktop

# created file applicationNames for update of some languages by: 
# for Name and GenericName use:
# grep -r 'Name\[' */usr/share/applications/*.desktop | cut -d/ -f5- | sort  --field-separator=']' --key=1,1 -u  > applicationsNames_${LANG:0:2}

DOIT ()
{
 path=$1	 
 while read LINE; do
  FILE="${LINE%%:*}"
  NAMELINE="${LINE##*:}"
  
  NAMELINE="${NAMELINE//[/\[}"
  NAMELINE="${NAMELINE//]/\]}"
   
  NAME="${NAMELINE%%=*}"
  if [ -f                        $path/$FILE ]; then
   echo $LINE
   sed -i "/${NAME}/d"           $path/$FILE
   echo    "${NAMELINE//\\/}" >> $path/$FILE # '\' removed
  fi
 done < $UPDATE
}

for UPDATE in applicationsNames* applicationsComments*; do
 DOIT /usr/share/applications
done

for UPDATE in categoryNames* categoryComments*; do
 DOIT /usr/share/desktop-directories
done

exit 0
Localized lines are appended (old lines deleted before)
Attachments
menu_data.tar.gz
4 german data files
1 script to update
(4.04 KiB) Downloaded 511 times
Last edited by L18L on Thu 06 Nov 2014, 13:44, edited 1 time in total.

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

Internationalization of Fatdog64-700b2

#54 Post by L18L »

help doc faq -> gettext

Why?

If and when a phrase is changed in original document
then the missing translation of this phrase is indication that something has been changed.

Code: Select all

#!/bin/sh
echo "Content-type: text/html"
echo
[ "$LANGUAGE" ] || LANGUAGE=${LANG%%_*} # enable languages other than actual one
export TEXTDOMAIN=fatdoghelp
cat <<EOF
<!DOCTYPE html>
<html lang="$LANGUAGE">
  <head>
    <meta http-equiv="content-type" content="text/html; 
      charset=UTF-8">
    <title>Fatdog64</title>
    <link rel="stylesheet" type="text/css" href="faqs/fatdog.css">
  </head>
  <body>
    <div id="container"> <img src="faqs/fatdog.png" style="float:left;"
        height="200">
      <h1>$(gettext 'Fatdog64 64-bit GNU/Linux Operating System')</h1>
.
.
.
  </body>
</html>
EOF

Code: Select all

# mongoose -r /usr/share -C "**.html$" -I /bin/sh -E LANGUAGE=$LANGUAGE,LANG=$LANG
Mongoose web server v. 3.8 started on port(s) 8080 with web root [/usr/share]
Attachments
doc_gettexted.png
!
(69.73 KiB) Downloaded 762 times
Last edited by L18L on Thu 06 Nov 2014, 13:44, edited 1 time in total.

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

Internationalization of Fatdog64-700b2

#55 Post by L18L »

As Fatdog is NOT Puppy it is really important learning to know the differences.

There is nothing better than the docs in /usr/share/docs/faqs to learn from.

Translating these and overwrite (or override) the originals is bad.

Translating these and store them under a directory of the target language is bad. Why? Changes might not be noticed and thus not be updated!

Using gettext and the web server mongoose is the best I think of at the moment.
Not just think of but startet doing it.

Here a teaser.

The pic is showing the partially translated "index" of the FAQs.
Bottom line links to English original and to translations in other languages. (the others are fake of course, just symlinks to my Deutsch translation)

Code: Select all

source ../template_top; cat <<EOF 
<!DOCTYPE html>
<html lang="$LANGUAGE">
<head>
 <meta http-equiv="content-type" content="text/html;
      charset=UTF-8">
 <title>$(gettext "Fatdog64 Frequently Asked Questions")</title>
 <link rel="stylesheet" type="text/css" href="fatdog.css">
.
.

Code: Select all

.
.
  <li><a href="./links.html">$(gettext "More links.")</a></li>
 </ol>
</div>
<p class="original">$p</a></p>
</body>
</html>
EOF
.. and that's the template:

Code: Select all

echo "Content-type: text/html;charset=UTF-8"
echo

alias _=gettext 
export TEXTDOMAIN=fatdoghelp;

[ "${QUERY_STRING%%=*}" = "LANGUAGE" ] && LANGUAGE=${QUERY_STRING#*=}
[ "$LANGUAGE" ] || LANGUAGE=${LANG%%_*} # enable languages other than actual one
[ "$LANGUAGE" != "en" ] && p="$(_ 'Original: ') <a href=\"?LANGUAGE=en\">$(_ 'English')</a><br>"

#p="$p $(_ 'Translations: ')";for L in `ls /usr/share/locale/*/LC_MESSAGES/${TEXTDOMAIN}.mo|cut -d/ -f5`;do a1='<a href="?LANGUAGE='$L'">';a2='</a>'; [ "$L" = "$LANGUAGE" ] && { a1=;a2=; } ;p="$p ${a1}${L}${a2} ";done

# indicate (and link) original and translations

p="$p $(_ 'Translations: ')"
for L in `ls /usr/share/locale/*/LC_MESSAGES/${TEXTDOMAIN}.mo|cut -d/ -f5`; do
 a1='<a href="?LANGUAGE='$L'">'
 a2='</a>'
 [ "$L" = "$LANGUAGE" ] && { a1=; a2=; } 
 
 #find language name
 if [ -f /usr/share/i18n/lang_names ]; then
  LN="`grep "^${L}:" /usr/share/i18n/lang_names`"
  [ $LN ] && LN=${LN##*:}
  
 elif [ -d /var/cache/fatdog-choose-locale.sh ]; then
  LN="`grep -m1 "^lang_name " /var/cache/fatdog-choose-locale.sh/locales/${L}* | head -n1`"
  LN=${LN##* }
  LN=${LN//\"/}
 
 else
  # use code from fatdog-choose-locale.sh
  :
 fi 
 [ $LN ] || LN=$L # fallback

 p="$p ${a1}${LN}${a2} "
done
Attachments
web_server_for_doc.png
(32.76 KiB) Downloaded 748 times

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

Internationalization of Fatdog64-700b2

#56 Post by L18L »

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

Run in console:

Code: Select all

./fatdog-help
this launches the pre-installed web server mongoose
and opens doc/home in default web browser

Run in console:

Code: Select all

./make_all_html_files_web_server_usable
...and the links in faqs/faq.html will (sort of) work.

Translate:

fatdoghelp.pot was created by:

Code: Select all

xgettext -L shell --keyword=_  -o fatdoghelp.pot template_top home.html `ls faqs/*.html`

Code: Select all

msginit # will create .po file for fatdoghelp
translate them using geany

Code: Select all

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

home.html
faq.html
tray.html
bugs.html
link.html in your language


Note, directories ../locale/ar and el are just for fun...

Enjoy
EDIT :oops: sorry 1st downloader :oops:
file README corrected now

EDIT
Attachment deleted
Take actual complete one from next post now
Last edited by L18L on Wed 19 Nov 2014, 19:03, edited 2 times in total.

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 449 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 473 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 494 times

Post Reply