Page 1 of 3

i18n-ed Gettexted Scripts In The PET and Hardinfo.

Posted: Sat 07 Jan 2012, 20:24
by rodin.s
I have made gettexted scripts for Puppy for Russian lang pack but it could be used for other languages so I have made simplified PET-package with these scripts. Main pot-file (puppy.pot) consists of 2100 lines so I guess it's hard to translate but maybe it could be useful. You don't have to translate all the lines.
Also menu items could be translated by adding Name[xx]=Translation of name
More information about how to translate is here: http://murga-linux.com/puppy/viewtopic. ... 186#445186

I am going to try to make Ukrainian translation using this pet. I am also going to make similar pet for Wary/Racy.

Russian lang pack for Slacko-5.3.1.

Posted: Sat 07 Jan 2012, 20:29
by rodin.s

Posted: Fri 13 Jan 2012, 02:46
by ikaros262
Great! Then I can translate this .pot files to my language so that someone can make a language pack later. And is there something similar for Lucid 528? If not, how did you create the .pot files?

Lupu-5.2.8.

Posted: Fri 13 Jan 2012, 18:58
by rodin.s
I can make Lupu-5.2.8 version. I'll do it later.

Slacko en espaƱol

Posted: Mon 16 Jan 2012, 00:06
by vicmz
Thanks so much for this. There's a preview of my desktop in Spanish attached to this post, along with a file with my translations from your .pot files and existing translations that were originally made for Lucid, many of them either fixed or customized. So far I've translated about 55% of the main puppy.po file, but my desktop is almost totally in Spanish.

Instructions on how to use my translations along with existing ones can be found here (in Spanish).

PETs for Lupu-5.2.8.004

Posted: Mon 23 Jan 2012, 18:44
by rodin.s
I have made i18n-pet and pot-files for Lupu-528.004.

Additional l10n for Russian (lupu-528.004)

Posted: Mon 23 Jan 2012, 19:05
by rodin.s
Here is the PET with additional l10n for Russian. (applications like ROX, pmount, pmusic, gnome-mplayer etc.)
ru_base_lupu528004-0.1.pet (1018kB)
Also here is a pet for automatic setup of keyboard layouts and indication: ru-us.
ru_fbxkb_auto-0.1.pet (10.8kb)

additional langpacks for Wary/Racy-5.2.90.

Posted: Wed 28 Mar 2012, 20:50
by rodin.s
I have made additional langpack for Wary/Racy-5.2.90 with some scripts that are not in official langpack. It also has gettexted binary files (tray icons). Pot-files are in /usr/share/doc/nls/lang_pack/. It is possible to regenerate puppy.pot using this commands:

Code: Select all

cd /usr/share/doc/nls/lang_pack/puppy/
xgettext -L shell -o puppy.pot -f puppy.txt
It should be done after installing package and xgettext should be present as part of Shinobar's poedit or as part of devx.sfs.

Testing new MoManager...

Posted: Tue 31 Jul 2012, 20:02
by rodin.s
I was testing new MoManager with support for multiple scripts for one TEXDOMAIN. I have made two PETs with the same scripts but in one with different TEXDOMAINs, and in another with one TEXTDOMAIN. These scripts are not in woof and mostly taken from PETs from previous post of this thread (work for Wary/Racy, Precise).

Additional i18n for Precise-5.4.3 and Slacko-5.4.

Posted: Sat 12 Jan 2013, 20:15
by rodin.s
I was working on Russian versions of Precise and Slacko and I have made these additional i18n-langpacks. Momanager and Poedit could be used for translation. It's update to previous pets so old translatons could be updated. Some internationalized apps: PupControl, desksetup, peasyscale, peasyprint, peasypdf, icon finder and so on.
Some time ago I have also internationalized hardinfo. Some parts of it are not internationalized, but mostly it is done. I used not current Puppy version, but latest from hardinfo site. I have also fixed proper distribution detection for Puppy Linux.
Source code and pot-file of Hardinfo-i18n

Posted: Sat 12 Jan 2013, 23:27
by vicmz
rodin.s, you're the best! thank you :D

Posted: Mon 14 Jan 2013, 00:54
by vicmz
I noticed most of the scripts had TEXTDOMAIN=puppy, building a 600+ string .po file using Momanager. I modified the Precise .pet file so that there are different text domains for individual programs, at least to me it's a little bit more comfortable this way. I must especially thank you for gettexting jwmconfig2, which I've been trying to do.

puppy.mo

Posted: Mon 14 Jan 2013, 13:19
by rodin.s
Early version of puppy.mo had 2100 lines so 600 is not that much. I also had different textdomains in the beginning but it was hard to handle them when updating so I decided to use one big textdomain. Now I have puppy.mo for Precise and puppy.mo for Slacko that are different.

Posted: Tue 15 Jan 2013, 01:33
by vicmz
http://bkhome.org/blog2/?viewDetailed=00083
L18L wrote:The idea of making one TEXTDOMAIN for many scripts is not bad since momanager can be used.

But I really do not know why making different pets for different official puppies and even versions should be a way to go!

In my understanding a (and my German one and only) language pack is for all woof2 (after 20120228) built puppies.
vicmz wrote:Actually I thought that too, but when I saw there were separate pets I thought I'd break something if I merged them. Well, as they're meant to be Woof scripts and both Slacko and Precise are made from the latest Woof I finally did merge them into one pet, setting separate text domains just because I feel I can organise translations better that way. I haven't tested in Puppies other than Precise yet (the idea is that it works in all official Puppy builds), but if you want to give it a go, here it is:
http://www.datafilehost.com/download-e54dc8e7.html

Re: Additional i18n for Precise-5.4.3 and Slacko-5.4.

Posted: Wed 16 Jan 2013, 02:13
by BarryK
rodin.s wrote:I was working on Russian versions of Precise and Slacko and I have made these additional i18n-langpacks. Momanager and Poedit could be used for translation. It's update to previous pets so old translatons could be updated. Some internationalized apps: PupControl, desksetup, peasyscale, peasyprint, peasypdf, icon finder and so on.
Some time ago I have also internationalized hardinfo. Some parts of it are not internationalized, but mostly it is done. I used not current Puppy version, but latest from hardinfo site. I have also fixed proper distribution detection for Puppy Linux.
Source code and pot-file of Hardinfo-i18n
Hi,
I tried to compile your source in Wary, but got this error:

Code: Select all

# cmake .. -DCMAKE_INSTALL_PREFIX=/usr
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at CMakeLists.txt:6 (include):
  include could not find load file:

    GNUInstallDirs
So, I downloaded the latest from git, and executing "cmake .. -DCMAKE_INSTALL_PREFIX=/usr" worked, no error.

Would you be able to figure out what is wrong with your source, or alternatively, would you mind patching the latest source from git?

Hardinfo

Posted: Wed 16 Jan 2013, 16:16
by rodin.s
Hello, Barry.
I have patched source from latest git: http://ompldr.org/vaDNraQ/hardinfo.tar.gz
I do not have Wary with devx now but I've managed to compile it in Precise-5.4.2 and in Racy-5.3.90. Racy is a close relative to Wary, I guess.
The file 'hardinfo.po' in 'po' directory is for Russian. Delete it or rename as ru.po.

hardinfo.pot

Posted: Thu 17 Jan 2013, 16:33
by L18L
hardinfo.pot uploaded to my collection of pot files :D
(hardinfo compiled, translated and used, very nice) thank you

hardinfo

Posted: Fri 18 Jan 2013, 10:54
by L18L
Before I am going to dig deeper just one question:
Is it my bug (translating) or yours (is it OK in other languages?) ?

--

edited

It is mine!

Code: Select all

LANGUAGE=en hardinfo
shows that it is correct

hardinfo

Posted: Fri 18 Jan 2013, 16:00
by rodin.s
As far as I remember I didn't translate these items: memory, date/time, uptime, load average. I noticed that these items are not updated when translated so I left them in English and even switched that part of code to LANG=C.

hardinfo

Posted: Fri 18 Jan 2013, 17:44
by L18L
Thanks
so I will dig......
date is strange

Fr Jan 18 18:45:25 2013 :roll: