Make font names not translatable (#2901)

pull/2903/head dev-build-claudine-add_ondulamarif_fonts
Kaalleen 2024-05-12 20:27:31 +02:00 zatwierdzone przez GitHub
rodzic 747ae5e3b7
commit ce26f096dd
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
2 zmienionych plików z 1 dodań i 4 usunięć

Wyświetl plik

@ -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", "")))

Wyświetl plik

@ -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', '')