summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2010-08-23 19:50:19 +0000
committerfisharebest <fisharebest@gmail.com>2010-08-23 19:50:19 +0000
commit077a1fae5a08861b54c7e1b0817016c84fbd5dcd (patch)
tree99d4e928e01d9b6146d43097c698184b0c7d32fd
parentcfa5804962e6ef2154cca05d6df8e857edc3e476 (diff)
downloadwebtrees-077a1fae5a08861b54c7e1b0817016c84fbd5dcd.tar.gz
webtrees-077a1fae5a08861b54c7e1b0817016c84fbd5dcd.tar.bz2
webtrees-077a1fae5a08861b54c7e1b0817016c84fbd5dcd.zip
Update build script to include only 'major' languages; replace en with en_US
-rw-r--r--build/Makefile10
-rw-r--r--build/en_US.po21
2 files changed, 25 insertions, 6 deletions
diff --git a/build/Makefile b/build/Makefile
index e094f5a57b..8bf8601491 100644
--- a/build/Makefile
+++ b/build/Makefile
@@ -2,7 +2,8 @@ COMPRESSION=.zip # Choose one of: .zip .tar.gz .tar.bz2
L10NVERSION=$(shell date +%Y-%m-%d -r $(LANGUAGE_ARCHIVE))
LABEL=$(PACKAGE)-$(SVNVERSION)
LANGUAGE_ARCHIVE=launchpad-export.tar.gz
-LANGUAGES=$(shell tar tf $(LANGUAGE_ARCHIVE) | grep /LC_MESSAGES/webtrees.mo | cut -d / -f 1)
+#LANGUAGES=en_US $(shell tar tf $(LANGUAGE_ARCHIVE) | grep /LC_MESSAGES/webtrees.mo | cut -d / -f 1)
+LANGUAGES=en_US en_GB pl it es fi fr de da pt he et ca tr nl sk nn sl hu sv ru
MO=$(patsubst %,$(LABEL)/language/%.mo,$(LANGUAGES))
PACKAGE=webtrees
POT=$(PACKAGE).pot
@@ -17,7 +18,6 @@ default: clean $(LABEL)$(COMPRESSION) webtrees.pot
@echo
@echo "Build successful. Now upload the files to launchpad.net:"
@echo
- @echo "language-$(L10NVERSION)$(COMPRESSION) => https://launchpad.net/webtrees/trunk/snapshot"
@echo "$(LABEL)$(COMPRESSION) => https://launchpad.net/webtrees/trunk/snapshot"
@echo "webtrees.pot => https://translations.launchpad.net/webtrees/trunk/+translations-upload"
@echo
@@ -29,7 +29,6 @@ clean:
# Create a ZIP archives
################################################################################
$(LABEL).zip: $(LABEL) $(MO)
- #zip -qr language-$(L10NVERSION).zip $(LABEL)/language
zip -qr $@ $(LABEL)
rm -R $(LABEL)
@@ -37,7 +36,6 @@ $(LABEL).zip: $(LABEL) $(MO)
# Create a TAR.GZ archives
################################################################################
$(LABEL).tar.gz: $(LABEL) $(MO)
- tar cfz language-$(L10NVERSION).tar $(LABEL)/language
tar cfz $(LABEL).tar $(LABEL)
rm -R $(LABEL)
@@ -45,7 +43,6 @@ $(LABEL).tar.gz: $(LABEL) $(MO)
# Create a TAR.BZ2 archives
################################################################################
$(LABEL).tar.bz2: $(LABEL) $(MO)
- tar cfg language-$(L10NVERSION).tar $(LABEL)/language
tar cfg $(LABEL).tar $(LABEL)
rm -R $(LABEL)
@@ -63,7 +60,8 @@ $(LABEL): $(PHP)
# Extract a language file from the downloaded archive file, and rename it
################################################################################
%.mo: $(LANGUAGE_ARCHIVE)
- tar xfzO $(LANGUAGE_ARCHIVE) $(*F)/LC_MESSAGES/webtrees.mo > $@
+ # en_US is maintained locally - others are maintained in launchpad
+ if [ $(@F) = en_US.mo ]; then msgfmt -o $(LABEL)/language/en_US.mo en_US.po; else tar xfzO $(LANGUAGE_ARCHIVE) $(*F)/LC_MESSAGES/webtrees.mo > $@; fi
################################################################################
# We cannot make this file - we download it from launchpad.net
diff --git a/build/en_US.po b/build/en_US.po
new file mode 100644
index 0000000000..840214c88a
--- /dev/null
+++ b/build/en_US.po
@@ -0,0 +1,21 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: Webtrees\n"
+"Report-Msgid-Bugs-To: i18n@webtrees.net\n"
+"POT-Creation-Date: 2010-08-22 14:49+0000\n"
+"PO-Revision-Date: 2010-08-23 18:07-0000\n"
+"Last-Translator: Greg Roach <greg@subaqua.co.uk>\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=n != 1;\n"
+"X-Poedit-Language: en\n"
+"X-Poedit-Country: US\n"
+"X-Poedit-SourceCharset: utf-8\n"
+
+#. I18N: This is the format string for full dates. See http://php.net/date for codes
+#: ../includes/classes/class_i18n.php:106
+msgid "%j %F %Y"
+msgstr "%F %j, %Y"
+