Skip to content

Commit

Permalink
update i18n script
Browse files Browse the repository at this point in the history
  • Loading branch information
FaceDeer committed Mar 3, 2020
1 parent ba1d429 commit 8e03a1c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ trample_def:
trampled_node_def_override = {}, -- If trampled_node_name doesn't exist a new
-- node will be registered based on the definition of
-- trampleable_node_name. Any properties in this table
-- will be used to override properties ignored if
-- will be used to override properties. Ignored if
-- trampled_node_name is a node that already exists.
probability = 1, -- chance that stepping on this node will cause it to turn
-- into the trampled version (range is 0.0 to 1.0)
Expand Down
5 changes: 4 additions & 1 deletion i18n.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
#
# Copyright (C) 2019 Joachim Stolberg, 2020 FaceDeer, 2020 Louis Royer
# LGPLv2.1+
#
# See https://github.com/minetest-tools/update_translations for
# potential future updates to this script.

from __future__ import print_function
import os, fnmatch, re, shutil, errno
Expand Down Expand Up @@ -167,7 +170,7 @@ def process_po_file(text):
# any "no longer used" strings will be preserved.
# Note that "fuzzy" tags will be lost in this process.
def process_po_files(folder, modname):
for root, dirs, files in os.walk(os.path.join(folder + 'locale/')):
for root, dirs, files in os.walk(os.path.join(folder, 'locale/')):
for name in files:
code_match = pattern_po_language_code.match(name)
if code_match == None:
Expand Down

0 comments on commit 8e03a1c

Please sign in to comment.