Pull request Compare This branch is 22 commits behind flareteam:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
data.be.po
data.bg.po
data.cs.po
data.de.po
data.el.po
data.es.po
data.fi.po
data.fr.po
data.gd.po
data.gl.po
data.he.po
data.it.po
data.ja.po
data.nb.po
data.nl.po
data.pl.po
data.pot
data.pt.po
data.pt_BR.po
data.ru.po
data.sk.po
data.sv.po
data.uk.po
data.zh.po
readme.txt
regenerate_po.sh
xgettext.py

readme.txt

#!/bin/sh
# This is both readme and an executable script at once.
# Run this script in the language directory to update the pot and all *.po files

# For the engine
# To generate the appropriate .pot file, you need to run the following command from the languages directory:
if [ -e engine.pot ] ; then
	xgettext --no-wrap --keyword=get -o engine.pot ../../../src/*.cpp

	# To update existing .po files, you need to run the following command from the languages directory:
	# msgmerge -U --no-wrap <name_of_.po_file> <name_of_.pot_file>

	for f in $(ls engine.*.po) ; do
		echo "Processing $f"
		msgmerge -U --no-wrap $f engine.pot
	done
fi

if [ -e data.pot ] ; then
	# For mods:
	./xgettext.py

	for f in $(ls data.*.po) ; do
		echo "Processing $f"
		msgmerge -U --no-wrap $f data.pot
	done
fi