~brendan-donegan/ubuntu/raring/checkbox/0.15.5

Viewing all changes in revision 1338.1.1.

  • Committer: Daniel Manrique
  • Date: 2012-03-23 03:51:07 UTC
  • mto: This revision was merged to the branch mainline in revision 1345.
  • Revision ID: daniel.manrique@canonical.com-20120323035107-848nv29nz5sytnal
Add i18n support via gettext to checkbox-qt.

- Added wrapper checkboxTr functions, inspired from unity-2d's implementation.
- Modified main.cpp and qtfront.h to include headers and initialize gettext.
- Modified frontend.pro to instruct uic-qt4 to use checkboxTr as a translation
  function.
- Added checkbox-qt files to po/POTFILES.in, so intltool gets them. NOTE that 
  this depends on uic-qt4 running *before* intltool to generate ui_qtfront.h.
- Added po/Makevars to instruct intltool to extract strings from checkboxTr
  calls. Thanks to Gabor Kelemen for pointers on this.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: