Changeset c4119ff60b7a61103faf6ee2f72597f7fa291409
- Timestamp:
- 12/19/10 14:30:13 (2 years ago)
- Author:
- Nedko Arnaudov <nedko@…>
- Children:
- 06f37b47d4eae703726a8a5a5a61e57a7f0295a2
- Parents:
- 7cf5b21d13c51379f83c4657e38c20e0127efb48
- git-committer:
- Nedko Arnaudov <nedko@arnaudov.name> / 2010-12-19T14:30:13Z+0200
- Message:
-
use waf for generating and installing *.mo files
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
-
|
r875f849
|
rc4119ff
|
|
| 45 | 45 | #include "toolbar.h" |
| 46 | 46 | |
| 47 | | #define GETTEXT_PACKAGE "gladish" |
| | 47 | #define GETTEXT_PACKAGE "ladish" |
| 48 | 48 | |
| 49 | 49 | #define ENABLE_NLS 1 |
-
|
r875f849
|
rc4119ff
|
|
| 91 | 91 | conf.load('boost') |
| 92 | 92 | conf.load('python') |
| | 93 | conf.load('intltool') |
| 93 | 94 | if parallel_debug: |
| 94 | 95 | conf.load('parallel_debug') |
| … |
… |
|
| 591 | 592 | pprint('CYAN', "doxygen documentation already built.") |
| 592 | 593 | |
| 593 | | # Translations |
| 594 | | # TODO: Rewrite using waf functionality |
| 595 | | po_list = os.listdir('./po') |
| 596 | | if po_list.__len__() > 0: |
| 597 | | for po_list_item in po_list: |
| 598 | | item = po_list_item.rsplit('.', 1) |
| 599 | | if item[1] == "po": |
| 600 | | pprint('CYAN', "Preparing translation '"+item[0]+"'") |
| 601 | | os.system("msgfmt ./po/"+po_list_item+" -o ./po/"+item[0]+".mo") |
| 602 | | bld.install_as(('${LOCALE_DIR}/'+item[0]+'/LC_MESSAGES/gladish.mo'), ('./po/'+item[0]+".mo")) |
| | 594 | bld(features='intltool_po', appname=APPNAME, podir='po', install_path="${LOCALE_DIR}") |
| 603 | 595 | |
| 604 | 596 | def get_tags_dirs(): |