summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-03-22 09:05:13 -0300
committerJesusaves <cpntb1@ymail.com>2018-03-22 09:05:13 -0300
commite603b7e5415d5f8a7702af32bda6d859a8b12a3d (patch)
tree6f1ca521592cb20ee14ebbdb4a2c7b318d58ddb6
parent89bad3499a5b3a576bcda33ffb3e07fa8f2017a3 (diff)
downloadtools-e603b7e5415d5f8a7702af32bda6d859a8b12a3d.tar.gz
tools-e603b7e5415d5f8a7702af32bda6d859a8b12a3d.tar.bz2
tools-e603b7e5415d5f8a7702af32bda6d859a8b12a3d.tar.xz
tools-e603b7e5415d5f8a7702af32bda6d859a8b12a3d.zip
Disregard header file, optimizations
-rw-r--r--web/po/en.po142
-rwxr-xr-xweb/updatelang.py12
2 files changed, 14 insertions, 140 deletions
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 "</title>"
-msgstr ""
-
-#, no-c-format
-msgid "</head>"
-msgstr ""
-
-#, no-c-format
-msgid "<body>"
-msgstr ""
-
-#, no-c-format
-msgid " <a href=\"/\"><center><img src=\"/logo.png\" /></center></a>"
-msgstr ""
-
-#, no-c-format
-msgid " <ul>"
-msgstr ""
-
-#, no-c-format
-msgid " <li>"
-msgstr ""
-
-#, no-c-format
-msgid " <a href=\"/download\">"
-msgstr ""
-
-#, no-c-format
-msgid " Download"
-msgstr ""
-
-#, no-c-format
-msgid " </a>"
-msgstr ""
-
-#, no-c-format
-msgid " </li>"
-msgstr ""
-
-#, no-c-format
-msgid " <a href=\"/gallery\">"
-msgstr ""
-
-#, no-c-format
-msgid " Gallery"
-msgstr ""
-
-#, no-c-format
-msgid " <a href=\"/development\">"
-msgstr ""
-
-#, no-c-format
-msgid " Development"
-msgstr ""
-
-#, no-c-format
-msgid " <!---li>"
-msgstr ""
-
-#, no-c-format
-msgid " <a href=\"#City\">"
-msgstr ""
-
-#, no-c-format
-msgid " City"
-msgstr ""
-
-#, no-c-format
-msgid " </li-->"
-msgstr ""
-
-#, no-c-format
-msgid " <a href=\"http://gitlab.com/TMW2/theManaWorld_Wiki/wikis/home\">"
-msgstr ""
-
-#, no-c-format
-msgid " Wiki"
-msgstr ""
-
-#, no-c-format
-msgid " <a href=\"/news\">"
-msgstr ""
-
-#, no-c-format
-msgid " News"
-msgstr ""
-
-#, no-c-format
-msgid " <a href=\"/legal\">"
-msgstr ""
-
-#, no-c-format
-msgid " Legal Notice"
-msgstr ""
-
-#, no-c-format
-msgid " </a> "
-msgstr ""
-
-#, no-c-format
-msgid " <a href=\"/contact\">"
-msgstr ""
-
-#, no-c-format
-msgid " Contact Us"
-msgstr ""
-
-#, no-c-format
-msgid " </ul>"
-msgstr ""
-
-#, no-c-format
-msgid " <!-- end #menu --> "
-msgstr ""
-
-#, no-c-format
-msgid " <!-- Renders poorly, worth in the long shot, moved to footer for now"
-msgstr ""
-
-#, no-c-format
-msgid " <todo>"
-msgstr ""
-
-#, no-c-format
-msgid " TMW2 is an Open Source fantasy online MMORPG game developed by Saulc."
+msgid "TMW-2: Monster World | Not Found"
msgstr ""
#, no-c-format
-msgid " </todo>"
+msgid " <h2>404 Not Found</h2>"
msgstr ""
#, no-c-format
-msgid " -->"
+msgid " <p>The page you were looking for was not found.</p>"
msgstr ""
#, no-c-format
@@ -256,15 +132,3 @@ msgstr ""
msgid " <p>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.</p>"
msgstr ""
-#, no-c-format
-msgid "TMW-2: Monster World | Not Found"
-msgstr ""
-
-#, no-c-format
-msgid " <h2>404 Not Found</h2>"
-msgstr ""
-
-#, no-c-format
-msgid " <p>The page you were looking for was not found.</p>"
-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("<?php") or
+ line.startswith("?>") or
+ "<div " in line or
+ "</div>" 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("<?php") or line.startswith("?>") or "<div " in line or "</div>" in line or "iframe" in line or line.replace('\n','') == "":
+ if line in tm or invalidline(line, nf):
continue
else:
tm.append(line)