]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - Makefile
New _m() gettext wrapper with smart detection of plugin domains. Plugin base class...
[quix0rs-gnu-social.git] / Makefile
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..6f45c1b
--- /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 $@ $<
+