From e6168c5a307c988991ea998d06ec4f6c6c1a6841 Mon Sep 17 00:00:00 2001 From: shnwnd Date: Sat, 13 Feb 2021 03:27:23 -0800 Subject: Make the font names more reproducible This should greatly reduce the noise crowdin creates Before this the translations would often jump around in diff output this ought to make that a thing of the past. --- bin/inkstitch-fonts-gettext | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/inkstitch-fonts-gettext b/bin/inkstitch-fonts-gettext index 8a3aa728..8b802fee 100755 --- a/bin/inkstitch-fonts-gettext +++ b/bin/inkstitch-fonts-gettext @@ -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", "")) \ No newline at end of file + print "_(%s)" % repr(font_metadata.get("description", "")) -- cgit v1.2.3