mirror of https://github.com/PCSX2/pcsx2.git
i18n: fix issue i1037 (Rafael's patch).
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4714 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
996ca8ffff
commit
16b64c3cc1
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
# PCSX2 - PS2 Emulator for PCs
|
||||
# Copyright (C) 2002-2010 PCSX2 Dev Team
|
||||
# Copyright (C) 2002-2011 PCSX2 Dev Team
|
||||
#
|
||||
# PCSX2 is free software: you can redistribute it and/or modify it under the terms
|
||||
# of the GNU Lesser General Public License as published by the Free Software Found-
|
||||
|
@ -19,13 +19,12 @@
|
|||
######################################################################
|
||||
# Script configuration
|
||||
######################################################################
|
||||
VERSION=0.9.7
|
||||
COPYRIGHT=PCSX2_Dev_Team #FIXME if someone is able to properly escape the space...
|
||||
VERSION=0.9.9
|
||||
COPYRIGHT="PCSX2 Dev Team"
|
||||
BUG_MAIL="http://code.google.com/p/pcsx2/"
|
||||
|
||||
GENERAL_OPTION="--sort-by-file --no-wrap \
|
||||
--package-name=PCSX2 --package-version=$VERSION \
|
||||
--copyright-holder=$COPYRIGHT --msgid-bugs-address=$BUG_MAIL"
|
||||
GENERAL_OPTION="--sort-by-file --no-wrap --package-name=PCSX2 \
|
||||
--package-version=$VERSION --msgid-bugs-address=$BUG_MAIL"
|
||||
|
||||
|
||||
######################################################################
|
||||
|
@ -66,21 +65,16 @@ TER_KEY2=pxLt
|
|||
TER_KEY3=pxEt
|
||||
|
||||
echo "Generate $MAIN_POT"
|
||||
xgettext --keyword=$MAIN_KEY1 --keyword=$MAIN_KEY2 --keyword=$DEV_KEY1 --keyword=$DEV_KEY2 --keyword=$TER_KEY1 --keyword=$TER_KEY2 $GENERAL_OPTION $input_files --output=$MAIN_POT
|
||||
xgettext --keyword=$MAIN_KEY1 --keyword=$MAIN_KEY2 --keyword=$DEV_KEY1 --keyword=$DEV_KEY2 \
|
||||
--keyword=$TER_KEY1 --keyword=$TER_KEY2 $GENERAL_OPTION --copyright-holder="$COPYRIGHT" \
|
||||
$input_files --output=$MAIN_POT
|
||||
sed --in-place $MAIN_POT --expression=s/charset=CHARSET/charset=UTF-8/
|
||||
|
||||
# echo "Generate $DEV_POT"
|
||||
# xgettext --keyword=$DEV_KEY1 --keyword=$DEV_KEY2 $GENERAL_OPTION $input_files --output=$DEV_POT
|
||||
# sed --in-place $DEV_POT --expression=s/charset=CHARSET/charset=UTF-8/
|
||||
|
||||
echo "Generate $ICO_POT"
|
||||
xgettext --keyword=$ICO_KEY1 --keyword=$TER_KEY3 $GENERAL_OPTION $input_files --output=$ICO_POT
|
||||
xgettext --keyword=$ICO_KEY1 --keyword=$TER_KEY3 $GENERAL_OPTION --copyright-holder="$COPYRIGHT" \
|
||||
$input_files --output=$ICO_POT
|
||||
sed --in-place $ICO_POT --expression=s/charset=CHARSET/charset=UTF-8/
|
||||
|
||||
# echo "Generate $TER_POT"
|
||||
# xgettext --keyword=$TER_KEY1 --keyword=$TER_KEY2 --keyword=$TER_KEY3 $GENERAL_OPTION $input_files --output=$TER_POT
|
||||
# sed --in-place $TER_POT --expression=s/charset=CHARSET/charset=UTF-8/
|
||||
|
||||
######################################################################
|
||||
# Add poedit metadata
|
||||
# It eases poedit for translators
|
||||
|
@ -95,8 +89,6 @@ sed --in-place $ICO_POT --expression=s/charset=CHARSET/charset=UTF-8/
|
|||
COMMON_META="\"X-Poedit-SourceCharset: utf-8\\\n\"\n\"X-Poedit-Basepath: trunk\\\\\\\\\\\n\"\n\"X-Poedit-SearchPath-0: pcsx2\\\n\"\n\"X-Poedit-SearchPath-1: common\\\n\""
|
||||
sed --in-place $MAIN_POT --expression=s/'\"Content-Transfer-Encoding: 8bit\\n\"'/"\"Content-Transfer-Encoding: 8bit\\\n\"\n\"X-Poedit-KeywordsList: ${MAIN_KEY1};${MAIN_KEY2}\\\n\"\n${COMMON_META}"/
|
||||
sed --in-place $ICO_POT --expression=s/'\"Content-Transfer-Encoding: 8bit\\n\"'/"\"Content-Transfer-Encoding: 8bit\\\n\"\n\"X-Poedit-KeywordsList: ${ICO_KEY1}\\\n\"\n${COMMON_META}"/
|
||||
# sed --in-place $DEV_POT --expression=s/'\"Content-Transfer-Encoding: 8bit\\n\"'/"\"Content-Transfer-Encoding: 8bit\\\n\"\n\"X-Poedit-KeywordsList: ${DEV_KEY1};${DEV_KEY2}\\\n\"\n${COMMON_META}"/
|
||||
# sed --in-place $TER_POT --expression=s/'\"Content-Transfer-Encoding: 8bit\\n\"'/"\"Content-Transfer-Encoding: 8bit\\\n\"\n\"X-Poedit-KeywordsList: ${TER_KEY1};${TER_KEY2};${TER_KEY3}\\\n\"\n${COMMON_META}"/
|
||||
|
||||
######################################################################
|
||||
# Automatically align the .po to the new pot file
|
||||
|
@ -107,24 +99,12 @@ do
|
|||
msgmerge --update $po_file $MAIN_POT
|
||||
done
|
||||
|
||||
# echo "Update pcsx2_Devel.po files"
|
||||
# for po_file in `find ./locales -iname pcsx2_Devel.po`
|
||||
# do
|
||||
# msgmerge --update $po_file $DEV_POT
|
||||
# done
|
||||
|
||||
echo "Update pcsx2_Iconized.po files"
|
||||
for po_file in `find ./locales -iname pcsx2_Iconized.po`
|
||||
do
|
||||
msgmerge --update $po_file $ICO_POT
|
||||
done
|
||||
|
||||
# echo "Update pcsx2_Tertiary.po files"
|
||||
# for po_file in `find ./locales -iname pcsx2_Tertiary.po`
|
||||
# do
|
||||
# msgmerge --update $po_file $TER_POT
|
||||
# done
|
||||
|
||||
######################################################################
|
||||
# Automatically compile po into mo file
|
||||
######################################################################
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR PCSX2_Dev_Team
|
||||
# Copyright (C) YEAR PCSX2 Dev Team
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PCSX2 0.9.7\n"
|
||||
"Project-Id-Version: PCSX2 0.9.9\n"
|
||||
"Report-Msgid-Bugs-To: http://code.google.com/p/pcsx2/\n"
|
||||
"POT-Creation-Date: 2011-06-04 17:47+0200\n"
|
||||
"POT-Creation-Date: 2011-06-05 21:49+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR PCSX2_Dev_Team
|
||||
# Copyright (C) YEAR PCSX2 Dev Team
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PCSX2 0.9.7\n"
|
||||
"Project-Id-Version: PCSX2 0.9.9\n"
|
||||
"Report-Msgid-Bugs-To: http://code.google.com/p/pcsx2/\n"
|
||||
"POT-Creation-Date: 2011-06-04 17:47+0200\n"
|
||||
"POT-Creation-Date: 2011-06-05 21:49+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
|
Loading…
Reference in New Issue