[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: translations.launchpad.net: how to get PO for updating Debian packages?



Hi,

On Thu, Jan 09, 2014 at 02:56:58PM +0000, Simon McVittie wrote:
> On 09/01/14 13:48, Osamu Aoki wrote:
> > PS: I also wonder if there is some generic script to update *.desktop
> > files using PO files.
> 
> GNOME uses intltool for this. Look at how gnome-terminal generates its
> .desktop file, for instance: gnome-terminal.desktop.in.in (the actual
> source) does not contain any translations at all, and strings from
> po/*.po are merged into it at build-time.

This is it.  I thought I saw it somewhere.

> (You might only need one layer of ".in" if the .desktop file contains

?? Do you mean s/if/unless/ ??
I have no absolute path in the desktop file.

> hard-coded paths, but in general you'll need one layer for intltool, and
> one for Automake substitutions like @bindir@, hence ".in.in".)

Well many of my packages use po4a or raw xgettext to create PO.  So
using Autotools are overkill and complicated.  But tools such as
intltool-merge(8) seems to be quite handy.

Thanks.

Osamu


Reply to: