From 43d22ac70e441626e5ee93c3fd3c807b69051306 Mon Sep 17 00:00:00 2001 From: Paul <45032974+hide-me@users.noreply.github.com> Date: Tue, 3 Nov 2020 13:43:41 +0300 Subject: [PATCH 1/2] Added "ignore" feature --- system/author/languages/updater.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/system/author/languages/updater.py b/system/author/languages/updater.py index 6d2063b..19a8574 100644 --- a/system/author/languages/updater.py +++ b/system/author/languages/updater.py @@ -24,6 +24,8 @@ if __name__ == '__main__': key = [t.split(': ', 1)[0] for t in data] for i in lang_codes[1:]: # all lang codes except en, because en used like template any_header = f_open(i).split('\n') + if 'ignore' in any_header[0].lower(): # first string in file may contain ignore keyword + continue any_data = any_header[2:] any_header = any_header[:2] any_key = [t.split(': ', 1)[0] for t in any_data] From c4508fddc3291ff098df83b701b79386ff6d2212 Mon Sep 17 00:00:00 2001 From: Paul <45032974+hide-me@users.noreply.github.com> Date: Tue, 3 Nov 2020 13:45:48 +0300 Subject: [PATCH 2/2] Added "ignore" keyword --- system/author/languages/it.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/author/languages/it.yaml b/system/author/languages/it.yaml index 96c01f5..70a34a9 100644 --- a/system/author/languages/it.yaml +++ b/system/author/languages/it.yaml @@ -1,4 +1,4 @@ -# Italian (Italiano) +# Italian (Italiano) pls ignore autoupdates # Author: Severo Iuliano (https://github.com/iusvar) ACCOUNT: Utenza ACTIVE: Attivo