Commit 221432d0 authored by henry's avatar henry Committed by morgan
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 c8f563a4
Loading
Loading
Loading
Loading
+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
+10 −3
Original line number Diff line number Diff line
@@ -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(