From ce26f096dd3c9fe3ddd24e5788445d33238917dc Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Sun, 12 May 2024 20:27:31 +0200 Subject: [PATCH] Make font names not translatable (#2901) --- bin/inkstitch-fonts-gettext | 3 --- lib/lettering/font.py | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/bin/inkstitch-fonts-gettext b/bin/inkstitch-fonts-gettext index 24fb9fdf5..0ed7d9b61 100755 --- a/bin/inkstitch-fonts-gettext +++ b/bin/inkstitch-fonts-gettext @@ -12,8 +12,5 @@ for font in sorted(os.listdir(fonts_dir)): with open(os.path.join(fonts_dir, font, "font.json")) as font_json: font_metadata = json.load(font_json) - print("# L10N name of font in fonts/%s" % font) - print("_(%s)" % repr(font_metadata.get("name", ""))) - print("# L10N description of font in fonts/%s" % font) print("_(%s)" % repr(font_metadata.get("description", ""))) diff --git a/lib/lettering/font.py b/lib/lettering/font.py index fda9141cc..17c6f0f9c 100644 --- a/lib/lettering/font.py +++ b/lib/lettering/font.py @@ -109,7 +109,7 @@ class Font(object): # we'll deal with missing variants when we apply lettering pass - name = localized_font_metadata('name', '') + name = font_metadata('name', '') description = localized_font_metadata('description', '') keywords = font_metadata('keywords', '') letter_case = font_metadata('letter_case', '')