po: Update pofix

Fix closing brace, specify encoding, expand *, run
This commit is contained in:
aquileia 2016-05-03 14:15:14 +02:00
parent cf6a8cf822
commit 3939b9ebab
59 changed files with 69 additions and 66 deletions

View File

@ -878,7 +878,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -872,7 +872,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -877,7 +877,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -866,7 +866,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -874,7 +874,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -991,7 +991,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -1002,7 +1002,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -866,7 +866,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -1148,7 +1148,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -1081,7 +1081,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -1153,7 +1153,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -1019,7 +1019,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -1084,7 +1084,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -882,7 +882,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -1178,7 +1178,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -1095,7 +1095,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -885,7 +885,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -1120,7 +1120,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -1153,7 +1153,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -866,7 +866,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -881,7 +881,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -1126,7 +1126,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -1220,7 +1220,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -881,7 +881,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -868,7 +868,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -1175,7 +1175,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -1138,7 +1138,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -869,7 +869,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -1171,7 +1171,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -1157,7 +1157,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -933,7 +933,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -1050,7 +1050,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -876,7 +876,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -1083,7 +1083,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -873,7 +873,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -866,7 +866,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -982,7 +982,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -1095,7 +1095,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -1127,7 +1127,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -1184,7 +1184,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#

View File

@ -1085,7 +1085,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -1093,7 +1093,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -866,7 +866,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -1132,7 +1132,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -1123,7 +1123,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -907,7 +907,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -1120,7 +1120,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -1122,7 +1122,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -1124,7 +1124,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -1122,7 +1122,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -1110,7 +1110,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -872,7 +872,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -949,7 +949,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -1112,7 +1112,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -1142,7 +1142,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -865,7 +865,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -1086,7 +1086,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -1058,7 +1058,7 @@ msgstr ""
#. [slider]: id=enemey_gold_factor
#: data/multiplayer/scenarios/2p_Dark_Forecast.cfg:245
msgid "Changes the gold worth of the enemy spawns by a certain perentage"
msgid "Changes the gold worth of the enemy spawns by a certain percentage"
msgstr ""
#. [lua]: final_spawn

View File

@ -112,7 +112,6 @@ game_stringfixes = {
"wesnoth-tutorial" : (
# conversion added in 1.11.0-dev
("$unit.type", "$unit.language_name"),
("Ill tell them to use the one that does the most damage!", "Ill tell them to use the one that does more damage!"),
),
"wesnoth-units" : (
@ -132,13 +131,13 @@ game_stringfixes = {
("bigger distraction then they were expecting.", "bigger distraction than they were expecting."),
),
}
"wesnoth-multiplayer" : (
# 1.13.4+dev
("Changes the gold worth of the enemy spawns by a certain perentage", "Changes the gold worth of the enemy spawns by a certain percentage"),
),
}
website_stringfixes = {
"1.12-announcement" : (
@ -160,9 +159,12 @@ website_mode = 0
# Speak, if all argument files are newer than this timestamp
# Try to use UTC here
# date --utc "+%s # %c"
timecheck = 1447845528 # Wed Nov 18 11:18:48 2015
timecheck = 1462268096 # Tue May 3 09:34:56 2016
import os, sys, time, stat, re, argparse
import os, sys, time, stat, re, argparse, glob, io
if sys.version_info < (3, 0):
reload(sys)
sys.setdefaultencoding('utf8')
try:
from multiprocessing import Pool, cpu_count
def parallel_map(*args, **kw):
@ -173,7 +175,7 @@ except ImportError:
parallel_map = map
def process_file(path):
before = open(path, "r").read()
before = io.open(path, "r", encoding="utf8").read()
decommented = re.sub("#.*", "", before)
lines = before.split('\n')
if website_mode:
@ -207,7 +209,7 @@ def process_file(path):
# Save a backup
os.rename(path, path + "-bak")
# Write out transformed version
ofp = open(path, "w")
ofp = io.open(path, "w", encoding="utf8")
ofp.write(after)
ofp.close()
return 1
@ -227,7 +229,8 @@ if __name__ == '__main__':
modified = 0
pocount = 0
files = []
for path in args.paths:
for arg in args.paths:
for path in glob.glob(arg):
if not path.endswith(".po") and not path.endswith(".pot") and not path.endswith(".cfg") and not path.endswith(".html"):
continue
pocount += 1