Hi,
I've some problems understanding the "new method" for translation. How do I have to start when programming a new plugin? Is there any kind of documentation?
For me it looks like I have to check every single line which is given in the .po-files. #: hello.c:-->17<-- msgid "Hello" msgstr "Hallo"
This means, if I add a single line at the top of the file, I have to change every single linenumber in every .po-file. Or is this only a unimportant comment? This... well... I hope I'm on the wrong way....
Would be great if someone could enlighten me :)
Greetings
Torsten
On 08/28/2007 09:11 AM, Torsten Kunkel wrote:
Hi,
I've some problems understanding the "new method" for translation. How do I have to start when programming a new plugin? Is there any kind of documentation?
For me it looks like I have to check every single line which is given in the .po-files. #: hello.c:-->17<-- msgid "Hello" msgstr "Hallo"
This means, if I add a single line at the top of the file, I have to change every single linenumber in every .po-file. Or is this only a unimportant comment? This... well... I hope I'm on the wrong way....
Just do a
make i18n
in your plugin source directory. See also VDR/README.i18n.
Klaus
Hi Klaus,
first thanks for your lightning like reply, but I'm afraid it doesn't help me.
After the newplugin-script there is no po-folder, no pot/po/mo-file. If I do what you wrote (README.i18n), then it gives this:
- Change into the source directory. - Do a 'make i18n' to have the current *.pot file created.
torsten@torsten-entw:/usr/src/vdr/vdr/PLUGINS/src/dummy$ ls COPYING dummy.c dummy.o HISTORY libvdr-dummy.so Makefile README
torsten@torsten-entw:/usr/src/vdr/vdr/PLUGINS/src/dummy$ make i18n for i in ; do\ mkdir -p ../../../locale/$i/LC_MESSAGES;\ cp po/$i.mo ../../../locale/$i/LC_MESSAGES/vdr-dummy.mo;\ done
torsten@torsten-entw:/usr/src/vdr/vdr/PLUGINS/src/dummy$ ls COPYING dummy.c dummy.o HISTORY libvdr-dummy.so Makefile README
I already tried different LC_ALL-settings.
Torsten
On 08/28/2007 09:48 AM, Torsten Kunkel wrote:
Hi Klaus,
first thanks for your lightning like reply, but I'm afraid it doesn't help me.
After the newplugin-script there is no po-folder, no pot/po/mo-file. If I do what you wrote (README.i18n), then it gives this:
- Change into the source directory. - Do a 'make i18n' to have the current *.pot file created.
torsten@torsten-entw:/usr/src/vdr/vdr/PLUGINS/src/dummy$ ls COPYING dummy.c dummy.o HISTORY libvdr-dummy.so Makefile README
torsten@torsten-entw:/usr/src/vdr/vdr/PLUGINS/src/dummy$ make i18n for i in ; do\ mkdir -p ../../../locale/$i/LC_MESSAGES;\ cp po/$i.mo ../../../locale/$i/LC_MESSAGES/vdr-dummy.mo;\ done
torsten@torsten-entw:/usr/src/vdr/vdr/PLUGINS/src/dummy$ ls COPYING dummy.c dummy.o HISTORY libvdr-dummy.so Makefile README
Ok, this was assuming you already had some *.po files.
Try this:
md po make po/dummy.pot cd po msginit
I'll add this to README.i18n.
Klaus
Ah great! Thanks, that worked.
Sorry for confusing, I had some translations, but all were done manually by copying an existing po-folder. After your post I tried to go through the steps of the README.i18n and moved the po-folder in order to start from the beginning.
Maybe the "make po/plugin.pot"-target should create the po-directory?
Thanks for support :)
Torsten