From e603b7e5415d5f8a7702af32bda6d859a8b12a3d Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 22 Mar 2018 09:05:13 -0300 Subject: Disregard header file, optimizations --- web/po/en.po | 142 ++---------------------------------------------------- web/updatelang.py | 12 ++++- 2 files changed, 14 insertions(+), 140 deletions(-) (limited to 'web') diff --git a/web/po/en.po b/web/po/en.po index 72aa65e..428da67 100644 --- a/web/po/en.po +++ b/web/po/en.po @@ -105,139 +105,15 @@ msgid " is otherwise unable to connect, please contact us so we may fix t msgstr "" #, no-c-format -msgid "" -msgstr "" - -#, no-c-format -msgid "" -msgstr "" - -#, no-c-format -msgid "" -msgstr "" - -#, no-c-format -msgid "
" -msgstr "" - -#, no-c-format -msgid " " -msgstr "" - -#, no-c-format -msgid " " -msgstr "" - -#, no-c-format -msgid " " +msgid "

The page you were looking for was not found.

" msgstr "" #, no-c-format @@ -256,15 +132,3 @@ msgstr "" msgid "

In this game, the player is given the opportunity to permanently change the world and its story, affecting all players forever, mainly by events and quests. The players are free to decide how they want the world to develop, and their actions change the storyline, besides always being able to join the Development Team.

" msgstr "" -#, no-c-format -msgid "TMW-2: Monster World | Not Found" -msgstr "" - -#, no-c-format -msgid "

404 Not Found

" -msgstr "" - -#, no-c-format -msgid "

The page you were looking for was not found.

" -msgstr "" - diff --git a/web/updatelang.py b/web/updatelang.py index d3b0573..e2eca72 100755 --- a/web/updatelang.py +++ b/web/updatelang.py @@ -14,6 +14,16 @@ files={} originals={} tm=["","\n"] +def invalidline(line, filx="none"): + return (line.startswith("include ") or + line.startswith("") or + "
" in line or + "iframe" in line or + "header" in filx or + line.replace('\n','') == "") + # Populates the basic arrays def populate(): # Populate langs @@ -84,7 +94,7 @@ def writePoFile(nf,lg): f=open(rootPath+nf, "r") for line in f: - if line in tm or line.startswith("include ") or line.startswith("") or "
" in line or "iframe" in line or line.replace('\n','') == "": + if line in tm or invalidline(line, nf): continue else: tm.append(line) -- cgit v1.2.3-70-g09d2