[Cubicweb] How to test .po files?

Sylvain Thénault sylvain.thenault at logilab.fr
Wed Sep 29 11:20:58 CEST 2010


On 29 septembre 10:51, Alexandre Fayolle wrote:
> 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?

I've checked in a fix that compute them dynamically according to .po
file in cubicweb/i18n
-- 
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