diff options
author | Thomas Voss <mail@thomasvoss.com> | 2025-08-10 20:23:22 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2025-08-10 20:23:22 +0200 |
commit | 3bbb659980b4160055df03355d7a933ba211d0df (patch) | |
tree | c00625c5b69db77a3dec771f07871b030bfec5ae /src | |
parent | 2ebbe2e33234c25dc03c24a5f95c84fa3f52bcdf (diff) |
Add country name translations
Diffstat (limited to 'src')
-rw-r--r-- | src/euro/index.ccoins.gsp | 9 | ||||
-rw-r--r-- | src/style.css | 7 | ||||
-rw-r--r-- | src/world/coins/br/index.gsp | 7 | ||||
-rw-r--r-- | src/world/coins/us/index.gsp | 2 | ||||
-rw-r--r-- | src/world/notes/ez/index.gsp | 4 |
5 files changed, 19 insertions, 10 deletions
diff --git a/src/euro/index.ccoins.gsp b/src/euro/index.ccoins.gsp index ae16426..4f1392b 100644 --- a/src/euro/index.ccoins.gsp +++ b/src/euro/index.ccoins.gsp @@ -15,10 +15,9 @@ html lang="en" { main { section { header { - h1 {-__demonym Euro Coins} - h3 { - span {-__altnames} - span {-__percentage} + h1 {= + __name + __tr(__altnames) } } } @@ -150,4 +149,4 @@ html lang="en" { section { __include(foot.gsp) } } } -} +}
\ No newline at end of file diff --git a/src/style.css b/src/style.css index e5df586..c72908b 100644 --- a/src/style.css +++ b/src/style.css @@ -222,8 +222,11 @@ nav ul > * { } header h1 { + display: flex; + flex-direction: column; font-size: 1.5rem; margin-bottom: 0; + line-height: 1.1; } header h3 { @@ -887,3 +890,7 @@ div .country-table:not(:first-child) { flex-direction: column; align-items: center; } + +.translation { + opacity: 50%; +}
\ No newline at end of file diff --git a/src/world/coins/br/index.gsp b/src/world/coins/br/index.gsp index 0045ff3..2e9950b 100644 --- a/src/world/coins/br/index.gsp +++ b/src/world/coins/br/index.gsp @@ -13,7 +13,10 @@ html lang="en" { main { section { header { - h1 {-Brazilian Coins} + h1 {= + Brazil + @span lang="pt" .translation {-Brasil} + } } } @@ -80,4 +83,4 @@ html lang="en" { section { __include(foot.gsp) } } } -} +}
\ No newline at end of file diff --git a/src/world/coins/us/index.gsp b/src/world/coins/us/index.gsp index 62de70b..6d27e25 100644 --- a/src/world/coins/us/index.gsp +++ b/src/world/coins/us/index.gsp @@ -13,7 +13,7 @@ html lang="en" { main { section { header { - h1 {-American Coins} + h1 {-United States of America} } } diff --git a/src/world/notes/ez/index.gsp b/src/world/notes/ez/index.gsp index c62db8c..5139cad 100644 --- a/src/world/notes/ez/index.gsp +++ b/src/world/notes/ez/index.gsp @@ -13,7 +13,7 @@ html lang="en" { main { section { header { - h1 {-Eurozone Banknotes} + h1 {-Eurozone} } } @@ -57,4 +57,4 @@ html lang="en" { section { __include(foot.gsp) } } } -} +}
\ No newline at end of file |