diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2024-05-12 20:27:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-12 20:27:31 +0200 |
| commit | ce26f096dd3c9fe3ddd24e5788445d33238917dc (patch) | |
| tree | 654279dfafa7689edfd42338a0aabf491eab66b7 | |
| parent | 747ae5e3b7b4f487320410a81a812fa4bb837288 (diff) | |
Make font names not translatable (#2901)
| -rwxr-xr-x | bin/inkstitch-fonts-gettext | 3 | ||||
| -rw-r--r-- | lib/lettering/font.py | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/bin/inkstitch-fonts-gettext b/bin/inkstitch-fonts-gettext index 24fb9fdf..0ed7d9b6 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 fda9141c..17c6f0f9 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', '') |
