From f9a42adadec9acd259c205727c95bd6f376dfbc5 Mon Sep 17 00:00:00 2001 From: Inverle Date: Wed, 16 Jul 2025 16:11:51 +0200 Subject: Show translation status in README.md (#7715) * Show translation status in README.md * Fix colon * markdownlint: Allow tag `` * Use mostly Unicode flags instead * Only `oc.svg` remains in an image format * `check.translation.php` still supports `.png` even though there aren't any PNGs as of right now * Fix CodeSniffer * Attempt approach with generating local SVGs * Fixes for local SVG approach * Cleanup old code * PHPStan fix * Remove decimal precision from percentages * Suggestions + better error messages * codesniffer fix v2 * Revert `ghSearchUrl` change * Generate readme * Fix syntax highlight, maybe * Regenerate * Update help message * Use existing translation files instead of .txt * Add test against wrong Unicode flag --------- Co-authored-by: Alexandre Alapetite --- docs/i18n/flags/README.md | 5 +++++ docs/i18n/flags/gen/cs.svg | 7 +++++++ docs/i18n/flags/gen/de.svg | 7 +++++++ docs/i18n/flags/gen/el.svg | 7 +++++++ docs/i18n/flags/gen/en-us.svg | 7 +++++++ docs/i18n/flags/gen/en.svg | 7 +++++++ docs/i18n/flags/gen/es.svg | 7 +++++++ docs/i18n/flags/gen/fa.svg | 7 +++++++ docs/i18n/flags/gen/fi.svg | 7 +++++++ docs/i18n/flags/gen/fr.svg | 7 +++++++ docs/i18n/flags/gen/he.svg | 7 +++++++ docs/i18n/flags/gen/hu.svg | 7 +++++++ docs/i18n/flags/gen/id.svg | 7 +++++++ docs/i18n/flags/gen/it.svg | 7 +++++++ docs/i18n/flags/gen/ja.svg | 7 +++++++ docs/i18n/flags/gen/ko.svg | 7 +++++++ docs/i18n/flags/gen/lv.svg | 7 +++++++ docs/i18n/flags/gen/nl.svg | 7 +++++++ docs/i18n/flags/gen/oc.svg | 10 ++++++++++ docs/i18n/flags/gen/pl.svg | 7 +++++++ docs/i18n/flags/gen/pt-br.svg | 7 +++++++ docs/i18n/flags/gen/pt-pt.svg | 7 +++++++ docs/i18n/flags/gen/ru.svg | 7 +++++++ docs/i18n/flags/gen/sk.svg | 7 +++++++ docs/i18n/flags/gen/tr.svg | 7 +++++++ docs/i18n/flags/gen/zh-cn.svg | 7 +++++++ docs/i18n/flags/gen/zh-tw.svg | 7 +++++++ docs/i18n/flags/oc.svg | 1 + 28 files changed, 191 insertions(+) create mode 100644 docs/i18n/flags/README.md create mode 100644 docs/i18n/flags/gen/cs.svg create mode 100644 docs/i18n/flags/gen/de.svg create mode 100644 docs/i18n/flags/gen/el.svg create mode 100644 docs/i18n/flags/gen/en-us.svg create mode 100644 docs/i18n/flags/gen/en.svg create mode 100644 docs/i18n/flags/gen/es.svg create mode 100644 docs/i18n/flags/gen/fa.svg create mode 100644 docs/i18n/flags/gen/fi.svg create mode 100644 docs/i18n/flags/gen/fr.svg create mode 100644 docs/i18n/flags/gen/he.svg create mode 100644 docs/i18n/flags/gen/hu.svg create mode 100644 docs/i18n/flags/gen/id.svg create mode 100644 docs/i18n/flags/gen/it.svg create mode 100644 docs/i18n/flags/gen/ja.svg create mode 100644 docs/i18n/flags/gen/ko.svg create mode 100644 docs/i18n/flags/gen/lv.svg create mode 100644 docs/i18n/flags/gen/nl.svg create mode 100644 docs/i18n/flags/gen/oc.svg create mode 100644 docs/i18n/flags/gen/pl.svg create mode 100644 docs/i18n/flags/gen/pt-br.svg create mode 100644 docs/i18n/flags/gen/pt-pt.svg create mode 100644 docs/i18n/flags/gen/ru.svg create mode 100644 docs/i18n/flags/gen/sk.svg create mode 100644 docs/i18n/flags/gen/tr.svg create mode 100644 docs/i18n/flags/gen/zh-cn.svg create mode 100644 docs/i18n/flags/gen/zh-tw.svg create mode 100644 docs/i18n/flags/oc.svg (limited to 'docs/i18n') diff --git a/docs/i18n/flags/README.md b/docs/i18n/flags/README.md new file mode 100644 index 000000000..10443f0d9 --- /dev/null +++ b/docs/i18n/flags/README.md @@ -0,0 +1,5 @@ +Used by [check.translation.php](../../../cli/check.translation.php) + +See also the translation key `gen.flag` for Unicode flags. + +Put an SVG here when the Unicode flag does not exist or does not have sufficient implementation support. diff --git a/docs/i18n/flags/gen/cs.svg b/docs/i18n/flags/gen/cs.svg new file mode 100644 index 000000000..03d106cd4 --- /dev/null +++ b/docs/i18n/flags/gen/cs.svg @@ -0,0 +1,7 @@ + + + + + 🇨🇿 91% + + \ No newline at end of file diff --git a/docs/i18n/flags/gen/de.svg b/docs/i18n/flags/gen/de.svg new file mode 100644 index 000000000..e159e6658 --- /dev/null +++ b/docs/i18n/flags/gen/de.svg @@ -0,0 +1,7 @@ + + + + + 🇩🇪 96% + + \ No newline at end of file diff --git a/docs/i18n/flags/gen/el.svg b/docs/i18n/flags/gen/el.svg new file mode 100644 index 000000000..46a4486da --- /dev/null +++ b/docs/i18n/flags/gen/el.svg @@ -0,0 +1,7 @@ + + + + + 🇬🇷 23% + + \ No newline at end of file diff --git a/docs/i18n/flags/gen/en-us.svg b/docs/i18n/flags/gen/en-us.svg new file mode 100644 index 000000000..ba7f59f32 --- /dev/null +++ b/docs/i18n/flags/gen/en-us.svg @@ -0,0 +1,7 @@ + + + + + 🇺🇸 100% + + \ No newline at end of file diff --git a/docs/i18n/flags/gen/en.svg b/docs/i18n/flags/gen/en.svg new file mode 100644 index 000000000..96dca892e --- /dev/null +++ b/docs/i18n/flags/gen/en.svg @@ -0,0 +1,7 @@ + + + + + 🇬🇧 100% + + \ No newline at end of file diff --git a/docs/i18n/flags/gen/es.svg b/docs/i18n/flags/gen/es.svg new file mode 100644 index 000000000..f534a65b9 --- /dev/null +++ b/docs/i18n/flags/gen/es.svg @@ -0,0 +1,7 @@ + + + + + 🇪🇸 94% + + \ No newline at end of file diff --git a/docs/i18n/flags/gen/fa.svg b/docs/i18n/flags/gen/fa.svg new file mode 100644 index 000000000..022372f91 --- /dev/null +++ b/docs/i18n/flags/gen/fa.svg @@ -0,0 +1,7 @@ + + + + + 🇮🇷 79% + + \ No newline at end of file diff --git a/docs/i18n/flags/gen/fi.svg b/docs/i18n/flags/gen/fi.svg new file mode 100644 index 000000000..1265402b9 --- /dev/null +++ b/docs/i18n/flags/gen/fi.svg @@ -0,0 +1,7 @@ + + + + + 🇫🇮 95% + + \ No newline at end of file diff --git a/docs/i18n/flags/gen/fr.svg b/docs/i18n/flags/gen/fr.svg new file mode 100644 index 000000000..315726e5c --- /dev/null +++ b/docs/i18n/flags/gen/fr.svg @@ -0,0 +1,7 @@ + + + + + 🇫🇷 100% + + \ No newline at end of file diff --git a/docs/i18n/flags/gen/he.svg b/docs/i18n/flags/gen/he.svg new file mode 100644 index 000000000..7f81280a5 --- /dev/null +++ b/docs/i18n/flags/gen/he.svg @@ -0,0 +1,7 @@ + + + + + 🇮🇱 46% + + \ No newline at end of file diff --git a/docs/i18n/flags/gen/hu.svg b/docs/i18n/flags/gen/hu.svg new file mode 100644 index 000000000..6c78ec856 --- /dev/null +++ b/docs/i18n/flags/gen/hu.svg @@ -0,0 +1,7 @@ + + + + + 🇭🇺 98% + + \ No newline at end of file diff --git a/docs/i18n/flags/gen/id.svg b/docs/i18n/flags/gen/id.svg new file mode 100644 index 000000000..45745ee5e --- /dev/null +++ b/docs/i18n/flags/gen/id.svg @@ -0,0 +1,7 @@ + + + + + 🇮🇩 99% + + \ No newline at end of file diff --git a/docs/i18n/flags/gen/it.svg b/docs/i18n/flags/gen/it.svg new file mode 100644 index 000000000..b8aec2a54 --- /dev/null +++ b/docs/i18n/flags/gen/it.svg @@ -0,0 +1,7 @@ + + + + + 🇮🇹 99% + + \ No newline at end of file diff --git a/docs/i18n/flags/gen/ja.svg b/docs/i18n/flags/gen/ja.svg new file mode 100644 index 000000000..41d996d46 --- /dev/null +++ b/docs/i18n/flags/gen/ja.svg @@ -0,0 +1,7 @@ + + + + + 🇯🇵 98% + + \ No newline at end of file diff --git a/docs/i18n/flags/gen/ko.svg b/docs/i18n/flags/gen/ko.svg new file mode 100644 index 000000000..48b9a42e1 --- /dev/null +++ b/docs/i18n/flags/gen/ko.svg @@ -0,0 +1,7 @@ + + + + + 🇰🇷 91% + + \ No newline at end of file diff --git a/docs/i18n/flags/gen/lv.svg b/docs/i18n/flags/gen/lv.svg new file mode 100644 index 000000000..0453d3f20 --- /dev/null +++ b/docs/i18n/flags/gen/lv.svg @@ -0,0 +1,7 @@ + + + + + 🇱🇻 85% + + \ No newline at end of file diff --git a/docs/i18n/flags/gen/nl.svg b/docs/i18n/flags/gen/nl.svg new file mode 100644 index 000000000..12479be4e --- /dev/null +++ b/docs/i18n/flags/gen/nl.svg @@ -0,0 +1,7 @@ + + + + + 🇳🇱 92% + + \ No newline at end of file diff --git a/docs/i18n/flags/gen/oc.svg b/docs/i18n/flags/gen/oc.svg new file mode 100644 index 000000000..266d58770 --- /dev/null +++ b/docs/i18n/flags/gen/oc.svg @@ -0,0 +1,10 @@ + + + + + + + + 84% + + \ No newline at end of file diff --git a/docs/i18n/flags/gen/pl.svg b/docs/i18n/flags/gen/pl.svg new file mode 100644 index 000000000..e0ac841df --- /dev/null +++ b/docs/i18n/flags/gen/pl.svg @@ -0,0 +1,7 @@ + + + + + 🇵🇱 99% + + \ No newline at end of file diff --git a/docs/i18n/flags/gen/pt-br.svg b/docs/i18n/flags/gen/pt-br.svg new file mode 100644 index 000000000..076972ebd --- /dev/null +++ b/docs/i18n/flags/gen/pt-br.svg @@ -0,0 +1,7 @@ + + + + + 🇧🇷 91% + + \ No newline at end of file diff --git a/docs/i18n/flags/gen/pt-pt.svg b/docs/i18n/flags/gen/pt-pt.svg new file mode 100644 index 000000000..e6363b435 --- /dev/null +++ b/docs/i18n/flags/gen/pt-pt.svg @@ -0,0 +1,7 @@ + + + + + 🇵🇹 91% + + \ No newline at end of file diff --git a/docs/i18n/flags/gen/ru.svg b/docs/i18n/flags/gen/ru.svg new file mode 100644 index 000000000..e5e2e322e --- /dev/null +++ b/docs/i18n/flags/gen/ru.svg @@ -0,0 +1,7 @@ + + + + + 🇷🇺 91% + + \ No newline at end of file diff --git a/docs/i18n/flags/gen/sk.svg b/docs/i18n/flags/gen/sk.svg new file mode 100644 index 000000000..04185a75b --- /dev/null +++ b/docs/i18n/flags/gen/sk.svg @@ -0,0 +1,7 @@ + + + + + 🇸🇰 91% + + \ No newline at end of file diff --git a/docs/i18n/flags/gen/tr.svg b/docs/i18n/flags/gen/tr.svg new file mode 100644 index 000000000..f62f7d2f5 --- /dev/null +++ b/docs/i18n/flags/gen/tr.svg @@ -0,0 +1,7 @@ + + + + + 🇹🇷 99% + + \ No newline at end of file diff --git a/docs/i18n/flags/gen/zh-cn.svg b/docs/i18n/flags/gen/zh-cn.svg new file mode 100644 index 000000000..1b2a7b559 --- /dev/null +++ b/docs/i18n/flags/gen/zh-cn.svg @@ -0,0 +1,7 @@ + + + + + 🇨🇳 91% + + \ No newline at end of file diff --git a/docs/i18n/flags/gen/zh-tw.svg b/docs/i18n/flags/gen/zh-tw.svg new file mode 100644 index 000000000..c76459ef3 --- /dev/null +++ b/docs/i18n/flags/gen/zh-tw.svg @@ -0,0 +1,7 @@ + + + + + 🇹🇼 91% + + \ No newline at end of file diff --git a/docs/i18n/flags/oc.svg b/docs/i18n/flags/oc.svg new file mode 100644 index 000000000..e7ddfed8e --- /dev/null +++ b/docs/i18n/flags/oc.svg @@ -0,0 +1 @@ + \ No newline at end of file -- cgit v1.2.3