From 130eacdf40533c6c90b12298db86816b34eac14a Mon Sep 17 00:00:00 2001 From: JarbasAI <33701864+JarbasAl@users.noreply.github.com> Date: Mon, 2 Dec 2024 01:41:36 +0000 Subject: [PATCH] import galician translations (#21) --- locale/gl-es/Numbers.voc | 2 ++ locale/gl-es/api.voc | 1 + locale/gl-es/date_indicator.voc | 26 +++++++++++++++ locale/gl-es/fact.voc | 3 ++ locale/gl-es/math.voc | 3 ++ locale/gl-es/random.voc | 3 ++ locale/gl-es/year.voc | 2 ++ scripts/bump_alpha.py | 19 ----------- scripts/bump_build.py | 21 ------------- scripts/bump_major.py | 27 ---------------- scripts/bump_minor.py | 24 -------------- scripts/remove_alpha.py | 13 -------- translations/gl-es/vocabs.json | 56 +++++++++++++++++++++++++++++++++ 13 files changed, 96 insertions(+), 104 deletions(-) create mode 100644 locale/gl-es/Numbers.voc create mode 100644 locale/gl-es/api.voc create mode 100644 locale/gl-es/date_indicator.voc create mode 100644 locale/gl-es/fact.voc create mode 100644 locale/gl-es/math.voc create mode 100644 locale/gl-es/random.voc create mode 100644 locale/gl-es/year.voc delete mode 100644 scripts/bump_alpha.py delete mode 100644 scripts/bump_build.py delete mode 100644 scripts/bump_major.py delete mode 100644 scripts/bump_minor.py delete mode 100644 scripts/remove_alpha.py create mode 100644 translations/gl-es/vocabs.json diff --git a/locale/gl-es/Numbers.voc b/locale/gl-es/Numbers.voc new file mode 100644 index 0000000..b5ebb02 --- /dev/null +++ b/locale/gl-es/Numbers.voc @@ -0,0 +1,2 @@ +número +números \ No newline at end of file diff --git a/locale/gl-es/api.voc b/locale/gl-es/api.voc new file mode 100644 index 0000000..ed58577 --- /dev/null +++ b/locale/gl-es/api.voc @@ -0,0 +1 @@ +(número|números) (api|a p i) \ No newline at end of file diff --git a/locale/gl-es/date_indicator.voc b/locale/gl-es/date_indicator.voc new file mode 100644 index 0000000..7054b1a --- /dev/null +++ b/locale/gl-es/date_indicator.voc @@ -0,0 +1,26 @@ +abril +agosto +data +decembro +domingo +día +febreiro +fin de semana +hoxe +luns +maio +martes +marzo +mañá +mércores +novembro +onte +outubro +semana +setembro +sábado +venres +xaneiro +xoves +xullo +xuño \ No newline at end of file diff --git a/locale/gl-es/fact.voc b/locale/gl-es/fact.voc new file mode 100644 index 0000000..1f37435 --- /dev/null +++ b/locale/gl-es/fact.voc @@ -0,0 +1,3 @@ +curiosidade +curiosidades +feito \ No newline at end of file diff --git a/locale/gl-es/math.voc b/locale/gl-es/math.voc new file mode 100644 index 0000000..9c9eef4 --- /dev/null +++ b/locale/gl-es/math.voc @@ -0,0 +1,3 @@ +matemática +matemáticas +matemático \ No newline at end of file diff --git a/locale/gl-es/random.voc b/locale/gl-es/random.voc new file mode 100644 index 0000000..9fee5a6 --- /dev/null +++ b/locale/gl-es/random.voc @@ -0,0 +1,3 @@ +aleatorio +ao chou +arbitrario \ No newline at end of file diff --git a/locale/gl-es/year.voc b/locale/gl-es/year.voc new file mode 100644 index 0000000..712d69e --- /dev/null +++ b/locale/gl-es/year.voc @@ -0,0 +1,2 @@ +ano +anos \ No newline at end of file diff --git a/scripts/bump_alpha.py b/scripts/bump_alpha.py deleted file mode 100644 index 49016a7..0000000 --- a/scripts/bump_alpha.py +++ /dev/null @@ -1,19 +0,0 @@ -"""increases alpha version number""" -import fileinput -from os.path import join, dirname - - -version_file = join(dirname(dirname(__file__)), "version.py") -version_var_name = "VERSION_ALPHA" - -with open(version_file, "r", encoding="utf-8") as v: - for line in v.readlines(): - if line.startswith(version_var_name): - version = int(line.split("=")[-1]) - new_version = int(version) + 1 - -for line in fileinput.input(version_file, inplace=True): - if line.startswith(version_var_name): - print(f"{version_var_name} = {new_version}") - else: - print(line.rstrip('\n')) diff --git a/scripts/bump_build.py b/scripts/bump_build.py deleted file mode 100644 index 61099f8..0000000 --- a/scripts/bump_build.py +++ /dev/null @@ -1,21 +0,0 @@ -import fileinput -from os.path import join, dirname - - -version_file = join(dirname(dirname(__file__)), "version.py") -version_var_name = "VERSION_BUILD" -alpha_var_name = "VERSION_ALPHA" - -with open(version_file, "r", encoding="utf-8") as v: - for line in v.readlines(): - if line.startswith(version_var_name): - version = int(line.split("=")[-1]) - new_version = int(version) + 1 - -for line in fileinput.input(version_file, inplace=True): - if line.startswith(version_var_name): - print(f"{version_var_name} = {new_version}") - elif line.startswith(alpha_var_name): - print(f"{alpha_var_name} = 0") - else: - print(line.rstrip('\n')) diff --git a/scripts/bump_major.py b/scripts/bump_major.py deleted file mode 100644 index 2610fbb..0000000 --- a/scripts/bump_major.py +++ /dev/null @@ -1,27 +0,0 @@ -import fileinput -from os.path import join, dirname - - -version_file = join(dirname(dirname(__file__)), "version.py") -version_var_name = "VERSION_MAJOR" -minor_var_name = "VERSION_MINOR" -build_var_name = "VERSION_BUILD" -alpha_var_name = "VERSION_ALPHA" - -with open(version_file, "r", encoding="utf-8") as v: - for line in v.readlines(): - if line.startswith(version_var_name): - version = int(line.split("=")[-1]) - new_version = int(version) + 1 - -for line in fileinput.input(version_file, inplace=True): - if line.startswith(version_var_name): - print(f"{version_var_name} = {new_version}") - elif line.startswith(minor_var_name): - print(f"{minor_var_name} = 0") - elif line.startswith(build_var_name): - print(f"{build_var_name} = 0") - elif line.startswith(alpha_var_name): - print(f"{alpha_var_name} = 0") - else: - print(line.rstrip('\n')) diff --git a/scripts/bump_minor.py b/scripts/bump_minor.py deleted file mode 100644 index 86dfd9d..0000000 --- a/scripts/bump_minor.py +++ /dev/null @@ -1,24 +0,0 @@ -import fileinput -from os.path import join, dirname - - -version_file = join(dirname(dirname(__file__)), "version.py") -version_var_name = "VERSION_MINOR" -build_var_name = "VERSION_BUILD" -alpha_var_name = "VERSION_ALPHA" - -with open(version_file, "r", encoding="utf-8") as v: - for line in v.readlines(): - if line.startswith(version_var_name): - version = int(line.split("=")[-1]) - new_version = int(version) + 1 - -for line in fileinput.input(version_file, inplace=True): - if line.startswith(version_var_name): - print(f"{version_var_name} = {new_version}") - elif line.startswith(build_var_name): - print(f"{build_var_name} = 0") - elif line.startswith(alpha_var_name): - print(f"{alpha_var_name} = 0") - else: - print(line.rstrip('\n')) diff --git a/scripts/remove_alpha.py b/scripts/remove_alpha.py deleted file mode 100644 index fca7342..0000000 --- a/scripts/remove_alpha.py +++ /dev/null @@ -1,13 +0,0 @@ -import fileinput -from os.path import join, dirname - - -version_file = join(dirname(dirname(__file__)), "version.py") - -alpha_var_name = "VERSION_ALPHA" - -for line in fileinput.input(version_file, inplace=True): - if line.startswith(alpha_var_name): - print(f"{alpha_var_name} = 0") - else: - print(line.rstrip('\n')) diff --git a/translations/gl-es/vocabs.json b/translations/gl-es/vocabs.json new file mode 100644 index 0000000..35b1099 --- /dev/null +++ b/translations/gl-es/vocabs.json @@ -0,0 +1,56 @@ +{ + "math.voc": [ + "matemática", + "matemático", + "matemáticas" + ], + "date_indicator.voc": [ + "abril", + "agosto", + "data", + "día", + "decembro", + "febreiro", + "venres", + "xaneiro", + "xullo", + "xuño", + "marzo", + "maio", + "luns", + "novembro", + "outubro", + "sábado", + "setembro", + "domingo", + "xoves", + "hoxe", + "mañá", + "martes", + "mércores", + "semana", + "fin de semana", + "onte" + ], + "year.voc": [ + "ano", + "anos" + ], + "Numbers.voc": [ + "número", + "números" + ], + "api.voc": [ + "(número|números) (api|a p i)" + ], + "random.voc": [ + "aleatorio", + "arbitrario", + "ao chou" + ], + "fact.voc": [ + "curiosidade", + "feito", + "curiosidades" + ] +} \ No newline at end of file