From 65b2376c076ab2d22a3e9ce27e811814625276f7 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Mon, 27 Sep 2021 15:18:54 +0200 Subject: no translations in inx (#1358) --- lib/inx/utils.py | 6 ---- templates/global_commands.xml | 2 +- templates/import_threadlist.xml | 2 +- templates/input.xml | 4 +-- templates/install_custom_palette.xml | 2 +- templates/layer_commands.xml | 2 +- templates/object_commands.xml | 4 +-- templates/output.xml | 4 +-- templates/output_params_txt.xml | 58 +++++++++++++++++------------------- templates/zip.xml | 10 +++---- 10 files changed, 43 insertions(+), 51 deletions(-) diff --git a/lib/inx/utils.py b/lib/inx/utils.py index 944c265c..acee88ad 100644 --- a/lib/inx/utils.py +++ b/lib/inx/utils.py @@ -9,15 +9,11 @@ from os.path import dirname from jinja2 import Environment, FileSystemLoader -from ..i18n import translation as default_translation - _top_path = dirname(dirname(dirname(os.path.realpath(__file__)))) inx_path = os.path.join(_top_path, "inx") template_path = os.path.join(_top_path, "templates") version_path = _top_path -current_translation = default_translation - def build_environment(): env = Environment( @@ -26,8 +22,6 @@ def build_environment(): extensions=['jinja2.ext.i18n'] ) - env.install_gettext_translations(current_translation) - with open(os.path.join(version_path, 'LICENSE'), 'r') as license: env.globals["inkstitch_license"] = "".join(license.readlines()) diff --git a/templates/global_commands.xml b/templates/global_commands.xml index 0fda86bd..91404eac 100644 --- a/templates/global_commands.xml +++ b/templates/global_commands.xml @@ -4,7 +4,7 @@ org.inkstitch.global_commands These commands affect the entire embroidery design. {% for command, description in global_commands %} - false + false {% endfor %} global_commands diff --git a/templates/import_threadlist.xml b/templates/import_threadlist.xml index 8562d82d..27cc3394 100644 --- a/templates/import_threadlist.xml +++ b/templates/import_threadlist.xml @@ -3,7 +3,7 @@ Import Threadlist org.inkstitch.import_threadlist import_threadlist - + diff --git a/templates/input.xml b/templates/input.xml index a348df5c..b868c5ae 100644 --- a/templates/input.xml +++ b/templates/input.xml @@ -5,8 +5,8 @@ .{{ format }} application/x-embroidery-{{ format }} - <_filetypename>Ink/Stitch: {{ _(description) }} (.{{ format }}) - <_filetypetooltip>{{ _("convert %(file_extension)s file to Ink/Stitch manual-stitch paths") % dict(file_extension=format.upper()) }} + Ink/Stitch: {{ description }} (.{{ format }}) + {{ "convert %(file_extension)s file to Ink/Stitch manual-stitch paths" % dict(file_extension=format.upper()) }} input