~openerp-dev/openobject-client/dev_client_rga

« back to all changes in this revision

Viewing changes to Makefile.translation

  • Committer: RGA(OpenERP)
  • Date: 2011-01-19 05:52:51 UTC
  • mfrom: (1369.10.89 client)
  • Revision ID: rga@tinyerp.com-20110119055251-vh2pmznpxcs445e1
Merge with trunk client

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
LANG=fr
 
2
PYTHON_FILES=$(shell find -name "*py")
 
3
PYTHONC_FILES=$(shell find -name "*pyc")
 
4
APP=openerp-client
 
5
LANGS=$(shell for i in `find bin/po -name "*.po"`; do basename $$i | cut -d'.' -f1; done;)
 
6
 
 
7
all:
 
8
 
 
9
clean:
 
10
        rm -f bin/*bak $(PYTHONC_FILES)
 
11
        rm -f bin/openerp.gladep
 
12
 
 
13
translate_get:
 
14
        xgettext -k_ -kN_ -o bin/po/$(APP).pot $(PYTHON_FILES) bin/openerp.glade bin/win_error.glade 
 
15
 
 
16
translate_set:
 
17
        for i in $(LANGS); do msgfmt bin/po/$$i.po -o bin/share/locale/$$i/LC_MESSAGES/$(APP).mo; done;
 
18
 
 
19
merge:
 
20
        for i in $(LANGS); do msgmerge bin/po/$$i.po bin/po/$(APP).pot -o bin/po/$$i.po --strict; done;
 
21
 
 
22
test:
 
23
        echo $(LANGS)
 
24