[Cubicweb] How to test .po files?

Sylvain Thénault sylvain.thenault at logilab.fr
Wed Sep 29 08:31:35 CEST 2010

On 29 septembre 00:32, Florent Cayré wrote:
> Hi,
> As far as I understood, you translated CW itself, right ? So you have
> rather copied the po file into cubicweb/i18n I suppose?
> If so, the commands to use and very well documented by 'cubicweb-ctl
> -h' ; I only have at hand an old CW 3.7, but it may not have changed
> much, and regarding i18n, it reads :
>   i18ncube         Update i18n catalogs for cubes
>   i18ncubicweb     Update i18n catalogs for cubicweb library
>   i18ninstance     Recompile i18n catalogs for instances
>  so you have to first use : 'cubicweb-ctl i18ncubicweb' once you have
> the po file in the right place. However you have to tell CW that the
> 'de' language now exists. Using grep I found the LANG = ('en', 'fr',
> 'es') variable in devtools/devctl.py ; I think you should add 'de'
> before using 'cubicweb-ctl i18ncubicweb'.

we should probably compute this dynamically according to .po files
found in cubicweb/i18n.
> Now you have to update your instance i18n catalog by typing :
> 'cubicweb-ctl i18ninstance YOUR_INSTANCE_NAME'

right. Though you should first run c-c i18ncube <instance cube>
to create a de.po file for the cube, else i18ninstance won't see
that a new language is available for the instance.

Sylvain Thénault                               LOGILAB, Paris (France)
Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
CubicWeb, the semantic web framework:    http://www.cubicweb.org

More information about the Cubicweb mailing list