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 Sun 21 Dec 2014, 07:32
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects » Localization Project
ROX-Filer: How I did a better German translation
Moderators: Lobster, MU, raffy
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [10 Posts]  
Author Message
LaRioja

Joined: 23 Feb 2012
Posts: 20
Location: Augsburg/Germany

PostPosted: Sat 25 Feb 2012, 13:19    Post subject:  ROX-Filer: How I did a better German translation
Subject description: Mini-HowTo and improved translation attached
 

Hello,
I'm new to the forum. I'm using Lucid Puppy 5.25 and 5.28 with the German lang-pack for several month now and I like it. What always bothers me are German translations that are incomplete and sometimes
even wrong. For example in ROX-Filer I had a mix of English and German in the menus and dialog boxes. To help this out, I downloaded the source of ROX-Filer of the official site and edited the .po-File for the German translation. I looked at and tried out everything I could find in the program. Sometimes I looked at the source to find the phrases to translate and the context. KDE and GNOME translation projects also gave me a lot of hints. I ended up having a much smoother and better German user experience now with ROX-Filer which is so central to every Puppy and at least I learned so many useful details how to use the program.

I would like to return my work to the ROX-Filer project but first I would appreciate some people to try it out.

Here is a small archive which contains the .po and the .mo file. Decompress the archive, copy the ROX-Filer.mo to
/usr/local/apps/ROX-Filer/Messages/de/LC_MESSAGES/
and restart the x-server. Don't forget the locale must be set to German. For Puppy developers: You can put my file into new Puppies.

Best Regards

PS.: Give me a hint if this is not the right place to post this. I have already posted my little archive to the German speaking Puppy forum but not everybody who is interested might find it there.

March 22
Update: many typos; merged with translations from forum member RSH (LazY Puppy)
April 10
complete and (hopefully) final version. It is based on a new .pot file generated from latest source of ROX-Filer 2.11. Search criteria should work now. ROX has gettexted keywords for inbuilt search. I keep the English keywords (they were translated in the original version of the .po file from which I started. I didn't notice that these strings in the .po file were keywords for search instructions until I studied the C-source. Other bugs fixed for example the 'Eigenschaften' window correctly translates 'Modify time' to 'Letzte Datenänderung'. Previous 'Erstellt' was wrong and misleading (we are not in W$).
Note: Since this version is based on newest ROX 2.11 it may not translate some strings which have gone but still are present in previous versions of ROX-Filer used in some older Puppies for example my Lucid 5.28.
ROXdeutsch_20120410.tar.gz
Description 
gz

 Download 
Filename  ROXdeutsch_20120410.tar.gz 
Filesize  117.18 KB 
Downloaded  445 Time(s) 

Last edited by LaRioja on Tue 10 Apr 2012, 19:47; edited 7 times in total
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2619
Location: www.eussenheim.de/

PostPosted: Sun 26 Feb 2012, 05:34    Post subject: Re: ROX-Filer better German translation
Subject description: Everything I could find is translated (.po and .mo file attached as archive)
 

LaRioja wrote:
...PS.: Give me a hint if this is not the right place to post this...


It is the right place.
I would change the headline to something like:

ROX-Filer: howto make better translations
Example: German translation improved

Thank you very much
Back to top
View user's profile Send private message 
BarryK
Puppy Master


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

PostPosted: Wed 07 Mar 2012, 09:33    Post subject:  

Thanks from me too. See my blog post:

http://bkhome.org/blog/?viewDetailed=02737

_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
LaRioja

Joined: 23 Feb 2012
Posts: 20
Location: Augsburg/Germany

PostPosted: Wed 07 Mar 2012, 22:58    Post subject: Update posted and comment  

I have just posted a small update. There were 2 English strings missing for Rox 2.11. Please update.

A comment: I'm not aware of how the gettext utilities work, i.e. I was not able to use them to extract missing strings from the source of RoxFiler and automatically get an updated .po or .pot File. There is a script included with the source of RoxFiler which should update all .po files but it didn't work.
In the end I collected missing strings in my .po file 'by hand' looking at the program running and the C-source and I got everything I wanted.
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2619
Location: www.eussenheim.de/

PostPosted: Thu 08 Mar 2012, 08:51    Post subject: Re: comment
Subject description: creating pot file
 

LaRioja wrote:
... There is a script included with the source of RoxFiler which should update all .po files but it didn't work...


For a working solution, bug fix of script, see
http://bkhome.org/blog/?viewDetailed=02737 Smile
Back to top
View user's profile Send private message 
LaRioja

Joined: 23 Feb 2012
Posts: 20
Location: Augsburg/Germany

PostPosted: Fri 16 Mar 2012, 10:03    Post subject: Thanks and amazement  

I'm amazed that I could trigger the beginning of an importend detail in the process of Puppy development only by looking closer to an existing translation, working on it an sharing it. That's so fine.

In the end we have to return our improvements to the ROX-Filer project.
(.po-File and debugged script)
Back to top
View user's profile Send private message 
LaRioja

Joined: 23 Feb 2012
Posts: 20
Location: Augsburg/Germany

PostPosted: Wed 28 Mar 2012, 05:58    Post subject: ROX-Filer translation: Final update  

Thanks to L18L for your hint. I finally got the script running and the result is a new .pot file and an updated de.po file. The translation needed quite a number of changes, bug-fixes and fine tuning to be complete.
April 10: Final version uploaded in first post.
Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 1851
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Sun 22 Jul 2012, 13:47    Post subject:  

Hello,
Quote:
For example in ROX-Filer I had a mix of English and German in the menus and dialog boxes. To help this out, I downloaded the source of ROX-Filer of the official site and edited the .po-File for the German translation. I looked at and tried out everything I could find in the program.
I had the same problem with the French mo file... Though the translation was as seriously done as possible by the previous French translator which seems to be a real "connoisseur"...
First I couldn't find any po files inside the source files Shocked, only mo files inside "messages" directory... Am I silly or what?
So, as a last resort, I first convert the german mo file into po file using this command:
Code:
msgunfmt /path/ROX-Filer.mo > /path/ROX-Filer.po

Then created a pot file from the po file using this command:
Code:
msgfilter --keep-header -i /path/ROX-Filer.po -o /path/ROX-Filer.pot awk -e '{}'
(Thanks Barry!)
And finally, using the same process, I succeed in updating my own French po file...
Quote:
In the end I collected missing strings in my .po file 'by hand' looking at the program running and the C-source and I got everything I wanted.
I hat to do the same because some chains were missing... But at the end, some are still missing Mad ... I think it should be better for all those who want to translate Rox to get the "good" pot file you created...

Could you please post it here?
Thank you a lot.
Cordialement.

_________________


Last edited by Argolance on Fri 10 Aug 2012, 11:09; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
L18L

Joined: 19 Jun 2010
Posts: 2619
Location: www.eussenheim.de/

PostPosted: Mon 23 Jul 2012, 07:48    Post subject: ROX-Filer
Subject description: ROX-Filer.pot
 

Argolance wrote:
... I think it should be better for all those who want to translate Rox to get the "good" pot file you created...

Could you please post it here?...


In devx there should be a /usr/share/doc/nls/ROX-Filer/ROX-Filer.pot

Attached ROX-Filer.pot created by running
Code:
 xgettext --language=C --keyword=_ --keyword=N_ --output=messages.pot *.c tips ../Templates.ui

in
rox-filer-2.11/ROX-Filer/src

save as
/usr/share/doc/nls/ROX-Filer/ROX-Filer.pot

and momanager should use it.
ROX-Filer.pot.gz
Description  save as
/usr/share/doc/nls/ROX-Filer/ROX-Filer.pot
gz

 Download 
Filename  ROX-Filer.pot.gz 
Filesize  71.96 KB 
Downloaded  500 Time(s) 
Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 1851
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Mon 23 Jul 2012, 12:42    Post subject:  

Hello,
... I unfortunately found this post while I already created my pot file from the German po file using the command given above. And now, all is running as well as possible: No missing chains anymore! Very Happy
Well!
French 2.11 ROX-Filer mo file is now "polished" but I have to subject it to the guys of the French forum before publishing.

Thank you to all of you.

Cordialement.

_________________

Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [10 Posts]  
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.0796s ][ Queries: 13 (0.0065s) ][ GZIP on ]