Author |
Message |
zigbert

Joined: 29 Mar 2006 Posts: 6541 Location: Valåmoen, Norway
|
Posted: Mon 03 Aug 2009, 04:20 Post subject:
Pcd language support |
|
_______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
_________________ Stardust resources
Last edited by zigbert on Sun 18 Mar 2012, 09:20; edited 6 times in total
|
Back to top
|
|
 |
esmourguit

Joined: 17 Nov 2006 Posts: 1393 Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie
|
Posted: Mon 03 Aug 2009, 13:13 Post subject:
|
|
Hello zigbert,
Here is the french file for pCD 1.0
Cordialement
Description |
|

Download |
Filename |
pcd-1.0-french.zip |
Filesize |
486 Bytes |
Downloaded |
1169 Time(s) |
_________________ Toutou Linux - Pets francisés
|
Back to top
|
|
 |
Proudog
Joined: 27 Feb 2009 Posts: 164
|
Posted: Tue 04 Aug 2009, 00:10 Post subject:
|
|
Here the Spanish file to:
pCD 1.x
Nice program Zigbert
Description |
|

Download |
Filename |
spanish.gz |
Filesize |
378 Bytes |
Downloaded |
1232 Time(s) |
|
Back to top
|
|
 |
shinobar

Joined: 28 May 2009 Posts: 2664 Location: Japan
|
Posted: Tue 04 Aug 2009, 04:10 Post subject:
locale filename |
|
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: | #-- 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 |
|
Back to top
|
|
 |
shinobar

Joined: 28 May 2009 Posts: 2664 Location: Japan
|
Posted: Tue 04 Aug 2009, 04:23 Post subject:
locale filename |
|
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: | #-- 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 |
|
Back to top
|
|
 |
zigbert

Joined: 29 Mar 2006 Posts: 6541 Location: Valåmoen, Norway
|
Posted: Wed 05 Aug 2009, 02:42 Post subject:
|
|
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
_________________ Stardust resources
|
Back to top
|
|
 |
zigbert

Joined: 29 Mar 2006 Posts: 6541 Location: Valåmoen, Norway
|
Posted: Wed 16 Dec 2009, 05:51 Post subject:
|
|
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
_________________ Stardust resources
|
Back to top
|
|
 |
zigbert

Joined: 29 Mar 2006 Posts: 6541 Location: Valåmoen, Norway
|
Posted: Sat 19 Feb 2011, 14:23 Post subject:
|
|
Polish added
_________________ Stardust resources
|
Back to top
|
|
 |
JSonic

Joined: 21 Aug 2011 Posts: 37 Location: Finland
|
Posted: Wed 07 Sep 2011, 01:17 Post subject:
|
|
The Finnish translation for Pcd 1.x
Description |
Pcd 1.x Finnish translation
|

Download |
Filename |
pcd-finnish.tar.gz |
Filesize |
460 Bytes |
Downloaded |
636 Time(s) |
|
Back to top
|
|
 |
zigbert

Joined: 29 Mar 2006 Posts: 6541 Location: Valåmoen, Norway
|
Posted: Wed 07 Sep 2011, 02:18 Post subject:
|
|
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
_________________ Stardust resources
|
Back to top
|
|
 |
JSonic

Joined: 21 Aug 2011 Posts: 37 Location: Finland
|
Posted: Wed 07 Sep 2011, 07:39 Post subject:
|
|
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...
|
Back to top
|
|
 |
zigbert

Joined: 29 Mar 2006 Posts: 6541 Location: Valåmoen, Norway
|
Posted: Wed 21 Sep 2011, 03:53 Post subject:
|
|
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
_________________ Stardust resources
|
Back to top
|
|
 |
vicmz

Joined: 15 Jan 2012 Posts: 1268
|
Posted: Sat 17 Mar 2012, 14:19 Post subject:
|
|
Portuguese
Code: |
#!/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="Álbum"
LOC207="Nr"
LOC208="Canção"
LOC209="Duração"
LOC210="Sair"
LOC206="Álbum"
#Probe
LOC300="Lendo disco"
LOC301="Desconhecido"
#Errors
LOC400="Nenhum CD de áudio válido inserido"
LOC401="Nenhum disco inserido"
#Tooltips
LOC800="reproduzir canção anterior"
LOC801="parar"
LOC802="reproduzir canção selecionada"
LOC803="reproduzir canção seguinte"
|
I'm also making a specific Pmusic 2.5 locale file for Spanish, although it'll take some time.
|
Back to top
|
|
 |
zigbert

Joined: 29 Mar 2006 Posts: 6541 Location: Valåmoen, Norway
|
Posted: Sun 18 Mar 2012, 09:20 Post subject:
|
|
portuguese added
_________________ Stardust resources
|
Back to top
|
|
 |
|