[vdr] Understanding .po-translation

Klaus Schmidinger Klaus.Schmidinger at cadsoft.de
Tue Aug 28 10:05:42 CEST 2007


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 at torsten-entw:/usr/src/vdr/vdr/PLUGINS/src/dummy$ ls
> COPYING  dummy.c  dummy.o  HISTORY  libvdr-dummy.so  Makefile  README
> 
> torsten at 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 at 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



More information about the vdr mailing list