Skip to content
Snippets Groups Projects
Verified Commit c6888df4 authored by henry's avatar henry Committed by Pier Angelo Vendrame
Browse files

fixup! Bug 41600: Add a tor circuit display panel.

Bug 42661: Rerun update_emojis.py for the circuit flags.

Add missing locales.
parent 91e5a254
No related branches found
No related tags found
1 merge request!1135Bug 43084: Rebased stable onto 115.15.0esr
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
......@@ -17,6 +17,8 @@ SCRIPT_PATH = Path(__file__).relative_to(FIREFOX_ROOT)
LANGS = [
"ar",
"be",
"bg",
"ca",
"cs",
"da",
......@@ -25,6 +27,7 @@ LANGS = [
"en",
"es",
"fa",
"fi",
"fr",
"ga",
"he",
......@@ -39,12 +42,13 @@ LANGS = [
"mk",
"ms",
"my",
# "nb", # Empty file, currently!!
"nb", # no
"nl",
"pl",
"pt",
"ro",
"ru",
"sq",
"sv",
"th",
"tr",
......@@ -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}"
......@@ -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):
......@@ -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(
......@@ -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(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment