l10n: update attribution text and style

New text is easier to localize, strings can be found in free dictionaries
This commit is contained in:
xenticore
2025-04-30 19:15:38 -04:00
parent 19fe1c70a4
commit c8f71b4f47
24 changed files with 28 additions and 26 deletions

View File

@@ -403,10 +403,12 @@ async function inject() {
const label = document.createElement("td");
label.colSpan = 2;
label.style.fontSize = "85%";
label.style.textAlign = "center";
const updateText = $T("Updated %@.", locale).replace('%@', updateTime.toLocaleString(locale, { year: 'numeric', month: 'long', day: 'numeric', hour: '2-digit', minute: '2-digit', timeZoneName: 'short' }))
const attributionText = $T("Trade prices sourced from %@. Currency conversions are approximate.", locale).replace('%@', '<a rel="nofollow" class="external text" href="https://prices.tf">prices.tf</a>');
const exchangeRateAttribution = `<a rel="nofollow" class="external text" href="https://www.exchangerate-api.com">Rates By Exchange Rate API</a>.`;
label.innerHTML = `${updateText}<br>${attributionText}<br>${exchangeRateAttribution}`;
const attributionHeader = $T("Acknowledgements");
const pricesAttribution = `<a rel="nofollow" class="external text" href="https://prices.tf">prices.tf</a>`;
const exchangeRateAttribution = `<a rel="nofollow" class="external text" href="https://www.exchangerate-api.com">Rates By Exchange Rate API</a>`;
label.innerHTML = `${updateText}<br><b>${attributionHeader}</b><br>${pricesAttribution}<br>${exchangeRateAttribution}`;
row.appendChild(label);
priceProgressRow.insertAdjacentElement('afterend', row);

View File

@@ -6,7 +6,7 @@ module.exports = {
"Community Pricing": "Community Pricing",
// Itembox footer
"Updated %@.": "Updated %@.", // %@ is a date string, sourced from AppleGlot
"Trade prices sourced from %@. Currency conversions are approximate.": "Trade prices sourced from %@. Currency conversions are approximate.", // %@ is always a URL, (eg. prices.tf)
"Acknowledgements": "Acknowledgements", // sourced from AppleGlot
// Price strings
"Data unavailable": "Data unavailable", // sourced from AppleGlot

View File

@@ -6,7 +6,7 @@ module.exports = {
"Community Pricing": "Community Pricing",
// Itembox footer
"Updated %@.": "Updated %@.", // %@ is a date string, sourced from AppleGlot
"Trade prices sourced from %@. Currency conversions are approximate.": "Trade prices sourced from %@. Currency conversions are approximate.", // %@ is always a URL, (eg. prices.tf)
"Acknowledgements": "Acknowledgements", // sourced from AppleGlot
// Price strings
"Data unavailable": "Data unavailable", // sourced from AppleGlot

View File

@@ -6,7 +6,7 @@ module.exports = {
"Community Pricing": "Community Pricing",
// Itembox footer
"Updated %@.": "Updated %@.", // %@ is a date string, sourced from AppleGlot
"Trade prices sourced from %@. Currency conversions are approximate.": "Trade prices sourced from %@. Currency conversions are approximate.", // %@ is always a URL, (eg. prices.tf)
"Acknowledgements": "Acknowledgements", // sourced from AppleGlot
// Price strings
"Data unavailable": "Data unavailable", // sourced from AppleGlot

View File

@@ -6,7 +6,7 @@ module.exports = {
"Community Pricing": "Community Pricing",
// Itembox footer
"Updated %@.": "Updated %@.", // %@ is a date string, sourced from AppleGlot
"Trade prices sourced from %@. Currency conversions are approximate.": "Trade prices sourced from %@. Currency conversions are approximate.", // %@ is always a URL, (eg. prices.tf)
"Acknowledgements": "Acknowledgements", // sourced from AppleGlot
// Price strings
"Data unavailable": "Data unavailable", // sourced from AppleGlot

View File

@@ -6,7 +6,7 @@ module.exports = {
"Community Pricing": "Community Pricing",
// Itembox footer
"Updated %@.": "Updated %@.", // %@ is a date string, sourced from AppleGlot
"Trade prices sourced from %@. Currency conversions are approximate.": "Trade prices sourced from %@. Currency conversions are approximate.", // %@ is always a URL, (eg. prices.tf)
"Acknowledgements": "Acknowledgements", // sourced from AppleGlot
// Price strings
"Data unavailable": "Data unavailable", // sourced from AppleGlot

View File

@@ -6,7 +6,7 @@ module.exports = {
"Community Pricing": "Precios de la comunidad",
// Itembox footer
"Updated %@.": "Actualizado %@.", // %@ is a date string, sourced from AppleGlot
"Trade prices sourced from %@. Currency conversions are approximate.": "Precios comerciales obtenidos de %@. Las conversiones de divisas son aproximadas.", // %@ is always a URL, (eg. prices.tf)
"Acknowledgements": "Agradecimientos", // sourced from AppleGlot
// Price strings
"Data unavailable": "Datos no disponibles", // sourced from AppleGlot

View File

@@ -6,7 +6,7 @@ module.exports = {
"Community Pricing": "Community Pricing",
// Itembox footer
"Updated %@.": "Updated %@.", // %@ is a date string, sourced from AppleGlot
"Trade prices sourced from %@. Currency conversions are approximate.": "Trade prices sourced from %@. Currency conversions are approximate.", // %@ is always a URL, (eg. prices.tf)
"Acknowledgements": "Acknowledgements", // sourced from AppleGlot
// Price strings
"Data unavailable": "Data unavailable", // sourced from AppleGlot

View File

@@ -6,7 +6,7 @@ module.exports = {
"Community Pricing": "Community Pricing",
// Itembox footer
"Updated %@.": "Updated %@.", // %@ is a date string, sourced from AppleGlot
"Trade prices sourced from %@. Currency conversions are approximate.": "Trade prices sourced from %@. Currency conversions are approximate.", // %@ is always a URL, (eg. prices.tf)
"Acknowledgements": "Acknowledgements", // sourced from AppleGlot
// Price strings
"Data unavailable": "Data unavailable", // sourced from AppleGlot

View File

@@ -6,7 +6,7 @@ module.exports = {
"Community Pricing": "Community Pricing",
// Itembox footer
"Updated %@.": "Updated %@.", // %@ is a date string, sourced from AppleGlot
"Trade prices sourced from %@. Currency conversions are approximate.": "Trade prices sourced from %@. Currency conversions are approximate.", // %@ is always a URL, (eg. prices.tf)
"Acknowledgements": "Acknowledgements", // sourced from AppleGlot
// Price strings
"Data unavailable": "Data unavailable", // sourced from AppleGlot

View File

@@ -6,7 +6,7 @@ module.exports = {
"Community Pricing": "Prezzo Comunitario",
// Itembox footer
"Updated %@.": "Aggiornato il %@.",
"Trade prices sourced from %@. Currency conversions are approximate.": "Prezzi commerciali forniti da %@. Le conversioni valutarie sono approssimative.", // %@ is always a URL, (eg. prices.tf)
"Acknowledgements": "Note legali", // sourced from AppleGlot
// Price strings
"Data unavailable": "Data unavailable", // sourced from AppleGlot

View File

@@ -6,7 +6,7 @@ module.exports = {
"Community Pricing": "共同体価格",
// Itembox footer
"Updated %@.": "アップデート: %@。", // %@ is a date string, sourced from AppleGlot
"Trade prices sourced from %@. Currency conversions are approximate.": "Trade prices sourced from %@. Currency conversions are approximate.", // %@ is always a URL, (eg. prices.tf)
"Acknowledgements": "謝辞", // sourced from AppleGlot
// Price strings
"Data unavailable": "データがありません", // sourced from AppleGlot

View File

@@ -6,7 +6,7 @@ module.exports = {
"Community Pricing": "Community Pricing",
// Itembox footer
"Updated %@.": "Updated %@.", // %@ is a date string, sourced from AppleGlot
"Trade prices sourced from %@. Currency conversions are approximate.": "Trade prices sourced from %@. Currency conversions are approximate.", // %@ is always a URL, (eg. prices.tf)
"Acknowledgements": "Acknowledgements", // sourced from AppleGlot
// Price strings
"Data unavailable": "Data unavailable", // sourced from AppleGlot

View File

@@ -6,7 +6,7 @@ module.exports = {
"Community Pricing": "Community Pricing",
// Itembox footer
"Updated %@.": "Updated %@.", // %@ is a date string, sourced from AppleGlot
"Trade prices sourced from %@. Currency conversions are approximate.": "Trade prices sourced from %@. Currency conversions are approximate.", // %@ is always a URL, (eg. prices.tf)
"Acknowledgements": "Acknowledgements", // sourced from AppleGlot
// Price strings
"Data unavailable": "Data unavailable", // sourced from AppleGlot

View File

@@ -6,7 +6,7 @@ module.exports = {
"Community Pricing": "Community Pricing",
// Itembox footer
"Updated %@.": "Updated %@.", // %@ is a date string, sourced from AppleGlot
"Trade prices sourced from %@. Currency conversions are approximate.": "Trade prices sourced from %@. Currency conversions are approximate.", // %@ is always a URL, (eg. prices.tf)
"Acknowledgements": "Acknowledgements", // sourced from AppleGlot
// Price strings
"Data unavailable": "Data unavailable", // sourced from AppleGlot

View File

@@ -6,7 +6,7 @@ module.exports = {
"Community Pricing": "Community Pricing",
// Itembox footer
"Updated %@.": "Updated %@.", // %@ is a date string, sourced from AppleGlot
"Trade prices sourced from %@. Currency conversions are approximate.": "Trade prices sourced from %@. Currency conversions are approximate.", // %@ is always a URL, (eg. prices.tf)
"Acknowledgements": "Acknowledgements", // sourced from AppleGlot
// Price strings
"Data unavailable": "Data unavailable", // sourced from AppleGlot

View File

@@ -6,7 +6,7 @@ module.exports = {
"Community Pricing": "Community Pricing",
// Itembox footer
"Updated %@.": "Updated %@.", // %@ is a date string, sourced from AppleGlot
"Trade prices sourced from %@. Currency conversions are approximate.": "Trade prices sourced from %@. Currency conversions are approximate.", // %@ is always a URL, (eg. prices.tf)
"Acknowledgements": "Acknowledgements", // sourced from AppleGlot
// Price strings
"Data unavailable": "Data unavailable", // sourced from AppleGlot

View File

@@ -6,7 +6,7 @@ module.exports = {
"Community Pricing": "Community Pricing",
// Itembox footer
"Updated %@.": "Updated %@.", // %@ is a date string, sourced from AppleGlot
"Trade prices sourced from %@. Currency conversions are approximate.": "Trade prices sourced from %@. Currency conversions are approximate.", // %@ is always a URL, (eg. prices.tf)
"Acknowledgements": "Acknowledgements", // sourced from AppleGlot
// Price strings
"Data unavailable": "Data unavailable", // sourced from AppleGlot

View File

@@ -6,7 +6,7 @@ module.exports = {
"Community Pricing": "Community Pricing",
// Itembox footer
"Updated %@.": "Updated %@.", // %@ is a date string, sourced from AppleGlot
"Trade prices sourced from %@. Currency conversions are approximate.": "Trade prices sourced from %@. Currency conversions are approximate.", // %@ is always a URL, (eg. prices.tf)
"Acknowledgements": "Acknowledgements", // sourced from AppleGlot
// Price strings
"Data unavailable": "Data unavailable", // sourced from AppleGlot

View File

@@ -6,7 +6,7 @@ module.exports = {
"Community Pricing": "Цены сообщества",
// Itembox footer
"Updated %@.": "Обновлено %@.", // %@ is a date string, sourced from AppleGlot
"Trade prices sourced from %@. Currency conversions are approximate.": "Цены на торговлю взяты с %@. Конвертация валюты приблизительна.", // %@ is always a URL, (eg. prices.tf)
"Acknowledgements": "Уведомления", // sourced from AppleGlot
// Price strings
"Data unavailable": "Данные недоступны", // sourced from AppleGlot

View File

@@ -6,7 +6,7 @@ module.exports = {
"Community Pricing": "Community Pricing",
// Itembox footer
"Updated %@.": "Updated %@.", // %@ is a date string, sourced from AppleGlot
"Trade prices sourced from %@. Currency conversions are approximate.": "Trade prices sourced from %@. Currency conversions are approximate.", // %@ is always a URL, (eg. prices.tf)
"Acknowledgements": "Acknowledgements", // sourced from AppleGlot
// Price strings
"Data unavailable": "Data unavailable", // sourced from AppleGlot

View File

@@ -6,7 +6,7 @@ module.exports = {
"Community Pricing": "Community Pricing",
// Itembox footer
"Updated %@.": "Updated %@.", // %@ is a date string, sourced from AppleGlot
"Trade prices sourced from %@. Currency conversions are approximate.": "Trade prices sourced from %@. Currency conversions are approximate.", // %@ is always a URL, (eg. prices.tf)
"Acknowledgements": "Acknowledgements", // sourced from AppleGlot
// Price strings
"Data unavailable": "Data unavailable", // sourced from AppleGlot

View File

@@ -6,7 +6,7 @@ module.exports = {
"Community Pricing": "Community Pricing",
// Itembox footer
"Updated %@.": "Updated %@.", // %@ is a date string, sourced from AppleGlot
"Trade prices sourced from %@. Currency conversions are approximate.": "Trade prices sourced from %@. Currency conversions are approximate.", // %@ is always a URL, (eg. prices.tf)
"Acknowledgements": "Acknowledgements", // sourced from AppleGlot
// Price strings
"Data unavailable": "Data unavailable", // sourced from AppleGlot

View File

@@ -6,7 +6,7 @@ module.exports = {
"Community Pricing": "Community Pricing",
// Itembox footer
"Updated %@.": "Updated %@.", // %@ is a date string, sourced from AppleGlot
"Trade prices sourced from %@. Currency conversions are approximate.": "Trade prices sourced from %@. Currency conversions are approximate.", // %@ is always a URL, (eg. prices.tf)
"Acknowledgements": "Acknowledgements", // sourced from AppleGlot
// Price strings
"Data unavailable": "Data unavailable", // sourced from AppleGlot