equal
deleted
inserted
replaced
244 """Update i18n catalogs for cubicweb library. |
244 """Update i18n catalogs for cubicweb library. |
245 |
245 |
246 It will regenerate cubicweb/i18n/xx.po files. You'll have then to edit those |
246 It will regenerate cubicweb/i18n/xx.po files. You'll have then to edit those |
247 files to add translations of newly added messages. |
247 files to add translations of newly added messages. |
248 """ |
248 """ |
249 name = 'i18nlibupdate' |
249 name = 'i18ncubicweb' |
250 |
250 |
251 def run(self, args): |
251 def run(self, args): |
252 """run the command with its specific arguments""" |
252 """run the command with its specific arguments""" |
253 if args: |
253 if args: |
254 raise BadCommandUsage('Too much arguments') |
254 raise BadCommandUsage('Too much arguments') |
305 # instructions pour la suite |
305 # instructions pour la suite |
306 print '*' * 72 |
306 print '*' * 72 |
307 print 'you can now edit the following files:' |
307 print 'you can now edit the following files:' |
308 print '* ' + '\n* '.join(toedit) |
308 print '* ' + '\n* '.join(toedit) |
309 print |
309 print |
310 print "then you'll have to update cubes catalogs using the i18nupdate command" |
310 print "then you'll have to update cubes catalogs using the i18ncube command" |
311 |
311 |
312 |
312 |
313 class UpdateTemplateCatalogCommand(Command): |
313 class UpdateTemplateCatalogCommand(Command): |
314 """Update i18n catalogs for cubes. If no cube is specified, update |
314 """Update i18n catalogs for cubes. If no cube is specified, update |
315 catalogs of all registered cubes. |
315 catalogs of all registered cubes. |
316 """ |
316 """ |
317 name = 'i18nupdate' |
317 name = 'i18ncube' |
318 arguments = '[<cube>...]' |
318 arguments = '[<cube>...]' |
319 |
319 |
320 def run(self, args): |
320 def run(self, args): |
321 """run the command with its specific arguments""" |
321 """run the command with its specific arguments""" |
322 if args: |
322 if args: |