Loading browser/components/torcircuit/content/tor-circuit-flags/README.txt +1 −1 Original line number Diff line number Diff line Generated by tools/torbrowser/update_emojis.py on 2023-04-03 No newline at end of file Generated by tools/torbrowser/update_emojis.py on 2024-08-06 tools/torbrowser/update_emojis.py +10 −3 Original line number Diff line number Diff line Loading @@ -17,6 +17,8 @@ SCRIPT_PATH = Path(__file__).relative_to(FIREFOX_ROOT) LANGS = [ "ar", "be", "bg", "ca", "cs", "da", Loading @@ -25,6 +27,7 @@ LANGS = [ "en", "es", "fa", "fi", "fr", "ga", "he", Loading @@ -39,12 +42,13 @@ LANGS = [ "mk", "ms", "my", # "nb", # Empty file, currently!! "nb", # no "nl", "pl", "pt", "ro", "ru", "sq", "sv", "th", "tr", Loading @@ -57,7 +61,7 @@ LANGS = [ def generated_message(): """Get the message describing the generation script and time.""" date = datetime.date.isoformat(datetime.datetime.utcnow()) date = datetime.date.isoformat(datetime.datetime.now(datetime.UTC)) return f"Generated by {SCRIPT_PATH} on {date}" Loading @@ -83,7 +87,7 @@ def copy_emoji_svgs(emoji_codepoints, from_dir, to_dir): file.unlink() with open(to_dir / "README.txt", "w", encoding="utf8") as file: file.write(generated_message()) file.write(generated_message() + "\n") def get_flag_codepoints(file): Loading Loading @@ -195,6 +199,8 @@ def save_bridge_emoji_descriptions(from_dir): filename = "zh" elif lang == "zh-TW": filename = "zh_Hant" elif lang == "nb": filename = "no" else: filename = lang with open( Loading @@ -204,6 +210,7 @@ def save_bridge_emoji_descriptions(from_dir): with open(BRIDGE_DIR / "annotations.json", "w", encoding="utf8") as file: json.dump(data, file, ensure_ascii=False, indent=2) file.write("\n") parser = argparse.ArgumentParser( Loading Loading
browser/components/torcircuit/content/tor-circuit-flags/README.txt +1 −1 Original line number Diff line number Diff line Generated by tools/torbrowser/update_emojis.py on 2023-04-03 No newline at end of file Generated by tools/torbrowser/update_emojis.py on 2024-08-06
tools/torbrowser/update_emojis.py +10 −3 Original line number Diff line number Diff line Loading @@ -17,6 +17,8 @@ SCRIPT_PATH = Path(__file__).relative_to(FIREFOX_ROOT) LANGS = [ "ar", "be", "bg", "ca", "cs", "da", Loading @@ -25,6 +27,7 @@ LANGS = [ "en", "es", "fa", "fi", "fr", "ga", "he", Loading @@ -39,12 +42,13 @@ LANGS = [ "mk", "ms", "my", # "nb", # Empty file, currently!! "nb", # no "nl", "pl", "pt", "ro", "ru", "sq", "sv", "th", "tr", Loading @@ -57,7 +61,7 @@ LANGS = [ def generated_message(): """Get the message describing the generation script and time.""" date = datetime.date.isoformat(datetime.datetime.utcnow()) date = datetime.date.isoformat(datetime.datetime.now(datetime.UTC)) return f"Generated by {SCRIPT_PATH} on {date}" Loading @@ -83,7 +87,7 @@ def copy_emoji_svgs(emoji_codepoints, from_dir, to_dir): file.unlink() with open(to_dir / "README.txt", "w", encoding="utf8") as file: file.write(generated_message()) file.write(generated_message() + "\n") def get_flag_codepoints(file): Loading Loading @@ -195,6 +199,8 @@ def save_bridge_emoji_descriptions(from_dir): filename = "zh" elif lang == "zh-TW": filename = "zh_Hant" elif lang == "nb": filename = "no" else: filename = lang with open( Loading @@ -204,6 +210,7 @@ def save_bridge_emoji_descriptions(from_dir): with open(BRIDGE_DIR / "annotations.json", "w", encoding="utf8") as file: json.dump(data, file, ensure_ascii=False, indent=2) file.write("\n") parser = argparse.ArgumentParser( Loading