Fix typos in data/tools/wesnoth files.
This commit is contained in:
parent
8ed68f5c55
commit
98b8822ccf
6 changed files with 11 additions and 11 deletions
|
@ -192,7 +192,7 @@ class Addon(object):
|
|||
# Fast forward
|
||||
pass
|
||||
elif status == "*":
|
||||
# Freshly inited repository
|
||||
# Freshly initiated repository
|
||||
pass
|
||||
elif status == "=":
|
||||
# Up to date?
|
||||
|
|
|
@ -122,7 +122,7 @@ if __name__ == "__main__":
|
|||
init_script = os.path.join(build_system.get_dir(), "init-build-sys.sh")
|
||||
|
||||
# Grab master build system's version
|
||||
# Uglyness
|
||||
# Ugliness
|
||||
out, err, res = build_system._execute(["git", "show", "--pretty=oneline", "--summary"])
|
||||
build_system_version = out.split()[0]
|
||||
if len(build_system_version) != 40:
|
||||
|
@ -136,7 +136,7 @@ if __name__ == "__main__":
|
|||
logging.info("Build system for add-on {0} is up-to-date".format(addon_name))
|
||||
return True
|
||||
|
||||
# Uglyness
|
||||
# Ugliness
|
||||
out, err, res = addon_obj._execute([init_script, "--{0}".format(git_version), addon_name, "."], check_error=False)
|
||||
if len(err):
|
||||
logging.warn("init-build-sys.sh in add-on {0}:\n{1}".format(addon_name, err))
|
||||
|
@ -170,7 +170,7 @@ if __name__ == "__main__":
|
|||
if not os.path.exists(os.path.join(addon_obj.get_dir(), "Makefile")):
|
||||
logging.warn("Cannot pot-update: build system does not exist for add-on {0}.".format(addon_name))
|
||||
return False
|
||||
# Uglyness, again
|
||||
# Ugliness, again
|
||||
out, err, res = addon_obj._execute(["make"])
|
||||
if len(err):
|
||||
logging.warn("pot-update in addon {0}:\n{1}".format(addon_name, err))
|
||||
|
@ -225,7 +225,7 @@ if __name__ == "__main__":
|
|||
server The url of the addon server eg
|
||||
add-ons.wesnoth.org:15005.
|
||||
translatable_only If True only returns translatable addons.
|
||||
returns A dictonary with the addon as key and the translatable
|
||||
returns A dictionary with the addon as key and the translatable
|
||||
status as value.
|
||||
"""
|
||||
|
||||
|
@ -371,7 +371,7 @@ if __name__ == "__main__":
|
|||
help = "Server to connect to [localhost]")
|
||||
|
||||
argumentparser.add_argument("-p", "--port",
|
||||
help = "Port on the server to connect to. If omitted will try to selet a port based on --branch. ['']")
|
||||
help = "Port on the server to connect to. If omitted will try to select a port based on --branch. ['']")
|
||||
|
||||
argumentparser.add_argument("-t", "--temp-dir", help = "Directory to store the "
|
||||
+ "tempory data, if omitted a tempdir is created and destroyed after "
|
||||
|
|
|
@ -267,7 +267,7 @@ class DataSub(Data):
|
|||
bytes = ""
|
||||
for r in result:
|
||||
if r != None:
|
||||
# For networking, we need actual bytesteam here, not unicode.
|
||||
# For networking, we need actual bytestream here, not unicode.
|
||||
if type(r) is unicode: r = r.encode("utf8")
|
||||
bytes += str(r)
|
||||
|
||||
|
|
|
@ -96,12 +96,12 @@ class WmlIterator(object):
|
|||
empty and the filename is specified, lines will be read from the file.
|
||||
|
||||
Note: if changes are made to lines while iterating, this may produce
|
||||
unexpected results. In such case, seek() to the linenumber of a
|
||||
unexpected results. In such case, seek() to the line number of a
|
||||
scope behind where changes were made.
|
||||
Important Attributes:
|
||||
lines - this is an internal list of all the physical lines
|
||||
scopes - this is an internal list of all open scopes (as iterators)
|
||||
note: when retreiving an iterator from this list, always
|
||||
note: when retrieving an iterator from this list, always
|
||||
use a copy to perform seek() or next(), and not the original
|
||||
element - the wml tag, key, or macro name for this logical line
|
||||
(in complex cases, this may be a tuple of elements...
|
||||
|
|
|
@ -377,7 +377,7 @@ class Parser:
|
|||
# file.
|
||||
elif macro[0] == ".":
|
||||
dirpath = self.current_path + macro[1:]
|
||||
# Otherwise, try to interprete the macro as a filename in the data dir.
|
||||
# Otherwise, try to interpret the macro as a filename in the data dir.
|
||||
elif self.data_dir != None:
|
||||
dirpath = self.data_dir + "/" + macro
|
||||
else:
|
||||
|
|
|
@ -715,7 +715,7 @@ class CrossRef:
|
|||
#
|
||||
# String translations from po files. The advantage of this code is that it
|
||||
# does not require the gettext binary message catalogs to have been compiled.
|
||||
# The disavantage is that it eats lots of core!
|
||||
# The disavantadge is that it eats lots of core!
|
||||
#
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue