From 1b55c84f06a490d9fe1a564bf1730b3a9d63c835 Mon Sep 17 00:00:00 2001 From: Deon George Date: Mon, 15 Mar 2010 09:37:05 +1100 Subject: [PATCH] Added launchpad import --- tools/po/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/po/Makefile b/tools/po/Makefile index 3bc93fd..a95f621 100644 --- a/tools/po/Makefile +++ b/tools/po/Makefile @@ -58,3 +58,8 @@ launchpad-extract: rmdir $(LOCALEDIR)/phpldapadmin launchpad-export: launchpad-extract all-mo + +launchpad-import: + @[ -d /tmp/pla ] && rmdir /tmp/pla + @mkdir /tmp/pla + @for i in $(LOCALEDIR)/*/LC_MESSAGES/messages.po; do echo $$i; x=$${i##$(LOCALEDIR)/}; x=$${x/_??\/LC_MESSAGES\/messages/}; [ ! -e /tmp/pla/$$x ] && cp $$i /tmp/pla/$$x || echo "$$x Already exists!"; done