Changeset c4119ff60b7a61103faf6ee2f72597f7fa291409

Show
Ignore:
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:
1 added
3 modified

Legend:

Unmodified
Added
Removed
  • .gitignore

    r71c1784 rc4119ff  
    1616*~ 
    1717*.pyc 
    18 po/*.mo 
    19 po/*.gmo 
  • gui/main.c

    r875f849 rc4119ff  
    4545#include "toolbar.h" 
    4646 
    47 #define GETTEXT_PACKAGE "gladish" 
     47#define GETTEXT_PACKAGE "ladish" 
    4848 
    4949#define ENABLE_NLS 1 
  • wscript

    r875f849 rc4119ff  
    9191    conf.load('boost') 
    9292    conf.load('python') 
     93    conf.load('intltool') 
    9394    if parallel_debug: 
    9495        conf.load('parallel_debug') 
     
    591592                pprint('CYAN', "doxygen documentation already built.") 
    592593 
    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}") 
    603595 
    604596def get_tags_dirs():