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

Re: l18n?



Le 13/04/12 16:14, Olе Streicher a écrit :
> Dear mentors,
> 
> I am currently working on a Tcl/Tk package (saods9;
> <http://bugs.debian.org/655648>) which has a "msg" subdirectory
> containing translations into a handful languages:
> 
> $ ls -l msgs/
> insgesamt 308
> -rw-rw-r-- 1 ole no 39129 2012-04-11 14:01 da.msg
> -rw-rw-r-- 1 ole no 38259 2012-04-11 14:01 de.msg
> -rw-rw-r-- 1 ole no 41958 2012-04-11 14:01 es.msg
> -rw-rw-r-- 1 ole no 37107 2012-04-11 14:01 fr.msg
> -rw-rw-r-- 1 ole no 76973 2012-04-11 14:01 ja.msg
> -rw-rw-r-- 1 ole no 39144 2012-04-11 14:01 pt.msg
> -rw-rw-r-- 1 ole no 25965 2012-04-11 14:01 zh.msg
> 
> They are quite small. Shall I keep them in the main package, or would it
> be useful to create individual i18n packages out of them?

Hi Ole,

I would not create individual packages just for that: this would force
the users to select the language packages they need for no real benefit.
At most, I would split the package in an arch-dependent and an
arch-independent package, and that's assuming ds9 has even more arch
indep data than just those messages (say, if the data reaches ~2MB).

In this fairly standard case, the arch package depends on the indep
package, and the indep package recommends the arch package:

* creating a section in debian/control
-------------------------------8<--------------------------------------
Package: saods9-data
Architecture: all
Depends: ${misc:Depends}, saods9 (>= ${source:Version})
Description: Data files for DS9
DS9 is an application for astronomical imaging and data visualization.
  .
 This package contains the data files.

Package: saods9
Architecture: any
Depends: ${shlibs:depends}, ${misc:Depends},
         saods9 (= ${source:Version})
Description: DS9...
   DS9 is an application for astronomical imaging and data
   visualization...

Note the source:Version: it's important for binNMUs (your arch:any
package may grow a version of the form 1.2-3+b4, greater than the indep
package at 1.2-3).

Then simply list the msgs in ds9-dat.install:
msgs  usr/share/saods9/

regards, Thibaut.


Reply to: