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 Wed 01 Oct 2014, 10:40
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects » Localization Project
PortableObjectTemplate Files for ELF 32-bit LSB executables
Moderators: Lobster, MU, raffy
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 3 Posts_count   Goto page: 1, 2, 3 Next
Author Message
L18L

Joined: 19 Jun 2010
Posts: 2507
Location: Moved from Hosla to www.eussenheim.de

PostPosted: Thu 14 Mar 2013, 11:58    Post_subject: pwallpaper
Sub_title: C source
 

C source file pwallpaper.c attached as pwallpaper.c.gz

compile:
Code:
gcc -o /usr/sbin/pwallpaper pwallpaper.c `pkg-config --libs --cflags gtk+-2.0`


create pwallpaper.pot:
Code:
xgettext -d pwallpaper -s -o pwallpaper.pot --keyword=_ pwallpaper.c
mkdir /usr/share/doc/nls/pwallpaper
mv pwallpaper.pot /usr/share/doc/nls/pwallpaper/


You can translate pwallpaper in momanager now.

Have fun Smile
pwallpaper_i18n.png
 Description   
 Filesize   47.95 KB
 Viewed   1068 Time(s)

pwallpaper_i18n.png

pwallpaper.c.gz
Description  remove fake .gz
gz

 Download 
Filename  pwallpaper.c.gz 
Filesize  12.63 KB 
Downloaded  580 Time(s) 
Back to top
View user's profile Send_private_message 
L18L

Joined: 19 Jun 2010
Posts: 2507
Location: Moved from Hosla to www.eussenheim.de

PostPosted: Sat 16 Mar 2013, 10:13    Post_subject: Re: PortableObjectTemplate Files
Sub_title: glipper
 

L18L wrote:
I have compiled glipper-0.95-1
and used de.po (others included in source package are: fr and ru)

My binary is 155 k Embarassed

So we have to wait for a better compiler Wink

Thus this here is just a teaser

Now compiled 22k (thanks technosaurus)

glipper.pot created by:
Code:
xgettext --keyword=_ -o glipper.pot *.c

from technosaurus' version at
http://www.murga-linux.com/puppy/viewtopic.php?t=52235&start=36

Anyhow, glipper is attached as glipper.gz and here is pot file:
/usr/share/doc/nls/glipper/gler.pot wrote:
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: glipper 0.95.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-03-16 14:39+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: main.c:166
msgid ""
"This entry was copied with ctrl+c.\n"
"It can be pasted with ctrl+v."
msgstr ""

#: main.c:200
#, c-format
msgid "Glipper - Clipboardmanager (%s)"
msgstr ""

#: main.c:219
msgid "<No Content>"
msgstr ""

#: main.c:229
msgid ""
"This is the last element to be copied.\n"
"It can be pasted with the middle mouse button."
msgstr ""

#: main.c:270 main.c:626
#, c-format
msgid ""
"Glipper (%s)\n"
"Clipboardmanager"
msgstr ""

#: main.c:369
msgid "Glipper Preferences"
msgstr ""

#: main.c:379
msgid "<b>Limits</b>"
msgstr ""

#: main.c:395
msgid "Amount of entries in history:"
msgstr ""

#: main.c:401
msgid "Length of one history entry:"
msgstr ""

#: main.c:421
msgid "<b>Clipboards</b>"
msgstr ""

#: main.c:431
msgid "Which clipboards should be managed by Glipper?"
msgstr ""

#: main.c:444
msgid "Select - Mark/middle mouse button"
msgstr ""

#: main.c:448
msgid "Copy - Ctrl+C/Ctrl+V"
msgstr ""

#: main.c:453
msgid "<b>Behaviour</b>"
msgstr ""

#: main.c:467
msgid "Tag Ctrl+C clipboard's content in history (bold)"
msgstr ""

#: main.c:471
msgid "Save history"
msgstr ""

#: main.c:479
msgid "Key combination for popup: "
msgstr ""

#: main.c:655
msgid "translator-credits"
msgstr ""

#: main.c:658
msgid "Clipboardmanager for Gnome"
msgstr ""
glipper.gz
Description  gunzip glipper.gz
move to /usr/local/bin/
gz

 Download 
Filename  glipper.gz 
Filesize  10.18 KB 
Downloaded  573 Time(s) 
Back to top
View user's profile Send_private_message 
L18L

Joined: 19 Jun 2010
Posts: 2507
Location: Moved from Hosla to www.eussenheim.de

PostPosted: Sun 17 Mar 2013, 06:44    Post_subject: gdmap  

Sorry, there is no direct link to gdmap.pot on the web.
If your language is one of
bg de dk es fr he hr it nb no ru sv tr
then you can download source of gdmap from
http://gdmap.cvs.sourceforge.net/viewvc/gdmap/gdmap/?view=tar
and extract from po directory.

For other languages:
Code:
mkdir /usr/share/doc/nls/gdmap

Dowload attached gdmap.pot.gz
gunzip it (just 1 click)
copy gdmap.pot to /usr/share/doc/nls/gdmap/
make your translation using momanager

Have fun Smile
gdmap.pot.gz
Description  gunzip it
(one click
or
gunzip gdmap.pot.gz
)
gz

 Download 
Filename  gdmap.pot.gz 
Filesize  1.24 KB 
Downloaded  529 Time(s) 
Back to top
View user's profile Send_private_message 
L18L

Joined: 19 Jun 2010
Posts: 2507
Location: Moved from Hosla to www.eussenheim.de

PostPosted: Thu 28 Mar 2013, 08:32    Post_subject: PortableObjectTemplate Files for ELF 32-bit LSB executables
Sub_title: xfdiff.pot
 

Found in Barry's sources:
http://bkhome.org/sources/alphabetical/x/xfdiff-cut-4.5.0.tar.gz
translations for 46 languages!

Some of them are:
Name=Xffm Patch manager
Name[hu]=Xffm foltkezelő
Name[ja]=Xffm パッチマネージャー
Name[uk]=Менеджер латок для Xffm
Name[vi]=Trình quản lý vá lỗi Xffm
GenericName=Differences tool
GenericName[el]=Εργαλείο διαφορών
GenericName[es]=Diferencias
GenericName[es_MX]=Diferencias
GenericName[fi]=Eroavaisuustyökalu
GenericName[gu]=તફાવતો સાધન
GenericName[hu]=Különbség eszköz
GenericName[ja]=差分作成ツール
GenericName[ko]=차이 도구
GenericName[mr]=फरकांचे साधन
GenericName[uk]=Інструмент відображення різниці
GenericName[vi]=Công cụ khác biệt
GenericName[zh_TW]=比較工具

All of them:
# pwd
/root/my-documents/xfdiff-cut-4.5.0/po
# ls *.po | cut -d '.' -f1 | tr '\n' ' '
af ar az bg bn_IN ca cs de el en_CA en_GB es_MX es et eu fa fi fr gu he hi hu it
ja ko lt mr ms nb_NO nl pa pl pt_BR pt_PT ru sk sv ta tr uk vi zh_CN zh_TW

#

If you want to use one of the above translations then
download source
expand source
cd po
edit your .po file
create xfdiff.mo:
Code:
msgfmt <language>.po -o - > /usr/share/locale/<language>/LC_MESSAGES/xfdiff.mo


Note,
these might be not accurate (I had to correct much fuzzy in German)

Note2,
momanager cannot handle this translation.
So use just msgfmt and/or msgmerge please.

Just in case you need xdiff.pot, it is attached as xdiff.pot.gz
xfdiff.pot.gz
Description  usage: see above note
gz

 Download 
Filename  xfdiff.pot.gz 
Filesize  10.01 KB 
Downloaded  508 Time(s) 
Back to top
View user's profile Send_private_message 
L18L

Joined: 19 Jun 2010
Posts: 2507
Location: Moved from Hosla to www.eussenheim.de

PostPosted: Wed 24 Apr 2013, 11:55    Post_subject: tile.pot
Sub_title: Пятнашки Tile sliderspil Kacheln-Schiebe-Spiel Jeu de tuile Mover teselas
 

/usr/share/doc/nls/tile/tile.pot wrote:
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: tile VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-04-24 16:59+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: tile.c:47
msgid "/_Game"
msgstr ""

#: tile.c:48
msgid "/_Game/_New Game"
msgstr ""

#: tile.c:49
msgid "/_Game/_Quit"
msgstr ""

#: tile.c:50
msgid "/_Size"
msgstr ""

#: tile.c:51
msgid "/_Size/ _3 "
msgstr ""

#: tile.c:52
msgid "/_Size/ _4 "
msgstr ""

#: tile.c:53
msgid "/_Size/ _5 "
msgstr ""

#: tile.c:54
msgid "/_Help"
msgstr ""

#: tile.c:55
msgid "/_Help/_Description"
msgstr ""

#: tile.c:56
msgid "/_Help/_About"
msgstr ""

#: tile.c:82 tile.c:131
msgid "Tile"
msgstr ""

#: tile.c:133
msgid "OK"
msgstr ""

#: tile.c:157
msgid ""
"This is a game in which you try to put the tiles in order.\n"
" A tile must be next to an empty space to be moved.\n"
" Click the tile to move it.\n"
"\n"
"This game isn't the best, but it's my first attempt at using GTK.\n"
" So that's my excuse."
msgstr ""

#: tile.c:166
msgid ""
"Tile 20000915\n"
"by Joe Wingbermuehle"
msgstr ""

#: tile.c:171
msgid " You won!! "
msgstr ""

attached version of tile
is internationalized
and a description added
tile.png
 Description   
 Filesize   22.25 KB
 Viewed   608 Time(s)

tile.png

tile.gz
Description  move to /usr/local/bin/tile ( gz removed )
gz

 Download 
Filename  tile.gz 
Filesize  8.49 KB 
Downloaded  493 Time(s) 
Back to top
View user's profile Send_private_message 
Bert


Joined: 30 Jun 2006
Posts: 930

PostPosted: Thu 25 Apr 2013, 09:49    Post_subject:  

Nice. Simple fun... Very Happy

Although...simple? I did not play it long enough to be able to check the dutch translation of " You won !!" Laughing Laughing Someone with more time and talent will have to try.

Thanks for the pot-file.
tegel.png
 Description   
 Filesize   25.6 KB
 Viewed   528 Time(s)

tegel.png


_________________


Back to top
View user's profile Send_private_message 
L18L

Joined: 19 Jun 2010
Posts: 2507
Location: Moved from Hosla to www.eussenheim.de

PostPosted: Thu 25 Apr 2013, 11:56    Post_subject: Tile game
Sub_title: solutions
 

This game was an exercise in GTK for (Joe's window manager) Joe
and for me an exercise in C programing.

Thanks for feedback. Very Happy

Bert wrote:
...Although...simple?...

Not every Game has a solution. Wink
See 1st example I (roman 1) in Unmöglich - oder doch möglich? please

[edit 2013-04-28]
found the English version: The Impossible. Some Puzzles

Edited_times_total
Back to top
View user's profile Send_private_message 
Bert


Joined: 30 Jun 2006
Posts: 930

PostPosted: Thu 25 Apr 2013, 12:21    Post_subject: Re: Tile game
Sub_title: solutions
 

L18L wrote:

See 1st example I (roman 1) in Unmöglich - oder doch möglich? please


Terrible! Just looking at it gives me a headache Shocked


_________________


Back to top
View user's profile Send_private_message 
L18L

Joined: 19 Jun 2010
Posts: 2507
Location: Moved from Hosla to www.eussenheim.de

PostPosted: Thu 25 Apr 2013, 12:42    Post_subject:  

Just impossible Laughing

13 must not jump over 14 15

Should the code be changed to Game with solution only Question
(for kids)

-> preferences -> Rolling Eyes

[edit] C source (containing info about compile and xgettext) attached
tile.c.gz
Description  remove fake .gz

tile slider game internationalized
gz

 Download 
Filename  tile.c.gz 
Filesize  8.32 KB 
Downloaded  426 Time(s) 
tile_no_solution.png
 Description   
 Filesize   4.79 KB
 Viewed   553 Time(s)

tile_no_solution.png

Back to top
View user's profile Send_private_message 
L18L

Joined: 19 Jun 2010
Posts: 2507
Location: Moved from Hosla to www.eussenheim.de

PostPosted: Tue 14 May 2013, 10:54    Post_subject: PortableObjectTemplate Files for ELF 32-bit LSB executables
Sub_title: gtkam
 

# pwd
/root/my-documents/gtkam-0.1.18/po
# ls *.po | cut -d'.' -f1 | tr '\n' ' '
be cs da de eo es fr hu id is it ja nb nl pa pl pt_BR pt ru sk sl sv uk vi zh_CN
#
Arrow gtkam translations exist for 25 languages Exclamation

(w Smile )get source from:
http://sourceforge.net/projects/gphoto/files/gtkam/0.1.18/

If your language is not included or not completely translated
then
mkdir -p /usr/share/doc/nls/gtkam
cp po/gtkam.pot /usr/share/doc/nls/gtkam/

... and you can use momanager for translation.
Back to top
View user's profile Send_private_message 
L18L

Joined: 19 Jun 2010
Posts: 2507
Location: Moved from Hosla to www.eussenheim.de

PostPosted: Fri 24 May 2013, 11:44    Post_subject: PortableObjectTemplate Files
Sub_title: Xdialog.pot
 

po files available for
ca de es fr hu id it nl no_NO pl pt_BR ru sv_SE
in directory po of source at
http://freecode.com/projects/xdialog

Or to translate yourself
mkdir -p /usr/share/doc/nls/Xdialog
and copy the following Xdialog.pot to /usr/share/doc/nls/Xdialog/Xdialog.pot

Code:
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR Free Software Foundation, Inc.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2002-03-21 13:29+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"

#: src/interface.h:80
msgid "OK"
msgstr ""

#: src/interface.h:81
msgid "Cancel"
msgstr ""

#: src/interface.h:82
msgid "Yes"
msgstr ""

#: src/interface.h:83
msgid "No"
msgstr ""

#: src/interface.h:84
msgid "Help"
msgstr ""

#: src/interface.h:85
msgid "Previous"
msgstr ""

#: src/interface.h:86
msgid "Next"
msgstr ""

#: src/interface.h:87
msgid "Print"
msgstr ""

#: src/interface.h:88
msgid "Add"
msgstr ""

#: src/interface.h:89
msgid "Remove"
msgstr ""

#: src/interface.h:90
msgid "Hours : Minutes : Seconds"
msgstr ""

#: src/interface.h:91
msgid "Time stamp"
msgstr ""

#: src/interface.h:92
msgid "Date - Time"
msgstr ""

#: src/interface.h:93
msgid "Log message"
msgstr ""

#: src/interface.h:94
msgid "Hide typing"
msgstr ""
Back to top
View user's profile Send_private_message 
L18L

Joined: 19 Jun 2010
Posts: 2507
Location: Moved from Hosla to www.eussenheim.de

PostPosted: Thu 30 May 2013, 06:20    Post_subject: PortableObjectTemplate Files for ELF 32-bit LSB executables
Sub_title: chat program ayttm
 

Ready to use translations exist for the languges:
de en_GB es fr hi nl pt_BR sv

at http://ayttm.sourceforge.net/files.php
download Source .bz2 tarball
click and extract directory po
copy:
Code:
cp <your_language>.gmo /usr/share/locale/<your_language>/LC_MESSAGES/ayttm.mo


for other languages
make directory:
Code:
mkdir -p /usr/share/doc/nls/ayttm

and download attached ayttm.pot to /usr/share/doc/nls/ayttm/
Then use momanger for translation of ayttm

use chat program (launch from desktop icon) in your language.
Have fun Very Happy
ayttm.pot.gz
Description  remove .gz
gz

 Download 
Filename  ayttm.pot.gz 
Filesize  56.57 KB 
Downloaded  398 Time(s) 
Back to top
View user's profile Send_private_message 
Bert


Joined: 30 Jun 2006
Posts: 930

PostPosted: Thu 30 May 2013, 12:29    Post_subject:  

That's great L18L,

It's always nice to get a translation ready-made, like was the case for nl.

However, there was lots of Fuzzy and the translation was not complete.
Now corrected Smile

Thanks.

_________________


Back to top
View user's profile Send_private_message 
Bert


Joined: 30 Jun 2006
Posts: 930

PostPosted: Sun 20 Oct 2013, 14:42    Post_subject:  

Hi all,

I translated PupSnap from the pot file (because impossible to translate in Momanager)...no luck.. PupScan remains in English.

I then looked at the actual script files (version 2.2.1) and it looks like nothing is internationalized.

Am I missing the obvious again Laughing
Thanks for any pointers!

Bert

_________________


Back to top
View user's profile Send_private_message 
L18L

Joined: 19 Jun 2010
Posts: 2507
Location: Moved from Hosla to www.eussenheim.de

PostPosted: Mon 21 Oct 2013, 10:01    Post_subject:  

Bert wrote:
Hi all,

I translated PupSnap from the pot file (because impossible to translate in Momanager)...no luck.. PupScan remains in English.

I then looked at the actual script files (version 2.2.1) and it looks like nothing is internationalized.

Am I missing the obvious again Laughing
Thanks for any pointers!

Bert

Where did you get a pot file from if nothing is internationalized? Rolling Eyes

Obviously radky is staying with "english only"
At puppy localization solved
01micko wrote:
I suppose what we need to do is apply the standards, that is, everyone who scripts should learn to use gettext and where the locale file should be stored. It's not difficult. Even I roughly learnt some of it!
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 3 Posts_count   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:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1206s ][ Queries: 12 (0.0045s) ][ GZIP on ]