Skip to content

Fix opposition-motions articles: corrupted German flag, English aria-labels, untranslated body content in 12 languages#823

Merged
pethers merged 2 commits intomain-7a9239b964b147d1from
copilot/sub-pr-817
Mar 5, 2026
Merged

Fix opposition-motions articles: corrupted German flag, English aria-labels, untranslated body content in 12 languages#823
pethers merged 2 commits intomain-7a9239b964b147d1from
copilot/sub-pr-817

Conversation

Copy link
Contributor

Copilot AI commented Mar 5, 2026

Three bugs present across all 14 2026-03-05-opposition-motions-*.html files: corrupted German flag emoji bytes in every language switcher, hardcoded aria-label="Language" regardless of page language, and article body content (lede, all headings, committee refs, motion explanations, party lists, closing summary) left in English across the 12 non-EN/SV variants.

Changes

  • German flag (all 14 files): Replaced garbled bytes \xf0\x9f\x87\xa9\xef\xbf\xbd\xef\xbf\xbd with correct 🇩🇪 (\xf0\x9f\x87\xa9\xf0\x9f\x87\xaa)

  • aria-label localisation (all 14 files): <nav class="language-switcher" aria-label="Language"> → native label per locale (e.g. Sprache, Langue, 言語, اللغة, שפה, 언어, etc.)

  • Article body translation (12 files — da, no, fi, de, fr, es, nl, ar, he, ja, ko, zh): All English strings replaced with target-language equivalents:

    • Lede paragraph
    • All <h2>/<h3> headings
    • <p class="committee-ref"> entries (JuU, MJU)
    • Motion explanation paragraphs and "why it matters" content
    • Party activity <li> items
    • "What happens next" closing paragraph
<!-- Before (e.g. de file) -->
<nav class="language-switcher" aria-label="Language">
  ...🇩🇩 Deutsch...
<p class="lede">Sweden's new weapons law has ignited...</p>
<h2>Opposition Strategy</h2>

<!-- After -->
<nav class="language-switcher" aria-label="Sprache">
  ...🇩🇪 Deutsch...
<p class="lede">Schwedens neues Waffengesetz hat im Riksdag einen Drei-Parteien-Aufstand ausgelöst...</p>
<h2>Oppositionsstrategie</h2>

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

…12 languages

Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Copilot AI changed the title [WIP] Add opposition motions analysis for 5 March 2026 Fix opposition-motions articles: corrupted German flag, English aria-labels, untranslated body content in 12 languages Mar 5, 2026
@pethers pethers marked this pull request as ready for review March 5, 2026 11:22
@pethers pethers merged commit 4a48cd9 into main-7a9239b964b147d1 Mar 5, 2026
@pethers pethers deleted the copilot/sub-pr-817 branch March 5, 2026 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants