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

l18n?



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? And, if yes,
is this as easy as

* creating a section in debian/control
-------------------------------8<--------------------------------------
Package: saods9-l10n-de
Architecture: all
Depends: ${misc:Depends}, saods9 (= ${binary:Version})
Description: German language package for saods9
 DS9 is an application for astronomical imaging and data visualization.
 .
 This package contains the localization of saods9 in German.
-------------------------------8<--------------------------------------

* patching the rule

-------------------------------8<--------------------------------------
override_dh_auto_install:
        dh_auto_install
        for LOCALE in da de es fr ja pt zh ; do \
            dh_install $(CURDIR)msgs/$${LOCALE}.msg \
              $(CURDIR)/debian/saods9-l10n-$${LOCALE}/usr/share/saods9/msgs/ \
        done
-------------------------------8<--------------------------------------

Best regards

Ole


Reply to: