summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-06-25 23:09:56 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-06-25 23:09:56 +0200
commitb99614b0e9b431414e8bc4e74142fb17d69b627a (patch)
tree313426b5d5a07a2b36e0077677254c78b1f728e0
parentdedcab5598c465024f7cd0091474a708f4201437 (diff)
More translations
-rwxr-xr-xbuild45
-rw-r--r--src/en/euro/index.html41
-rw-r--r--src/pt/euro/index.html55
3 files changed, 54 insertions, 87 deletions
diff --git a/build b/build
index d83c8ad..7b52aa1 100755
--- a/build
+++ b/build
@@ -98,6 +98,51 @@ compile_for_lang() {
| last-of-design.sed \
| xfsub '<!-- TABLE-BODY -->' - $nod/index.html
+ grep -Eo '^[A-Z]{2}' data/coins \
+ | uniq \
+ | gawk -v lang=$1 '
+ function bilingual_sort(i1, v1, i2, v2, f)
+ {
+ print v1 ":" v2 |& CMD
+ CMD |& getline f
+
+ return f == v1 ? -1 : +1
+ }
+
+ BEGIN {
+ while (getline < ("data/country-info." lang)) {
+ split($0, a, "\t")
+ map[a[1]] = a[3]
+ }
+ }
+
+ { countries[$0] = map[$0] }
+
+ END {
+ locale = lang == "pt" \
+ ? "pt_BR.UTF-8" \
+ : lang "_" toupper(lang) ".UTF-8"
+
+ CMD = "LC_ALL=" locale " ./bilingual_sort"
+ PROCINFO["sorted_in"] = "bilingual_sort"
+
+ print "<table class=country-table><tbody>"
+ for (code in countries) {
+ i++
+ if (i % 4 == 1)
+ printf "<tr>"
+ printf "<td><a href=%s>%s</a></td>", tolower(code),
+ countries[code]
+ if (i % 4 == 0)
+ print "</tr>"
+ }
+ print "</tbody></table>"
+
+ close(CMD)
+ }
+ ' \
+ | xfsub '<!-- COUNTRY-TABLE -->' - $od/euro/index.html
+
for CC in `grep -Eo '^[A-Z]{2}' data/coins | uniq`; do
cc=`echo $CC | tr A-Z a-z`
nod=$od/euro/$cc
diff --git a/src/en/euro/index.html b/src/en/euro/index.html
index 622cfcd..cff3183 100644
--- a/src/en/euro/index.html
+++ b/src/en/euro/index.html
@@ -34,46 +34,7 @@
<section class="cl-section slant-up">
<div>
<h2>Euro Coins</h2>
- <table class=country-table>
- <tbody>
- <tr>
- <td><a href=ad>Andorra</a></td>
- <td><a href=at>Austria</a></td>
- <td><a href=be>Belgium</a></td>
- <td><a href=hr>Croatia</a></td>
- </tr>
- <tr>
- <td><a href=cy>Cyprus</a></td>
- <td><a href=ee>Estonia</a></td>
- <td><a href=fi>Finland</a></td>
- <td><a href=fr>France</a></td>
- </tr>
- <tr>
- <td><a href=de>Germany</a></td>
- <td><a href=gr>Greece</a></td>
- <td><a href=ie>Ireland</a></td>
- <td><a href=it>Italy</a></td>
- </tr>
- <tr>
- <td><a href=lv>Latvia</a></td>
- <td><a href=lt>Lithuania</a></td>
- <td><a href=lu>Luxembourg</a></td>
- <td><a href=mt>Malta</a></td>
- </tr>
- <tr>
- <td><a href=mc>Monaco</a></td>
- <td><a href=nl>Netherlands</a></td>
- <td><a href=pt>Portugal</a></td>
- <td><a href=sm>San Marino</a></td>
- </tr>
- <tr>
- <td><a href=sk>Slovakia</a></td>
- <td><a href=si>Slovenia</a></td>
- <td><a href=es>Spain</a></td>
- <td><a href=va>Vatican City</a></td>
- </tr>
- </tbody>
- </table>
+ <!-- COUNTRY-TABLE -->
<table class=country-table>
<tbody>
diff --git a/src/pt/euro/index.html b/src/pt/euro/index.html
index 537c90f..4d0acb1 100644
--- a/src/pt/euro/index.html
+++ b/src/pt/euro/index.html
@@ -21,59 +21,20 @@
<section>
<p>
- There are various examples of euro coins that have slight varieties
- between their standard circulation releases and their coincard/set
- releases, such as different mintmarks. In these cases, the NIFC
- variety will <strong>not</strong> be listed on this site
- <em>unless</em> I happen to get one for my collection (see
- <a href=mt>Malta</a> for an example). The same applies to error
- coins.
+ Existem vários exemplos de moedas de euro que tem pequenas variações
+ entre seus lançamentos de circulação regulares e seus lançamentos de
+ cartão de moedas / conjuntos, como diferentes marcas de cunhagem.
+ Nesses casos, a variedade NIFC <strong>não</strong> será listada neste
+ site, <em>a menos</em> que eu consiga uma para minha coleção (veja
+ <a href=mt>Malta</a> para um exemplo). O mesmo se aplica a moedas de
+ erro.
</p>
</section>
<section class="cl-section slant-up">
<div>
<h2>Moedas de Euro</h2>
- <table class=country-table>
- <tbody>
- <tr>
- <td><a href=de>Alemanha</a></td>
- <td><a href=ad>Andorra</a></td>
- <td><a href=at>Áustria</a></td>
- <td><a href=be>Bélgica</a></td>
- </tr>
- <tr>
- <td><a href=cy>Chipre</a></td>
- <td><a href=va>Cidade do Vaticano</a></td>
- <td><a href=hr>Croácia</a></td>
- <td><a href=sk>Eslováquia</a></td>
- </tr>
- <tr>
- <td><a href=si>Eslovênia</a></td>
- <td><a href=es>Espanha</a></td>
- <td><a href=ee>Estônia</a></td>
- <td><a href=fi>Finlândia</a></td>
- </tr>
- <tr>
- <td><a href=fr>França</a></td>
- <td><a href=gr>Grécia</a></td>
- <td><a href=nl>Holanda</a></td>
- <td><a href=ie>Irlanda</a></td>
- </tr>
- <tr>
- <td><a href=it>Itália</a></td>
- <td><a href=lv>Letônia</a></td>
- <td><a href=lt>Lituânia</a></td>
- <td><a href=lu>Luxemburgo</a></td>
- </tr>
- <tr>
- <td><a href=mt>Malta</a></td>
- <td><a href=mc>Mônaco</a></td>
- <td><a href=pt>Portugal</a></td>
- <td><a href=sm>San Marino</a></td>
- </tr>
- </tbody>
- </table>
+ <!-- COUNTRY-TABLE -->
<table class=country-table>
<tbody>