/openshift/adei

To get this branch, use:
bzr branch http://darksoft.org/webbzr/openshift/adei

« back to all changes in this revision

Viewing changes to po/Makefile

  • Committer: Suren A. Chilingaryan
  • Date: 2012-02-07 22:44:15 UTC
  • Revision ID: csa@dside.dyndns.org-20120207224415-sy360wa1ammhd1ph
Use localization subsystem, updated Katrin configs

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
all: mo
 
2
 
 
3
.PHONY: messages.pot po mo
 
4
 
 
5
mo: po
 
6
        for name in ??.po; do \
 
7
        cat=`basename $$name .po`; \
 
8
        mkdir -p $$cat/LC_MESSAGES/; \
 
9
        msgfmt -o $$cat/LC_MESSAGES/adei.mo $$name extra-$$name;\
 
10
        done
 
11
 
 
12
po: message.pot
 
13
        for name in ??.po; do \
 
14
        cat=`basename $$name .po`; \
 
15
        msgmerge -o $$cat.po $$name messages.pot;\
 
16
        touch extra-$$cat.po;\
 
17
        done
 
18
 
 
19
message.pot:
 
20
        phpfiles=`find ../ -name "*.php"`; \
 
21
        xgettext -klgs $$phpfiles; \
 
22
        mv messages.po messages.pot
 
23