[MPlayer-dev-eng] i18n - po files

Jiří Svoboda Jiri.Svoboda at seznam.cz
Thu May 9 20:00:13 CEST 2002


> > Hi,
> > I'd like to on which state is i18n/gettext process?
> >  
> > I was more or less successful with creating czech po file,
> but there
> > are still problems.
> We should first create the "base po", which could be the base
> of the translations.

Yes. My approach was different I too help_mp-en.h and help_mp-cz. And
created po files from them for texts already translated. 


> > It works ok for MSGTR pairs. Problems are with help text - text is
> > different for each configuration (compile options). Another 
> problem is
> > version string in banner.
> > So it looks to me that po files must be generated/customized at 
> > compilation time.
> I don't understand this part.

There is text with help. This text is different for every machine
depending on users options at configure process. So to have this
translated You must "customize" msgstr and msgid pair in po file.

> >  
> > Should I post czech po file with common part (MSGTR pairs)?
> We should really start to work together on i18n. You've seen
> here are more peoples working on this title nowadays.
> 
> > Let me also opt for disabling following line in mp_msg.c -
> I have mo
> > files in different location, which is set as default by gettext.
> > bindtextdomain("mplayer", PREFIX"/share/locale");
> Ok, i will remove it.
> 
> 
> >                                 JS
> > P.S.: I have small c prog (a bit messy, but working) which
> I used to
> > produce czech po file - if anybody is interested...
> 
> Yes, send it to this list.

Here it goes. What it does? It takes help_mp-en.h, help_mp-cz.h and
configure.h an produces cs.po. Should be easily adapted to different
language by choosing proper .h file.

I've also included cs.po file as a sample output.

					JS
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cs.po
Type: application/octet-stream
Size: 24645 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20020509/62bbd7cd/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: trans.c
Type: application/octet-stream
Size: 6019 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20020509/62bbd7cd/attachment-0001.obj>


More information about the MPlayer-dev-eng mailing list