LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bodhi
User Name
Password
Bodhi This forum is for the discussion of Bodhi Linux.

Notices


Reply
  Search this Thread
Old 01-22-2020, 12:26 PM   #1
Kiezel
Member
 
Registered: Jan 2020
Posts: 106

Rep: Reputation: 86
Translating Moksha: no .POT file?


One thing struck me when looking at the "po" folder of Moksha at GitHub:
https://github.com/JeffHoogland/moksha/tree/master/po

Namely that there is no vanilla .POT file in that folder....

Which means that if there's no .po file with your current language at the GitHub source of Moksha, you have no alternative but to pick a .po file of another foreign language and replace its foreign translations by translations in your own language. And then creating it with the proper name.

Or am I missing something?

What I mean is a vanilla .POT file without any existing translation at all, like this one in the GitHub source for Terminology:
https://github.com/billiob/terminolo...erminology.pot

It would be handy for translators if such a .POT file would exist in Moksha's "po" folder. It's quite customary for GitHub "po" folders to have one.
 
Old 01-22-2020, 12:37 PM   #2
the_waiter
Bodhi Developer
 
Registered: Jun 2018
Location: Banská Bystrica, Slovakia
Distribution: Bodhi Linux
Posts: 864

Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665
Translating Moksha: no .POT file?

Hello

Feel free to create it and pull request.

Stefan
 
1 members found this post helpful.
Old 01-22-2020, 05:29 PM   #3
Kiezel
Member
 
Registered: Jan 2020
Posts: 106

Original Poster
Rep: Reputation: 86
Quote:
Originally Posted by the_waiter View Post
Hello

Feel free to create it and pull request.

Stefan
Fair enough.... I'll scratch my own itch in the best Linux tradition.
 
1 members found this post helpful.
Old 01-23-2020, 04:16 AM   #4
rbtylee
Bodhi Developer
 
Registered: Jun 2018
Location: Ladson, SC US
Distribution: Bodhi
Posts: 454

Rep: Reputation: 437Reputation: 437Reputation: 437Reputation: 437Reputation: 437
Of course it SHOULD have one. I had noticed it before but it is a minor issue. Would be great if someone did this work for us as it is not a priority to me and I am unlikely to do it unless pressed by someone to do it. Thanks tho for pointing it out and if you do send a pull request I will merge it if it looks ok to me
 
1 members found this post helpful.
Old 01-23-2020, 05:37 AM   #5
the_waiter
Bodhi Developer
 
Registered: Jun 2018
Location: Banská Bystrica, Slovakia
Distribution: Bodhi Linux
Posts: 864

Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665
I can do that of course but if Kiezel knows what to do (...and he does) why not to rely on him

Stefan
 
Old 01-23-2020, 05:52 AM   #6
the_waiter
Bodhi Developer
 
Registered: Jun 2018
Location: Banská Bystrica, Slovakia
Distribution: Bodhi Linux
Posts: 864

Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665
Thanx Pjotr. Merged
 
1 members found this post helpful.
Old 01-23-2020, 05:57 AM   #7
Kiezel
Member
 
Registered: Jan 2020
Posts: 106

Original Poster
Rep: Reputation: 86
Quote:
Originally Posted by the_waiter View Post
Thanx Pjotr. Merged
You're welcome!

Some explanation: I used the Dutch nl.po as base. At first I tried this command:
Code:
msgfilter -i nl.po -o moksha.pot --keep-header true
But that failed with a broken pipe error.

This online tool was successful, however:
https://mlocati.github.io/jsgettext/

(with thanks to its creator Michele Locati)
 
2 members found this post helpful.
Old 01-23-2020, 06:07 AM   #8
the_waiter
Bodhi Developer
 
Registered: Jun 2018
Location: Banská Bystrica, Slovakia
Distribution: Bodhi Linux
Posts: 864

Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665
I think a compiling the moksha code with gettext stuff included should create pot file automatically. This would be my way to do it. I had some rough time with this topic in the past. I saved one link to help me:

https://www.guyrutenberg.com/2014/11...ools-tutorial/

Not sure if poedit could do the pot file...

S

Last edited by the_waiter; 01-23-2020 at 11:53 AM.
 
1 members found this post helpful.
Old 01-23-2020, 11:32 AM   #9
Kiezel
Member
 
Registered: Jan 2020
Posts: 106

Original Poster
Rep: Reputation: 86
Quote:
Originally Posted by the_waiter View Post
I think a compiling the moksha code with gettext stuff included should create pot file automatically. This would be my way to do it. I had some rough time with this topic in the past. I saved onle link to help me:

https://www.guyrutenberg.com/2014/11...ools-tutorial/

Not sure if poedit could do the pot file...

S
Yes, a cleanly generated .pot file would be better, if only for the future.... But my "reverse engineered" .pot file appears to cover all translatable strings, so for the time being this looks like a good workaround.

Poedit, as far as I understand, can only be used for reverse engineering a .pot file (by removing translations from a .po file), and even that only in a limited way: you can scroll to a translated string and press "Ctrl k", which deletes its translation. That's a hell of a job for tackling all of Moksha's strings, so the online gettext tool that I found, was rather a lifesaver.

Last edited by Kiezel; 01-23-2020 at 11:34 AM.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB device connection overrides Moksha DE's lock screen (Bodhi 4.5.0, Moksha 0.2.1) Kazuhira_x3 Bodhi 1 11-08-2018 02:54 AM
extracting ms powerpoint template files (.pot) from the command line? fibbi Linux - Software 0 11-07-2004 04:27 PM
one more newbie to stir the pot barnzenen LinuxQuestions.org Member Intro 2 09-01-2004 01:30 PM
My VSFTP is smoking pot!!! grendelos Linux - Software 5 02-23-2003 03:00 PM
HaM modem works Fine,part from the huge pot speed _Mhz Linux - Hardware 0 06-21-2002 02:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bodhi

All times are GMT -5. The time now is 03:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration