~lubuntu-dev/lubuntu-default-settings/trunk

« back to all changes in this revision

Viewing changes to src/usr/share/xsessions/po/Makefile

  • Committer: Julien Lavergne
  • Date: 2014-10-31 15:47:16 UTC
  • Revision ID: gilir@ubuntu.com-20141031154716-763rlpjx4j27ijjp
Add xsession files to translations

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
POTFILES := $(shell cat POTFILES.in)
 
4
 
 
5
all: generate-po-files
 
6
 
 
7
generate-pot: POTFILES.in
 
8
        intltool-update --pot --gettext-package=lubuntu-default-settings-xsessions
 
9
 
 
10
generate-po-files:
 
11
        for i in $(POTFILES); do \
 
12
                f=$$(echo $$i | sed 's/\.in//'); \
 
13
                intltool-merge -d . ../$$i ../$$f; \
 
14
        done
 
15
 
 
16
update-po:
 
17
        for i in *.po; do \
 
18
                code=$$(echo $$i | sed 's/.po//'); \
 
19
                intltool-update --gettext-package=lubuntu-default-settings-xsessions --dist $$code; \
 
20
        done
 
21
 
 
22
# vim:ts=4