Merge pull request #1034 from shnwnd/patch-1

Make the font names more reproducibly stable in generated pythonfile for translation
pull/1055/head
Lex Neva 2021-02-14 11:36:16 -05:00 zatwierdzone przez GitHub
commit 9242d4f4ed
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -8,7 +8,7 @@ import json
fonts_dir = os.path.join(os.path.dirname(__file__), "..", "fonts")
for font in os.listdir(fonts_dir):
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)
@ -16,4 +16,4 @@ for font in os.listdir(fonts_dir):
print "_(%s)" % repr(font_metadata.get("name", ""))
print "# L10N description of font in fonts/%s" % font
print "_(%s)" % repr(font_metadata.get("description", ""))
print "_(%s)" % repr(font_metadata.get("description", ""))