diff options
author | Thomas Voss <mail@thomasvoss.com> | 2025-07-23 20:01:32 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2025-07-23 20:01:32 +0200 |
commit | 1593a094e1e9cf3006a084883539533856e1b535 (patch) | |
tree | 493e016c3d07f8428bc1d8a7ffb4b69190f8816d /src/templates | |
parent | 5f1bd49cfef5852bbd539754fb31e8adada29ef3 (diff) |
Use a semi-in-house translation system
Diffstat (limited to 'src/templates')
-rw-r--r-- | src/templates/-404.html.tmpl | 12 | ||||
-rw-r--r-- | src/templates/-base.html.tmpl | 10 | ||||
-rw-r--r-- | src/templates/-error.html.tmpl | 16 | ||||
-rw-r--r-- | src/templates/-navbar.html.tmpl | 18 | ||||
-rw-r--r-- | src/templates/about.html.tmpl | 48 | ||||
-rw-r--r-- | src/templates/banknotes-codes.html.tmpl | 239 | ||||
-rw-r--r-- | src/templates/index.html.tmpl | 20 |
7 files changed, 149 insertions, 214 deletions
diff --git a/src/templates/-404.html.tmpl b/src/templates/-404.html.tmpl index c86dc30..06ac02b 100644 --- a/src/templates/-404.html.tmpl +++ b/src/templates/-404.html.tmpl @@ -1,16 +1,12 @@ {{ define "content" }} <header> {{ template "navbar" . }} - <h1>{{ .T "Page Not Found" }}</h1> + <h1>{{ .Get "Page Not Found" }}</h1> </header> <main> <p> - {{ .T ` - The page you were looking for does not exist. If you believe this - is a mistake then don’t hesitate to contact @onetruemangoman on - Discord or email us at %s.` - `<a href="mailto:mail@euro-cash.eu">mail@euro-cash.eu</a>` | safe - }} + {{ .Get "The page you were looking for does not exist. If you believe this is a mistake then don’t hesitate to contact ‘@onetruemangoman’ on Discord or email us at %(Email:e)." + (map "Email" "mail@euro-cash.eu") }} </p> </main> -{{ end }} +{{ end }}
\ No newline at end of file diff --git a/src/templates/-base.html.tmpl b/src/templates/-base.html.tmpl index 2a33cc3..388561b 100644 --- a/src/templates/-base.html.tmpl +++ b/src/templates/-base.html.tmpl @@ -1,10 +1,10 @@ <!DOCTYPE html> -<html lang={{ .Printer.Locale.Bcp }}> +<html lang={{ .Printer.Bcp }}> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link href="/style.min.css" type="text/css" rel="stylesheet"> - <title>{{ .T "Euro Cash" }}</title> + <title>{{ .Get "Euro Cash" }}</title> <script type="text/javascript"> const $ = q => document.querySelector(q); const $$ = q => document.querySelectorAll(q); @@ -33,10 +33,10 @@ <footer> <p> <small> - {{ .T "Found a mistake or want to contribute missing information?" }} - <a href="/about">{{ .T "Feel free to contact us!" }}</a> + {{ .Get "Found a mistake or want to contribute missing information?" }} + <a href="/about">{{ .Get "Feel free to contact us!" }}</a> </small> </p> </footer> </body> -</html> +</html>
\ No newline at end of file diff --git a/src/templates/-error.html.tmpl b/src/templates/-error.html.tmpl index 47bff81..5b8258b 100644 --- a/src/templates/-error.html.tmpl +++ b/src/templates/-error.html.tmpl @@ -5,19 +5,11 @@ </header> <main> <p> - {{ .T ` - If you’re seeing this page, it means that something went wrong on - our end that we need to fix. Our team has been notified of this - error, and we apologise for the inconvenience. - ` }} + {{ .Get "If you’re seeing this page, it means that something went wrong on our end that we need to fix. Our team has been notified of this error, and we apologise for the inconvenience." }} </p> <p> - {{ .T ` - If this issue persists, don’t hesitate to contact @onetruemangoman - on Discord or to email us at %s.` - `<a href="https://git.thomasvoss.com/www.euro-cash.eu" - target="_blank">` | safe - }} + {{ .Get "If this issue persists, don’t hesitate to contact ‘@onetruemangoman’ on Discord or to email us at %(Email:e)" + (map "Email" "mail@euro-cash.eu") }} </p> </main> -{{ end }} +{{ end }}
\ No newline at end of file diff --git a/src/templates/-navbar.html.tmpl b/src/templates/-navbar.html.tmpl index f1e95e9..442de5b 100644 --- a/src/templates/-navbar.html.tmpl +++ b/src/templates/-navbar.html.tmpl @@ -1,20 +1,20 @@ {{ define "navbar" }} <nav> <menu> - <li><a href="/">{{ .T "Home" }}</a></li> - <li><a href="#TODO">{{ .T "News" }}</a></li> - <li><a href="/collecting">{{ .T "Coin Collecting" }}</a></li> - <li><a href="/coins">{{ .T "Coins" }}</a></li> - <li><a href="/banknotes">{{ .T "Banknotes" }}</a></li> - <li><a href="/jargon">{{ .T "Jargon" }}</a></li> + <li><a href="/">{{ .Get "Home" }}</a></li> + <li><a href="#TODO">{{ .Get "News" }}</a></li> + <li><a href="/collecting">{{ .Get "Coin Collecting" }}</a></li> + <li><a href="/coins">{{ .Get "Coins" }}</a></li> + <li><a href="/banknotes">{{ .Get "Banknotes" }}</a></li> + <li><a href="/jargon">{{ .Get "Jargon" }}</a></li> </menu> <menu> <li> <a href="https://discord.gg/DCaXfRcy9C" target="_blank"> - {{ .T "Discord" }} + {{ .Get "Discord" }} </a> </li> - <li><a href="/about">{{ .T "About" }}</a></li> + <li><a href="/about">{{ .Get "About" }}</a></li> <li id="nav-icon-lang"> <a href="/language"> <svg @@ -55,7 +55,7 @@ <path d="M 17.0 5.0 H 2.0" stroke-linejoin="round"></path> <path d="M 17.0 14.0 H 2.0" stroke-linejoin="round"></path> </svg> - {{ .T "Language" }} + {{ .Get "Language" }} </a> </li> <li id="nav-icon-theme"> diff --git a/src/templates/about.html.tmpl b/src/templates/about.html.tmpl index ba5aaaa..b7b9026 100644 --- a/src/templates/about.html.tmpl +++ b/src/templates/about.html.tmpl @@ -1,43 +1,27 @@ {{ define "content" }} <header> {{ template "navbar" . }} - <h1>{{ .T "About Us" }}</h1> + <h1>{{ .Get "About Us" }}</h1> </header> <main> - <h2>{{ .T "Open Source" }}</h2> + <h2>{{ .Get "Open Source" }}</h2> <p> - {{ .T ` - This website is an open project, and a collaboration between - developers, translators, and researchers. All source code, data, - images, and more for the website are open source and can be found - %shere%s. This site is licensed under the BSD 0-Clause license - giving you the full freedom to do whatever you would like with - anyof the content on this site.` - `<a href="https://git.thomasvoss.com/www.euro-cash.eu" - target="_blank">` - `</a>` | safe - }} + {{ .Get "This website is an open project, and a collaboration between developers, translators, and researchers. All source code, data, images, and more for the website are open source and can be found %(LinkGit:L)here%(-:E). This site is licensed under the %(LinkBSD:L)BSD Zero Clause License%(-:E) giving you the full freedom to do whatever you would like with any of the content on this site." + (map "LinkGit" "https://git.thomasvoss.com/www.euro-cash.eu" + "LinkBSD" "https://opensource.org/license/0bsd") }} </p> - <h2>{{ .T "Contact Us" }}</h2> + <h2>{{ .Get "Contact Us" }}</h2> <p> - {{ .T ` - While we try to stay as up-to-date as possible and to fact check - our information, it is always possible that we get something wrong, - lack a translation, or are missing some piece of data you may - have. In such a case don’t hesitate to contact us; we’ll try to get - the site updated or fixed as soon as possible. You are always free - to contribute via a git patch if you are more technically included, - but if not you can always send an email to %s or contact - ‘@onetruemangoman’ on Discord.` - `<a href="mailto:mail@euro-cash.eu">mail@euro-cash.eu</a>` | safe - }} + {{ .Get "While we try to stay as up-to-date as possible and to fact check our information, it is always possible that we get something wrong, lack a translation, or are missing some piece of data you may have. Should that be the case, don’t hesitate to contact us; we’ll try to get the site updated or fixed as soon as possible. You are always free to contribute via a git patch if you are more technically inclined, but if not you can always send an email to %(Email:e) or contact ‘@onetruemangoman’ on Discord." + (map "Email" "mail@euro-cash.eu") }} </p> - <h2>{{ .T "Special Thanks" }}</h2> + <h2>{{ .Get "Special Thanks" }}</h2> <table> <thead> - <th scope="col">{{ .T "Development" }}</th> - <th scope="col">{{ .T "Research" }}</th> - <th scope="col">{{ .T "Translations" }}</th> + {{/* TRANSLATORS: As in ‘Development of the site’ */}} + <th scope="col">{{ .Get "Development" }}</th> + <th scope="col">{{ .Get "Research" }}</th> + <th scope="col">{{ .Get "Translations" }}</th> </thead> <tbody> <tr> @@ -51,11 +35,11 @@ Storm Sørensen </td> <td> - <span data-tooltip={{ .T "British- & American English" }}>Thomas Voss</span>, - <span data-tooltip={{ .T "Icelandic" }}>Védís Indriðadóttir</span> + <span data-tooltip={{ .Get "British- & American English" }}>Thomas Voss</span>, + <span data-tooltip={{ .Get "Icelandic" }}>Védís Indriðadóttir</span> </td> </tr> </tbody> </table> </main> -{{ end }} +{{ end }}
\ No newline at end of file diff --git a/src/templates/banknotes-codes.html.tmpl b/src/templates/banknotes-codes.html.tmpl index f7aea7f..5e4eb47 100644 --- a/src/templates/banknotes-codes.html.tmpl +++ b/src/templates/banknotes-codes.html.tmpl @@ -1,44 +1,25 @@ {{ define "content" }} <header> {{ template "navbar" . }} - <h1>{{ .T "Location Codes" }}</h1> + <h1>{{ .Get "Location Codes" }}</h1> </header> <main> <p> - {{ .T ` - Euro banknotes have two codes on them: a printer code and a serial - number. The printer code tells you where a given note was printed, - while the serial number tells you which country issues the banknote - (for the 2002 series) or where the banknote was printed (for the - Europa series). - ` }} + {{ .Get "Euro banknotes have two codes on them: a printer code and a serial number. The printer code tells you where a given note was printed, while the serial number tells you which country issued the banknote (for the 2002 series) or where the banknote was printed (for the Europa series)." }} </p> - <h2>{{ .T "Printer Code" }}</h2> + <h2>{{ .Get "Printer Code" }}</h2> <p> - {{ .T ` - The printer code (not to be confused with the serial number) is a - small code printed on banknotes with information about where the - banknote was printed. All printer codes take the form of ‘X000X0’ - — or in other words — a letter followed by 3 numbers, a letter - and a final number. - ` }} + {{ .Get "The printer code (not to be confused with the serial number) is a small code printed on banknotes with information about where the banknote was printed. All printer codes have the form ‘X000X0’ — or in other words — a letter followed by 3 numbers, a letter and a final number." }} </p> <p> - {{ .T ` - The printer code can be a bit tricky to find. The following - dropdowns will show you where to find the printer code on each - note. - ` }} + {{ .Get "The printer code can be a bit tricky to find. The following dropdown menus will show you where to find the printer code on each note." }} </p> <details> - <summary>{{ .T "2002 Series Printer Codes" }}</summary> + <summary>{{ .Get "2002 Series Printer Codes" }}</summary> <p> - {{ .T ` - All these images are taken from %seurobilltracker.com%s.` - `<a href="https://eurobilltracker.com" target="_blank">` - `</a>` | safe - }} + {{ .Get "All these images are taken from %(Link:r)." + (map "Link" `<a href="https://eurobilltracker.com" target="_blank">eurobilltracker.com</a>`) }} </p> {{ template "banknotes/codes/code-pos" (tuple .Printer 5 "2002") }} {{ template "banknotes/codes/code-pos" (tuple .Printer 10 "2002") }} @@ -49,7 +30,7 @@ {{ template "banknotes/codes/code-pos" (tuple .Printer 500 "2002") }} </details> <details> - <summary>{{ .T "Europa Series Printer Codes" }}</summary> + <summary>{{ .Get "Europa Series Printer Codes" }}</summary> {{ template "banknotes/codes/code-pos" (tuple .Printer 5 "europa") }} {{ template "banknotes/codes/code-pos" (tuple .Printer 10 "europa") }} {{ template "banknotes/codes/code-pos" (tuple .Printer 20 "europa") }} @@ -59,281 +40,264 @@ </details> <p> - {{ .T ` - The first letter in the printer code identifies the specific - printer at which the banknote was printed. The tables below will - tell you which letters correspond to which printers. The final - letter and number form a pair (such as ‘A2’ or ‘D6’). This pair - acts as a set of coordinates telling you where on the sheet of - paper the banknote was located. During printing, banknotes will be - printed multiple times on a large sheet of paper which is later cut - into smaller individual banknotes. A note with the pair ‘A1’ will - have been at the upper-left corner of the printing sheet, with ‘A2’ - to it’s right and ‘B1’ below it. - ` }} + {{ .Get "The first letter in the printer code identifies the specific printer at which the banknote was printed. The tables below will tell you which letters correspond to which printers. The final letter and number form a pair (such as ‘A2’ or ‘D6’) — this pair acts as a set of coordinates telling you where on the sheet of paper the banknote was located. During printing, banknotes are printed in a grid on a large sheet of paper which is then cut into individual banknotes. A note with the pair ‘A1’ will have been at the upper-left corner of the printing sheet, with ‘A2’ to its right and ‘B1’ below it." }} </p> - <h2>{{ .T "2002 Series" }}</h2> + <h2>{{ .Get "2002 Series" }}</h2> <p> - {{ .T ` - In the 2002 series, the first letter of the serial number can be - used to identify the country that issued the banknote. The - following table shows which countries map to which codes. - ` }} + {{ .Get "In the 2002 series, the first letter of the serial number can be used to identify the country that issued the banknote. The following table shows which countries map to which codes." }} </p> <table role="grid"> <thead> <tr> - <th>{{ .T "Code" }}</th> - <th>{{ .T "Country" }}</th> + <th>{{ .Get "Code" }}</th> + <th>{{ .Get "Country" }}</th> </tr> </thead> <tbody> <tr> <td>D</td> - <td>{{ .T "Estonia" }}</td> + <td>{{ .Get "Estonia" }}</td> </tr> <tr> <td>E</td> - <td>{{ .T "Slovakia" }}</td> + <td>{{ .Get "Slovakia" }}</td> </tr> <tr> <td>F</td> - <td>{{ .T "Malta" }}</td> + <td>{{ .Get "Malta" }}</td> </tr> <tr> <td>G</td> - <td>{{ .T "Cyprus" }}</td> + <td>{{ .Get "Cyprus" }}</td> </tr> <tr> <td>H</td> - <td>{{ .T "Slovenia" }}</td> + <td>{{ .Get "Slovenia" }}</td> </tr> <tr> <td>L</td> - <td>{{ .T "Finland" }}</td> + <td>{{ .Get "Finland" }}</td> </tr> <tr> <td>M</td> - <td>{{ .T "Portugal" }}</td> + <td>{{ .Get "Portugal" }}</td> </tr> <tr> <td>N</td> - <td>{{ .T "Austria" }}</td> + <td>{{ .Get "Austria" }}</td> </tr> <tr> <td>P</td> - <td>{{ .T "Netherlands" }}</td> + <td>{{ .Get "Netherlands" }}</td> </tr> <tr> <td>S</td> - <td>{{ .T "Italy" }}</td> + <td>{{ .Get "Italy" }}</td> </tr> <tr> <td>T</td> - <td>{{ .T "Ireland" }}</td> + <td>{{ .Get "Ireland" }}</td> </tr> <tr> <td>U</td> - <td>{{ .T "France" }}</td> + <td>{{ .Get "France" }}</td> </tr> <tr> <td>V</td> - <td>{{ .T "Spain" }}</td> + <td>{{ .Get "Spain" }}</td> </tr> <tr> <td>X</td> - <td>{{ .T "Germany" }}</td> + <td>{{ .Get "Germany" }}</td> </tr> <tr> <td>Y</td> - <td>{{ .T "Greece" }}</td> + <td>{{ .Get "Greece" }}</td> </tr> <tr> <td>Z</td> - <td>{{ .T "Belgium" }}</td> + <td>{{ .Get "Belgium" }}</td> </tr> </tbody> </table> <p> - {{ .T ` - The first letter of the printer code can also be used to identify - the specific printer at which the banknote was printed. The - printer- and country codes do not need to line up; a banknote - issued by a country will often be printed in another. - ` }} + {{ .Get "The first letter of the printer code can be used to identify the specific printer at which the banknote was printed. The printer- and country codes do not need to line up; a banknote issued by a country will often be printed in another." }} </p> <table role="grid"> <thead> <tr> - <th>{{ .T "Code" }}</th> - <th>{{ .T "Country" }}</th> - <th>{{ .T "Printer" }}</th> + <th>{{ .Get "Code" }}</th> + <th>{{ .Get "Country" }}</th> + <th>{{ .Get "Printer" }}</th> </tr> </thead> <tbody> <tr> <td>D</td> - <td>{{ .T "Finland" }}</td> + <td>{{ .Get "Finland" }}</td> <td>SETEC</td> </tr> <tr> <td>E</td> - <td>{{ .T "France" }}</td> + <td>{{ .Get "France" }}</td> <td>Oberthur</td> </tr> <tr> <td>F</td> - <td>{{ .T "Austria" }}</td> - <td>Österreichische Banknoten‐ und Sicherheitsdruck GmbH</td> + <td>{{ .Get "Austria" }}</td> + <td> + <span lang="de"> + Österreichische Banknoten- und Sicherheitsdruck GmbH + </span> + </td> </tr> <tr> <td>G</td> - <td>{{ .T "Netherlands" }}</td> - <td>Koninklijke Joh. Enschede</td> + <td>{{ .Get "Netherlands" }}</td> + <td><span lang="nl">Koninklijke Joh. Enschedé</span></td> </tr> <tr> <td>H</td> - <td>{{ .T "United Kingdom" }}</td> - <td>Thomas de la Rue</td> + <td>{{ .Get "United Kingdom" }}</td> + <td>De La Rue</td> </tr> <tr> <td>J</td> - <td>{{ .T "Italy" }}</td> - <td>Banca d’ Italia</td> + <td>{{ .Get "Italy" }}</td> + <td>{{ .Get "Bank of Italy" }}</td> </tr> <tr> <td>K</td> - <td>{{ .T "Ireland" }}</td> - <td>{{ .T "Central Bank of Ireland" }}</td> + <td>{{ .Get "Ireland" }}</td> + <td>{{ .Get "Central Bank of Ireland" }}</td> </tr> <tr> <td>L</td> - <td>{{ .T "France" }}</td> - <td>Banque de France</td> + <td>{{ .Get "France" }}</td> + <td>{{ .Get "Bank of France" }}</td> </tr> <tr> <td>M</td> - <td>{{ .T "Spain" }}</td> - <td>Fábrica Nacional de Moneda y Timbre</td> + <td>{{ .Get "Spain" }}</td> + <td>{{ .Get "Royal Mint of Spain" }}</td> </tr> <tr> <td>N</td> - <td>{{ .T "Greece" }}</td> - <td>{{ .T "Bank of Greece" }}</td> + <td>{{ .Get "Greece" }}</td> + <td>{{ .Get "Bank of Greece" }}</td> </tr> <tr> <td>P</td> - <td>{{ .T "Germany" }}</td> - <td>Giesecke & Devrient</td> + <td>{{ .Get "Germany" }}</td> + <td>Giesecke+Devrient GmbH</td> </tr> <tr> <td>R</td> - <td>{{ .T "Germany" }}</td> - <td>Bundesdruckerei Berlin</td> + <td>{{ .Get "Germany" }}</td> + <td><span lang="de">Bundesdruckerei GmbH</span></td> </tr> <tr> <td>T</td> - <td>{{ .T "Belgium" }}</td> - <td>{{ .T "National Bank of Belgium" }}</td> + <td>{{ .Get "Belgium" }}</td> + <td>{{ .Get "National Bank of Belgium" }}</td> </tr> <tr> <td>U</td> - <td>{{ .T "Portugal" }}</td> + <td>{{ .Get "Portugal" }}</td> <td>Valora S.A.</td> </tr> </tbody> </table> - <h2>{{ .T "Europa Series" }}</h2> + <h2>{{ .Get "Europa Series" }}</h2> <p> - {{ .T ` - In the Europa series the first letter of the serial number can be - used to identify the printer that printed the banknote, just like - the printer code. The following table shows which countries map to - which codes. - ` }} + {{ .Get "In the Europa series the first letter of the serial number can be used to identify the printer that printed the banknote, just like the printer code. The following table shows which countries map to which codes." }} </p> <table role="grid"> <thead> <tr> - <th>{{ .T "Code" }}</th> - <th>{{ .T "Country" }}</th> - <th>{{ .T "Printer" }}</th> + <th>{{ .Get "Code" }}</th> + <th>{{ .Get "Country" }}</th> + <th>{{ .Get "Printer" }}</th> </tr> </thead> <tr> <td>E</td> - <td>{{ .T "France" }}</td> + <td>{{ .Get "France" }}</td> <td>Oberthur</td> </tr> <tr> <td>F</td> - <td>{{ .T "Bulgaria" }}</td> + <td>{{ .Get "Bulgaria" }}</td> <td>Oberthur Fiduciaire AD</td> </tr> <tr> <td>M</td> - <td>{{ .T "Portugal" }}</td> + <td>{{ .Get "Portugal" }}</td> <td>Valora S.A.</td> </tr> <tr> <td>N</td> - <td>{{ .T "Austria" }}</td> - <td>Österreichische Banknoten‐ und Sicherheitsdruck GmbH</td> + <td>{{ .Get "Austria" }}</td> + <td> + <span lang="de"> + Österreichische Banknoten- und Sicherheitsdruck GmbH + </span> + </td> </tr> <tr> <td>P</td> - <td>{{ .T "Netherlands" }}</td> - <td>Koninklijke Joh. Enschedé</td> + <td>{{ .Get "Netherlands" }}</td> + <td><span lang="nl">Koninklijke Joh. Enschedé</span></td> </tr> <tr> <td>R</td> - <td>{{ .T "Germany" }}</td> - <td>Bundesdruckerei Berlin</td> + <td>{{ .Get "Germany" }}</td> + <td><span lang="de">Bundesdruckerei GmbH</span></td> </tr> <tr> <td>S</td> - <td>{{ .T "Italy" }}</td> - <td>Banca d’Italia</td> + <td>{{ .Get "Italy" }}</td> + <td>{{ .Get "Bank of Italy" }}</td> </tr> <tr> <td>T</td> - <td>{{ .T "Ireland" }}</td> - <td>{{ .T "Central Bank of Ireland" }}</td> + <td>{{ .Get "Ireland" }}</td> + <td>{{ .Get "Central Bank of Ireland" }}</td> </tr> <tr> <td>U</td> - <td>{{ .T "France" }}</td> - <td>Banque de France</td> + <td>{{ .Get "France" }}</td> + <td>{{ .Get "Bank of France" }}</td> </tr> <tr> <td>V</td> - <td>{{ .T "Spain" }}</td> - <td>Fábrica Nacional de Moneda y Timbre</td> + <td>{{ .Get "Spain" }}</td> + <td>{{ .Get "Royal Mint of Spain" }}</td> </tr> <tr> <td>W</td> - <td>{{ .T "Germany" }}</td> - <td>Giesecke & Devrient Leipzig</td> + <td>{{ .Get "Germany" }}</td> + <td>Giesecke+Devrient GmbH {{ .Get "Leipzig" }}</td> </tr> <tr> <td>X</td> - <td>{{ .T "Germany" }}</td> - <td>Giesecke & Devrient Munich</td> + <td>{{ .Get "Germany" }}</td> + <td>Giesecke+Devrient GmbH {{ .Get "Munich" }}</td> </tr> <tr> <td>Y</td> - <td>{{ .T "Greece" }}</td> - <td>{{ .T "Bank of Greece" }}</td> + <td>{{ .Get "Greece" }}</td> + <td>{{ .Get "Bank of Greece" }}</td> </tr> <tr> <td>Z</td> - <td>{{ .T "Belgium" }}</td> - <td>{{ .T "National Bank of Belgium" }}</td> + <td>{{ .Get "Belgium" }}</td> + <td>{{ .Get "National Bank of Belgium" }}</td> </tr> </table> </main> @@ -341,12 +305,15 @@ {{ define "banknotes/codes/code-pos" }} {{ $p := (index . 0) }} +{{ $d := (index . 1) }} +{{ $args := (map "N" $d) }} <details> - <summary>{{ $p.T "%d Euro" (index . 1) }}</summary> + {{/* TRANSLATORS: As in ‘5 Euro Banknote’ */}} + <summary>{{ $p.GetN "%(N) Euro" "%(N) Euro" $d $args }}</summary> <img class="big" - src={{ sprintf "/codes/%s-%03d.jpg" (index . 2) (index . 1) }} - alt={{ $p.T "Printer code on a %d euro bill" (index . 1) }} + src={{ sprintf "/codes/%s-%03d.jpg" (index . 2) $d }} + alt={{ $p.GetN "Printer code on a %(N) euro bill" "Printer code on a %(N) euro bill" $d $args }} > </details> {{ end }}
\ No newline at end of file diff --git a/src/templates/index.html.tmpl b/src/templates/index.html.tmpl index fafd0ee..da35043 100644 --- a/src/templates/index.html.tmpl +++ b/src/templates/index.html.tmpl @@ -2,23 +2,19 @@ <header> {{ template "navbar" . }} <hgroup> - <h1>{{ .T "The Euro Cash Compendium" }}</h1> + <h1>{{ .Get "The Euro Cash Wiki" }}</h1> <p> - {{ .T "United in" }} - <del>{{ .T "diversity" }}</del> - <ins>{{ .T "cash" }}</ins> + {{/* TRANSLATORS: Beginning of sentence, as in ‘United in …’ */}} + {{ .Get "United in" }} + <del>{{ .Get "diversity" }}</del> + <ins>{{ .Get "cash" }}</ins> </p> </hgroup> </header> <main> + <!-- TODO(2026): s/26/27/; Welcome Bulgaria! --> <p> - {{ .T ` - Welcome to the Euro Cash Compendium. This sites aims to be a - resource for you to discover everything there is to know about the - coins and banknotes of the Euro, a currency that spans 26 countries - and 350 million people. We also have dedicated sections of the site - for collectors. - ` }} + {{ .Get "Welcome to the Euro Cash Wiki! This sites aims to be a resource for you to discover everything there is to know about the coins and banknotes of the Euro, a currency that spans 26 countries and 350 million people. We also have dedicated sections of the site for collectors." }} </p> </main> -{{ end }} +{{ end }}
\ No newline at end of file |