Changeset ee247506bdc7178c40eda3be7df36ac4aed18b8a

Show
Ignore:
Timestamp:
12/17/10 20:08:26 (2 years ago)
Author:
Nikita Zlobin <cook60020tmp@…>
Children:
9314c44fb4da598c7b090c13582c906b8b7a26a4
Parents:
c0cbf54efd8089889806607f7847c83893a17960
git-committer:
Nikita Zlobin <cook60020tmp@mail.ru> / 2010-12-17T23:08:26Z+0500
Message:

Install translations

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • wscript

    rfbe3409 ree24750  
    589589                pprint('CYAN', "doxygen documentation already built.") 
    590590 
     591    # Translations 
     592    # TODO: Rewrite using waf functionality 
     593    po_list = os.listdir('./po') 
     594    if po_list.__len__() > 0: 
     595      for po_list_item in po_list: 
     596        item = po_list_item.rsplit('.', 1) 
     597        if item[1] == "po": 
     598          pprint('CYAN', "Preparing translation '"+item[0]+"'") 
     599          os.system("msgfmt ./po/"+po_list_item+" -o ./po/"+item[0]+".mo") 
     600          bld.install_as(('${PREFIX}/share/locale/'+item[0]+'/LC_MESSAGES/gladish.mo'), ('./po/'+item[0]+".mo")) 
     601 
    591602def get_tags_dirs(): 
    592603    source_root = os.path.dirname(Utils.g_module.root_path)