Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 24 Oct 2014, 04:44
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects » Localization Project
i18n-ed Gettexted Scripts In The PET and Hardinfo.
Moderators: Lobster, MU, raffy
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 3 [43 Posts]   Goto page: 1, 2, 3 Next
Author Message
rodin.s

Joined: 22 Sep 2010
Posts: 338
Location: Ukraine

PostPosted: Sat 07 Jan 2012, 16:24    Post subject:  i18n-ed Gettexted Scripts In The PET and Hardinfo.
Subject description: Plus Russian lang pack.
 

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.php?p=445186#445186

I am going to try to make Ukrainian translation using this pet. I am also going to make similar pet for Wary/Racy.
unicode-0.2.pet
Description  Unicode in console for Russian. Could be useful for other languages. Apps like xorgwizard and xwin display messages in console.
pet

 Download 
Filename  unicode-0.2.pet 
Filesize  76.36 KB 
Downloaded  749 Time(s) 
ru.tar.gz
Description  Examples of Russian mo and po files of the pot files. mo-files should be placed in this case in /usr/share/locale/ru/LC_MESSAGES/
gz

 Download 
Filename  ru.tar.gz 
Filesize  308.23 KB 
Downloaded  758 Time(s) 
pot.tar.gz
Description  pot-files for translation. Biggest one is puppy.pot (2104 lines). It's better to use poedit. See link above.
gz

 Download 
Filename  pot.tar.gz 
Filesize  78.97 KB 
Downloaded  764 Time(s) 
i18n_slacko531-0.2.pet
Description  i18n-scripts PET. (for Slacko-5.3.1) Just installing it changes almost nothing. It needs translated pot-files (mo-files). Biggest one puppy.pot.
pet

 Download 
Filename  i18n_slacko531-0.2.pet 
Filesize  456.31 KB 
Downloaded  859 Time(s) 

Last edited by rodin.s on Sat 18 May 2013, 06:29; edited 2 times in total
Back to top
View user's profile Send private message 
rodin.s

Joined: 22 Sep 2010
Posts: 338
Location: Ukraine

PostPosted: Sat 07 Jan 2012, 16:29    Post subject: Russian lang pack for Slacko-5.3.1.  

Also I have made Russian lang_pack for Slacko-5.3.1.
Back to top
View user's profile Send private message 
ikaros262

Joined: 11 Jan 2012
Posts: 29

PostPosted: Thu 12 Jan 2012, 22:46    Post subject:  

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?
Last edited by ikaros262 on Sun 15 Jan 2012, 18:50; edited 1 time in total
Back to top
View user's profile Send private message 
rodin.s

Joined: 22 Sep 2010
Posts: 338
Location: Ukraine

PostPosted: Fri 13 Jan 2012, 14:58    Post subject: Lupu-5.2.8.  

I can make Lupu-5.2.8 version. I'll do it later.
Back to top
View user's profile Send private message 
vicmz


Joined: 15 Jan 2012
Posts: 1117

PostPosted: Sun 15 Jan 2012, 20:06    Post subject: Slacko en español
Subject description: translating Slacko to Spanish
 

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).
slacko-desktop-in-spanish.png
Description  My Slacko 5.3.1 desktop in Spanish
png

 Download 
Filename  slacko-desktop-in-spanish.png 
Filesize  119.98 KB 
Downloaded  786 Time(s) 

_________________
OB Precise 14.07.26 Woof-CE|Puppy Linux en español

Last edited by vicmz on Wed 28 Mar 2012, 23:23; edited 2 times in total
Back to top
View user's profile Send private message 
rodin.s

Joined: 22 Sep 2010
Posts: 338
Location: Ukraine

PostPosted: Mon 23 Jan 2012, 14:44    Post subject: PETs for Lupu-5.2.8.004  

I have made i18n-pet and pot-files for Lupu-528.004.
unicode-0.3.pet
Description  Unicode in console pet is changed a bit. Script xwin is removed.
pet

 Download 
Filename  unicode-0.3.pet 
Filesize  67.57 KB 
Downloaded  841 Time(s) 
ru_lupu528004-0.1.pet
Description  PET with Russian mo-files.
pet

 Download 
Filename  ru_lupu528004-0.1.pet 
Filesize  155.17 KB 
Downloaded  835 Time(s) 
pot_and_ru_po_lupu528004-0.1.tar.gz
Description  pot-files (puppy.pot is biggest) and ru.po for Russian. For translation.
gz

 Download 
Filename  pot_and_ru_po_lupu528004-0.1.tar.gz 
Filesize  266.42 KB 
Downloaded  746 Time(s) 
i18n_lupu528004-0.1.pet
Description  i18n-pet. It needs mo-files.
pet

 Download 
Filename  i18n_lupu528004-0.1.pet 
Filesize  480.85 KB 
Downloaded  837 Time(s) 
Back to top
View user's profile Send private message 
rodin.s

Joined: 22 Sep 2010
Posts: 338
Location: Ukraine

PostPosted: Mon 23 Jan 2012, 15:05    Post subject: Additional l10n for Russian (lupu-528.004)  

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)
Back to top
View user's profile Send private message 
rodin.s

Joined: 22 Sep 2010
Posts: 338
Location: Ukraine

PostPosted: Wed 28 Mar 2012, 16:50    Post subject: additional langpacks for Wary/Racy-5.2.90.  

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:
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.
lang_pack_ru_wary5290-20120325.pet
Description  additional Russian langpack for Wary/Racy-5.2.90 with translation for Seamonkey, fbxkb and translation for i18n part.
pet

 Download 
Filename  lang_pack_ru_wary5290-20120325.pet 
Filesize  897.39 KB 
Downloaded  608 Time(s) 
i18n_wary5290-20120325.pet
Description  i18n additional langpack for Wary/Racy-5.2.90
pet

 Download 
Filename  i18n_wary5290-20120325.pet 
Filesize  249.01 KB 
Downloaded  601 Time(s) 
Back to top
View user's profile Send private message 
rodin.s

Joined: 22 Sep 2010
Posts: 338
Location: Ukraine

PostPosted: Tue 31 Jul 2012, 16:02    Post subject: Testing new MoManager...  

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).
i18n_woof-plus-20120731.pet
Description  Scripts with one (puppy.mo) file for all scripts. Has 700 lines to translate.
pet

 Download 
Filename  i18n_woof-plus-20120731.pet 
Filesize  65.67 KB 
Downloaded  469 Time(s) 
i18n_woof-plus-20120729.pet
Description  Same scripts with one mo file for each script.
pet

 Download 
Filename  i18n_woof-plus-20120729.pet 
Filesize  65.61 KB 
Downloaded  476 Time(s) 
MoManager-ru_UA-defaults-chooser.tar.gz
Description  Russian translation in puppy.mo for all scripts.
gz

 Download 
Filename  MoManager-ru_UA-defaults-chooser.tar.gz 
Filesize  34.41 KB 
Downloaded  605 Time(s) 
Back to top
View user's profile Send private message 
rodin.s

Joined: 22 Sep 2010
Posts: 338
Location: Ukraine

PostPosted: Sat 12 Jan 2013, 16:15    Post subject: Additional i18n for Precise-5.4.3 and Slacko-5.4.  

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
hardinfo_i18n-0.5.1.pet
Description  Hardinfo binary pet
pet

 Download 
Filename  hardinfo_i18n-0.5.1.pet 
Filesize  278.05 KB 
Downloaded  449 Time(s) 
i18n_precise543-130105.pet
Description  this one also has mo-files for Russian
pet

 Download 
Filename  i18n_precise543-130105.pet 
Filesize  116.31 KB 
Downloaded  461 Time(s) 
i18n_slacko54-121224.pet
Description 
pet

 Download 
Filename  i18n_slacko54-121224.pet 
Filesize  91.74 KB 
Downloaded  458 Time(s) 
Back to top
View user's profile Send private message 
vicmz


Joined: 15 Jan 2012
Posts: 1117

PostPosted: Sat 12 Jan 2013, 19:27    Post subject:  

rodin.s, you're the best! thank you Very Happy
_________________
OB Precise 14.07.26 Woof-CE|Puppy Linux en español
Back to top
View user's profile Send private message 
vicmz


Joined: 15 Jan 2012
Posts: 1117

PostPosted: Sun 13 Jan 2013, 20:54    Post subject:  

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.
i18n_precise543-130105-indiv-txtdomain.pet
Description  same as rodin.s' but with separate text domains for separate programs
pet

 Download 
Filename  i18n_precise543-130105-indiv-txtdomain.pet 
Filesize  115.86 KB 
Downloaded  447 Time(s) 

_________________
OB Precise 14.07.26 Woof-CE|Puppy Linux en español
Back to top
View user's profile Send private message 
rodin.s

Joined: 22 Sep 2010
Posts: 338
Location: Ukraine

PostPosted: Mon 14 Jan 2013, 09:19    Post subject: puppy.mo  

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.
Back to top
View user's profile Send private message 
vicmz


Joined: 15 Jan 2012
Posts: 1117

PostPosted: Mon 14 Jan 2013, 21:33    Post subject:  

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
i18n_puppy_woof2-20130114.pet
Description  same as rodin.s but merged the pets inton one for all
TEXTDOMAIN is individual for separate programs
needs further test to ensure it does not break something
in other Puppies
pet

 Download 
Filename  i18n_puppy_woof2-20130114.pet 
Filesize  410.23 KB 
Downloaded  438 Time(s) 

_________________
OB Precise 14.07.26 Woof-CE|Puppy Linux en español
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Tue 15 Jan 2013, 22:13    Post subject: Re: Additional i18n for Precise-5.4.3 and Slacko-5.4.  

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:
# 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?

_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 3 [43 Posts]   Goto page: 1, 2, 3 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects » Localization Project
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0911s ][ Queries: 13 (0.0064s) ][ GZIP on ]