summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-12-08 15:38:00 -0500
committerEvan Prodromou <evan@status.net>2009-12-08 15:38:00 -0500
commit7129bb6203bd0e9fbdd2e09c5f38f85980ee2eed (patch)
treee3946d82f5df68b6d3e663e832568f45d6bd539b /Makefile
parentadd126bc6c6eb574e00f171c2107b0406b7015e5 (diff)
parent28c367815fa9647ff9c369ddaf5e89b543e5b048 (diff)
Merge branch '0.9.x' into forward
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 000000000..6f45c1b83
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+# Warning: do not transform tabs to spaces in this file.
+
+all : translations
+
+core_mo = $(patsubst %.po,%.mo,$(wildcard locale/*/LC_MESSAGES/statusnet.po))
+plugin_mo = $(patsubst %.po,%.mo,$(wildcard plugins/*/locale/*/LC_MESSAGES/*.po))
+
+translations : $(core_mo) $(plugin_mo)
+
+clean :
+ rm -f $(core_mo) $(plugin_mo)
+
+updatepo :
+ php scripts/update_po_templates.php --all
+
+%.mo : %.po
+ msgfmt -o $@ $<
+