This is the ground work to enable translation jobs using transifex and
Jenkin's in ceilometer. We added the empty file
ceilometer/locale/ceilometer.pot to avoid the failure of the Jenkin'
translation-jobs because git doesn't allow empty directory to be added
into the repository.
We still need to do the following things once this patch gets accepted:
1. Make the transifex ceilometer project
(https://www.transifex.com/projects/p/ceilometer/) as part of the
openstack transifex project hub and give access to the transifex
openstack Jenkins account.
2. Add the translation-jobs into openstack/openstack-ci-puppet for
ceilometer.
3. Recheck and/or clean the LOG.foobar strings in ceilometer so that
only the useful and necessary strings would be extracted into the .pot
file.
NOTE:
1. Don't use '_' as the variable name for "don't care", since it clashes
with gettext module.
2. Wrap the string with the underscore function to make it ready for
translation, e.g.
internationalized_string = _("I'm internationalized!")
LOG.debug(_('I speak the language of %(language)s'), locals())
Reviewed: https:/ /review. openstack. org/17930 github. com/openstack/ ceilometer/ commit/ baad3c800f078ef 4af994d553eaec8 69dacad610
Committed: http://
Submitter: Jenkins
Branch: master
commit baad3c800f078ef 4af994d553eaec8 69dacad610
Author: Lianhao Lu <email address hidden>
Date: Wed Dec 12 20:13:34 2012 +0800
Ground work for transifex-ify ceilometer.
Following http:// wiki.openstack. org/Translation s to integrate transifex
translation into ceilometer and to fix bug 1082805.
This is the ground work to enable translation jobs using transifex and locale/ ceilometer. pot to avoid the failure of the Jenkin' -jobs because git doesn't allow empty directory to be added
Jenkin's in ceilometer. We added the empty file
ceilometer/
translation
into the repository.
We still need to do the following things once this patch gets accepted:
1. Make the transifex ceilometer project /www.transifex. com/projects/ p/ceilometer/) as part of the
(https:/
openstack transifex project hub and give access to the transifex
openstack Jenkins account.
2. Add the translation-jobs into openstack/ openstack- ci-puppet for
ceilometer.
3. Recheck and/or clean the LOG.foobar strings in ceilometer so that
only the useful and necessary strings would be extracted into the .pot
file.
NOTE:
1. Don't use '_' as the variable name for "don't care", since it clashes
with gettext module.
2. Wrap the string with the underscore function to make it ready for
translation, e.g.
internati onalized_ string = _("I'm internationaliz ed!") debug(_ ('I speak the language of %(language)s'), locals())
LOG.
Change-Id: I9732e424b374af a8f0650baf4e353 7109e7520d1