diff options
-rwxr-xr-x | build | 28 | ||||
-rw-r--r-- | data/country-info.pt | 2 | ||||
-rw-r--r-- | data/sections.en | 22 | ||||
-rw-r--r-- | data/sections.pt | 22 | ||||
-rw-r--r-- | src/pt/euro/coins-denom.template.html | 4 | ||||
-rw-r--r-- | src/pt/euro/coins.template.html | 83 | ||||
-rw-r--r-- | src/pt/footer.html | 2 |
7 files changed, 112 insertions, 51 deletions
@@ -119,13 +119,19 @@ compile_for_lang() { gawk -v CC=$CC ' @include "scripts/getcls.awk" - $1 == CC && /.. start/ { - sub(/.. start/, "") - printf "<tr class=new-design><th colspan=8>%s</th></tr>\n", $0 + FILENAME != "data/coins" { + split($0, a, "\t") + en2lang[a[1]] = a[2] + } + + FILENAME == "data/coins" && $1 == CC && /.. start/ { + sub(/^.. start/, ""); sub(/^ /, "") + printf "<tr class=new-design><th colspan=8>%s</th></tr>\n", + en2lang[$0] next } - $1 == CC { + FILENAME == "data/coins" && $1 == CC { y = $10 if ($11 != "") y_ = $11 @@ -151,7 +157,7 @@ compile_for_lang() { } END { print "MARKER LOL" } - ' data/coins \ + ' data/sections.$1 data/coins \ | last-of-design.sed \ | sed -E 's|(<td class=not-minted>)[^<]*(<sup>[^<]*</sup>)?(</td>)|\1\ \3|g' \ | xfsub '<!-- SCOIN-TABLE-BODY -->' - $nod/index.html @@ -353,10 +359,18 @@ compile_for_lang() { sed -Ei " /<nav>/,\\|</nav>|s|<a href=/../euro/${denom_}>([^<]*)</a>|<div class=selected>\\1</div>| " $nod/index.html + case $1 in + en) + sep=. + ;; + *) + sep=, + ;; + esac if [ $denom -eq 100 -o $denom -eq 200 ]; then - sed -i "s/<!-- DENOM -->/${denom%00}.00/" $nod/index.html + sed -i "s/<!-- DENOM -->/${denom%00}${sep}00/" $nod/index.html else - sed -i "s/<!-- DENOM -->/0.`printf '%02d' $denom`/" $nod/index.html + sed -i "s/<!-- DENOM -->/0$sep`printf '%02d' $denom`/" $nod/index.html fi for CC in `cut -f1 data/tmp-data.$1`; do diff --git a/data/country-info.pt b/data/country-info.pt index 87ca4ff..f322b84 100644 --- a/data/country-info.pt +++ b/data/country-info.pt @@ -22,7 +22,7 @@ LU Luxemburguesas Luxemborgo LV Letãs Letônia MC Monegascas Mônaco MT Maltesas Malta -NL Holandesas Holanda +NL Holandesas Países Baixos PT Portuguesas Portugal SI Eslovenas Eslovênia SK Eslovacas Eslováquia diff --git a/data/sections.en b/data/sections.en new file mode 100644 index 0000000..807dea5 --- /dev/null +++ b/data/sections.en @@ -0,0 +1,22 @@ +King Albert II (Series I) King Albert II (Series I) +King Albert II (Series II) King Albert II (Series II) +King Philippe King Philippe + +King Juan Carlos I (Series I) King Juan Carlos I (Series I) +King Juan Carlos I (Series II) King Juan Carlos I (Series II) +King Felipe VI King Felipe VI + +Series I Series I +Series II Series II + +Prince Rainier III Prince Rainier III +Prince Albert II Prince Albert II + +Queen Beatrix Queen Beatrix +King Willem-Alexander King Willem-Alexander + +Pope John Paul II Pope John Paul II +Sede Vacante Sede Vacante +Pope Benedict XVI Pope Benedict XVI +Pope Francis Pope Francis +Coat of Arms Coat of Arms diff --git a/data/sections.pt b/data/sections.pt new file mode 100644 index 0000000..b29a2a2 --- /dev/null +++ b/data/sections.pt @@ -0,0 +1,22 @@ +King Albert II (Series I) Rei Albert II (Série I) +King Albert II (Series II) Rei Albert II (Série II) +King Philippe Rei Filipe + +King Juan Carlos I (Series I) Rei Juan Carlos I (Série I) +King Juan Carlos I (Series II) Rei Juan Carlos I (Série II) +King Felipe VI Rei Felipe VI + +Series I Série I +Series II Série II + +Prince Rainier III Príncipe Rainier III +Prince Albert II Príncipe Albert II + +Queen Beatrix Rainha Beatriz +King Willem-Alexander Rei Willem-Alexander + +Pope John Paul II Papa João Paulo II +Sede Vacante Sede Vacante +Pope Benedict XVI Papa Bento XVI +Pope Francis Papa Francisco +Coat of Arms Brazão diff --git a/src/pt/euro/coins-denom.template.html b/src/pt/euro/coins-denom.template.html index 3ed260d..bc2d4f3 100644 --- a/src/pt/euro/coins-denom.template.html +++ b/src/pt/euro/coins-denom.template.html @@ -3,7 +3,7 @@ <head> <meta charset=UTF-8 /> <meta name="viewport" content="width=device-width, initial-scale=1" /> - <title>€<!-- DENOM --> Coins</title> + <title><!-- DENOM --> € Moedas</title> <link rel="shortcut icon" type="image/svg" href="/favicon.svg" /> <link rel="stylesheet" type="text/css" href="/style.css" /> </head> @@ -17,7 +17,7 @@ <main> <section> <header> - <h1>€<!-- DENOM --> Coins</h1> + <h1><!-- DENOM --> € Moedas</h1> </header> </section> diff --git a/src/pt/euro/coins.template.html b/src/pt/euro/coins.template.html index 6a01507..7e5fe2a 100644 --- a/src/pt/euro/coins.template.html +++ b/src/pt/euro/coins.template.html @@ -3,7 +3,7 @@ <head> <meta charset=UTF-8 /> <meta name="viewport" content="width=device-width, initial-scale=1" /> - <title><!-- DEMON --> Euro Coins</title> + <title>Moedas Euro <!-- DEMON --></title> <link rel="shortcut icon" type="image/svg" href="/favicon.svg" /> <link rel="stylesheet" type="text/css" href="/style.css" /> </head> @@ -17,7 +17,7 @@ <main> <section> <header> - <h1><!-- DEMON --> Euro Coins</h1> + <h1>Moedas Euro <!-- DEMON --></h1> </header> </section> @@ -30,9 +30,9 @@ <!-- IF-DE --> <section> <p> - All German coins bear one of five different mintmarks that represent - the city in which they were minted. These are: Berlin (A), Munich - (D), Stuttgart (F), Karlsruhe (G), and Hamburg (J). + Todas as moedas alemãs carregam uma das cinco marcas de cunhagem + diferentes que representam a cidade em que foram cunhadas. Eles são: + Berlim (A), Munique (D), Stuttgart (F), Karlsruhe (G) e Hamburgo (J). </p> </section> <br /> @@ -40,9 +40,10 @@ <!-- IF-FI --> <section> <p> - There is an error that exists for €2 coins minted in 1999 where the - holes in one, two, or even three of the 9’s are filled. The number of - 9’s filled is displayed with a fraction (e.g. 2/3 for two 9’s filled). + Existe um erro nas moedas de 2 € cunhadas em 1999, onde os + buracos em um, dois ou até três dos 9s são preenchidos. O número de + 9s preenchidos é exibido com uma fração (por exemplo, 2/3 para dois 9s + preenchidos). </p> </section> <br /> @@ -50,10 +51,11 @@ <!-- IF-GR --> <section> <p> - As a result of a late joining to the Eurozone, Greece was assisted by - the countries of France, Spain, and Finland to mint coins for 2002. - For this reason all 2002 coins have two varieties — one with a - mintmark in the star (‘F’, ‘E’, and ‘S’) and one without. + Como resultado de uma adesão tardia na à zona do euro, a Grécia foi + auxiliada pelos países da França, Espanha e Finlândia para cunhar + moedas para 2002. Por esta razão, todas as moedas de 2002 têm duas + variedades — uma com uma marca de cunhagem na estrela (‘F’, ‘E’ e ‘S’) + e um sem. </p> </section> <br /> @@ -61,10 +63,10 @@ <!-- IF-LU --> <section> <p> - For the years 2020–2021 Luxembourg released certain commemorative - coins in both a “classic” and “photo” variety. Any years labeled with - ‘P’ are of the “photo” variety while years without a label are of the - standard “classic” variety. + Para os anos de 2020–2021, Luxemburgo lançou certas moedas + comemorativas com uma variedade “clássica” e “foto”. Todos os anos com + o sufixo ‘P’ são da variedade “foto”, enquanto os anos sem rótulo são + da variedade “clássica”. </p> </section> <br /> @@ -72,11 +74,12 @@ <!-- IF-MT --> <section> <p> - Many Maltese commemoratives have different mintmarks depending on in - they were intended for circulation, coincards, or sets. Any years - listed on this page suffixed with “MdP” bear the mintmark of the - Monnaie de Paris (Paris Mint), while years suffixed with “KNM” bear - the mintmark of the Koninklijke Nederlandse Munt (Royal Dutch Mint). + Muitos comemorativos malteses têm marcas de cunhagem diferentes, + dependendo de como foram destinados à circulação, coincards ou + conjuntos. Todos os anos listados nesta página com o sufixo “MdP” + trazem a marca da moeda da Monnaie de Paris (Casa da Moeda de Paris), + enquanto os anos com o sufixo “KNM” levam a marca da moeda da + Koninklijke Nederlandse Munt (Casa da Moeda Real Holandesa). </p> </section> <br /> @@ -84,9 +87,9 @@ <!-- IF-NL --> <section> <p> - Besides just the standard €2 commemorative releases, the Koninklijke - Nederlandse Munt (Royal Dutch Mint) also sells NIFC €5 commemorative - coins; these coins are suffixed with “€5”. + Além dos lançamentos comemorativos de 2 €, o Koninklijke + Nederlandse Munt (Casa da Moeda Real Holandesa) também vende moedas + comemorativas NIFC de 5 €; estas moedas têm o sufixo “€5”. </p> </section> <br /> @@ -97,25 +100,25 @@ <table class=coin-table cellspacing=0> <thead> <tr> - <th colspan=8>Standard Issues</th> + <th colspan=8>Edições Regulares</th> </tr> <tr class=mobile> - <th>1c</th> - <th>2c</th> - <th>5c</th> - <th>10c</th> - <th>20c</th> - <th>50c</th> + <th>1ct</th> + <th>2ct</th> + <th>5ct</th> + <th>10ct</th> + <th>20ct</th> + <th>50ct</th> <th>€1</th> <th>€2</th> </tr> <tr class=not-mobile> - <th>1 Cent</th> - <th>2 Cent</th> - <th>5 Cent</th> - <th>10 Cent</th> - <th>20 Cent</th> - <th>50 Cent</th> + <th>1 Cts.</th> + <th>2 Cts.</th> + <th>5 Cts.</th> + <th>10 Cts.</th> + <th>20 Cts.</th> + <th>50 Cts.</th> <th>1 Euro</th> <th>2 Euro</th> </tr> @@ -133,11 +136,11 @@ <table class="coin-table commemorative-table" cellspacing=0> <thead> <tr> - <th colspan=7>Commemorative Issues</th> + <th colspan=7>Edições Comemorativas</th> </tr> <tr> - <th>Year</th> - <th colspan=6>Commemorated Topics</th> + <th>Ano</th> + <th colspan=6>Tópicos Comemorados</th> </tr> </thead> <tbody> diff --git a/src/pt/footer.html b/src/pt/footer.html index ca42706..c6351c6 100644 --- a/src/pt/footer.html +++ b/src/pt/footer.html @@ -1,3 +1,3 @@ <p class=right-align> - Found a mistake or a bad translation? <a href=#>Contact me!</a> + Encontrou um erro ou uma tradução ruim? <a href=#>Contate-me!</a> </p> |