Pcd language support

For efforts in internationalising Puppy and solving problems in this area
Post Reply
Message
Author
User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

Pcd language support

#1 Post by zigbert »

_______Pcd language support__________________________________

Finnish - JSonic
French - Jean-Jacques Moulinier (esmourguit)
German - ?
Polish - (robwoj44) (1.5)
Portoguese - (vicmz ) (1.5)
Spanish - (Proudog)



For translators:
The file to translate:
- /usr/local/pcd/locals/en_US:english
This file are in the main Pcd package. It is important that you install the latest version to see how it all works.

Write your translation with charset UTF-8. If you doesn't understand this, it's convertable. :-)

Download
username: puppy
password: linux

pcd_NLS.pet

Pcd mainpage

Sigmund Berglund
Last edited by zigbert on Sun 18 Mar 2012, 13:20, edited 6 times in total.

User avatar
esmourguit
Posts: 1410
Joined: Fri 17 Nov 2006, 14:45
Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie

#2 Post by esmourguit »

Hello zigbert,
Here is the french file for pCD 1.0
Cordialement ;)
Attachments
pcd-1.0-french.zip
(486 Bytes) Downloaded 1342 times
[url=http://moulinier.net/][color=blue][b]Toutou Linux[/b][/color][/url] - [url=http://toutoulinux.free.fr/pet.php][color=blue][b]Paquets français[/b][/color][/url]

Proudog
Posts: 164
Joined: Fri 27 Feb 2009, 19:07

#3 Post by Proudog »

Here the Spanish file to:

pCD 1.x

Nice program Zigbert
Attachments
spanish.gz
(378 Bytes) Downloaded 1432 times

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

locale filename

#4 Post by shinobar »

hi, zigbert, great job.

i wonder why you convert the filename from LANG.
it must be more simple to use the LANG code itself, i mean the locale filename, say for english, to be 'en'.
next is a code to search locale files. the locale filename can be en, en_US, en_UK, en_AU, etc.
for example, where 'en' defines a word 'subway', 'en_UK' can override the same word as 'tube'.

Code: Select all

#-- simple localization for scripts by Shinobar based on MU.
# modified to search in $APPDIR/locals. APPDIR must be defined before
# set locale
for lng in C $(echo $LANGUAGE|cut -d':' -f1) $LC_ALL $LANG;do :;done   # ex.    ja_JP.UTF-8
# search locale file
lng1=$(echo $lng|cut -d'.' -f1)      # ex.   ja_JP
lng2=$(echo $lng|cut -d'_' -f1)   # ex.   ja
for L in C en $lng2 $lng1 $lng
do
   F="$APPDIR/locale/$L"
   [ -f "$F" ] && . "$F"
done

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

locale filename

#5 Post by shinobar »

hi, zigbert, great job.

i wonder why you convert the filename from LANG.
it must be more simple to use the LANG code itself, i mean the locale filename, say for english, to be 'en'.
next is a code to search locale files. the locale filename can be en, en_US, en_UK, en_AU, etc.
for example, where the file 'en' defines a word 'subway', another file 'en_UK' can override the same word as 'tube'.

Code: Select all

#-- simple localization for scripts by Shinobar based on MU.
# modified to search in $APPDIR/locals. APPDIR must be defined before
# set locale
for lng in C $(echo $LANGUAGE|cut -d':' -f1) $LC_ALL $LANG;do :;done   # ex.    ja_JP.UTF-8
# search locale file
lng1=$(echo $lng|cut -d'.' -f1)      # ex.   ja_JP
lng2=$(echo $lng|cut -d'_' -f1)   # ex.   ja
for L in C en $lng2 $lng1 $lng
do
   F="$APPDIR/locale/$L"
   [ -f "$F" ] && . "$F"
done

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#6 Post by zigbert »

shinobar
Great solution!!!
I'll consider it. The reason why I made my own way, is because in Pburn, Pbackup.... you can choose language from menu/preferences. I wanted the name of the language to show up, - not the cryptic codes. But Pcd doesn't have such a choice, and could be made your much easier way.

Thanks
Sigmund

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#7 Post by zigbert »

Because of upgrading language handling for pCD version 1.1, the naming of local files are no changed from 'spanish' to 'es_ES:spanish'. Package in main post includes new naming.


Sigmund

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#8 Post by zigbert »

Polish added

User avatar
JSonic
Posts: 37
Joined: Sun 21 Aug 2011, 17:59
Location: Finland

#9 Post by JSonic »

The Finnish translation for Pcd 1.x
Attachments
pcd-finnish.tar.gz
Pcd 1.x Finnish translation
(460 Bytes) Downloaded 821 times

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#10 Post by zigbert »

JSonic
Thank you for the translation.
Be aware that Pmusic now has better CD-audio performance than pCD.
- album artwork
- Lyrics and artist/album info
- slider to navigate in track
- Built in ripper
- ...

For that reason pCD is not a part of the upcoming official Puppy.

More info about Pmusic here. For translation, look here


Finnish is included in the NLS-package and main post is updated
Sigmund

User avatar
JSonic
Posts: 37
Joined: Sun 21 Aug 2011, 17:59
Location: Finland

#11 Post by JSonic »

zigbert wrote:JSonic
Thank you for the translation.
Be aware that Pmusic now has better CD-audio performance than pCD.
- album artwork
- Lyrics and artist/album info
- slider to navigate in track
- Built in ripper
- ...

For that reason pCD is not a part of the upcoming official Puppy.
Let's hope that I wasn't doing completely useless work... :)

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#12 Post by zigbert »

Meraviglioso wrote:any Russian translation?
No that I am aware of, but Pmusic (which now is the preferred CD-audio player) has an up-to-date russian translation.


Sigmund

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

#13 Post by vicmz »

Portuguese

Code: Select all

#!/bin/bash
#Pcd
#version=1.x
#language=portuguese
#translator:Native

set -a

#Gui
LOC200="Reprodutor de CD de áudio"
LOC201="Copiar CD"
LOC202="Extrair CD"
LOC203="Ler CD"
LOC204="Expulsar"
LOC205="Artista"
LOC206="

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#14 Post by zigbert »

portuguese added

Post Reply