[Cubicweb] How to test .po files?

Alexandre Fayolle alexandre.fayolle at logilab.fr
Wed Sep 29 10:51:20 CEST 2010


On Wednesday 29 September 2010 08:31:35 Sylvain Thénault wrote:
> 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.

Maybe a simple command line argument could do the trick?

-- 
Alexandre Fayolle                              LOGILAB, Paris (France)
Formations Python, CubicWeb, Debian :  http://www.logilab.fr/formations
Développement logiciel sur mesure :      http://www.logilab.fr/services
Informatique scientifique:               http://www.logilab.fr/science



More information about the Cubicweb mailing list