| Author |
Message |
zigbert

Joined: 29 Mar 2006 Posts: 5245 Location: Valåmoen, Norway
|
Posted: Tue 28 Aug 2012, 01:12 Post subject:
|
|
should I include *.po and *.pot files into the NLS package or does these belong another place?
Sigmund
_________________ Stardust resources
|
|
Back to top
|
|
 |
L18L
Joined: 19 Jun 2010 Posts: 1725 Location: Burghaslach, Germany
|
Posted: Tue 28 Aug 2012, 03:51 Post subject:
|
|
| zigbert wrote: | | should I include *.po and *.pot files into the NLS package.. |
Short answer: No.
Long answer: Just the .mo file is sufficient for running the script in the native language.
Thanks to BarryK who invented momanager which automagically creates -
- .pot (tool: xgettext) and
- .po (tools: msginit, msgmerge)
- lets .po translate in poeditor (if installed) or defaulttexteditor
- generates new .mo after closing of editor
- creates a .tgz of this translation countaining just the .mo in the correct path
Thus storing and distributing .pot and .po is not necessary. for scripted applications(!).
Some exceptions from this:
- Somehow buggy scripts (alsaconf)
- Translations for C programs (example: retrovol)
need .pot file because they are not automatically created by momanager.
- ???
updated momanager HOWTO
---
edited: msgmerge added
Last edited by L18L on Tue 28 Aug 2012, 08:09; edited 1 time in total
|
|
Back to top
|
|
 |
zigbert

Joined: 29 Mar 2006 Posts: 5245 Location: Valåmoen, Norway
|
Posted: Tue 28 Aug 2012, 04:43 Post subject:
|
|
| L18L wrote: | - Translations for C programs (example: retrovol)
need .pot file because they are not automatically created by momanager. | Now I get it.... Some guys never seem to learn.
Thank you
Sigmund
_________________ Stardust resources
|
|
Back to top
|
|
 |
vicmz

Joined: 15 Jan 2012 Posts: 621
|
Posted: Tue 28 Aug 2012, 11:13 Post subject:
|
|
| zigbert wrote: | | Now I get it.... Some guys never seem to learn. |
My bad(?)
I should stop posting after midnight
|
|
Back to top
|
|
 |
zigbert

Joined: 29 Mar 2006 Posts: 5245 Location: Valåmoen, Norway
|
Posted: Tue 28 Aug 2012, 14:51 Post subject:
|
|
| Quote: | My bad(?)  |
I was talking about the dude I meet every morning in the mirror
_________________ Stardust resources
Last edited by zigbert on Wed 29 Aug 2012, 11:18; edited 2 times in total
|
|
Back to top
|
|
 |
zigbert

Joined: 29 Mar 2006 Posts: 5245 Location: Valåmoen, Norway
|
Posted: Wed 29 Aug 2012, 11:17 Post subject:
|
|
I forgot to mention that Spanish is included in the main NLS-pack.
See first post.
Sigmund
_________________ Stardust resources
|
|
Back to top
|
|
 |
|