You've already forked tf2wikipricing
l10n: update attribution text and style
New text is easier to localize, strings can be found in free dictionaries
This commit is contained in:
@@ -403,10 +403,12 @@ async function inject() {
|
|||||||
const label = document.createElement("td");
|
const label = document.createElement("td");
|
||||||
label.colSpan = 2;
|
label.colSpan = 2;
|
||||||
label.style.fontSize = "85%";
|
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 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 attributionHeader = $T("Acknowledgements");
|
||||||
const exchangeRateAttribution = `<a rel="nofollow" class="external text" href="https://www.exchangerate-api.com">Rates By Exchange Rate API</a>.`;
|
const pricesAttribution = `<a rel="nofollow" class="external text" href="https://prices.tf">prices.tf</a>`;
|
||||||
label.innerHTML = `${updateText}<br>${attributionText}<br>${exchangeRateAttribution}`;
|
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);
|
row.appendChild(label);
|
||||||
|
|
||||||
priceProgressRow.insertAdjacentElement('afterend', row);
|
priceProgressRow.insertAdjacentElement('afterend', row);
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ module.exports = {
|
|||||||
"Community Pricing": "Community Pricing",
|
"Community Pricing": "Community Pricing",
|
||||||
// Itembox footer
|
// Itembox footer
|
||||||
"Updated %@.": "Updated %@.", // %@ is a date string, sourced from AppleGlot
|
"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
|
// Price strings
|
||||||
"Data unavailable": "Data unavailable", // sourced from AppleGlot
|
"Data unavailable": "Data unavailable", // sourced from AppleGlot
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ module.exports = {
|
|||||||
"Community Pricing": "Community Pricing",
|
"Community Pricing": "Community Pricing",
|
||||||
// Itembox footer
|
// Itembox footer
|
||||||
"Updated %@.": "Updated %@.", // %@ is a date string, sourced from AppleGlot
|
"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
|
// Price strings
|
||||||
"Data unavailable": "Data unavailable", // sourced from AppleGlot
|
"Data unavailable": "Data unavailable", // sourced from AppleGlot
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ module.exports = {
|
|||||||
"Community Pricing": "Community Pricing",
|
"Community Pricing": "Community Pricing",
|
||||||
// Itembox footer
|
// Itembox footer
|
||||||
"Updated %@.": "Updated %@.", // %@ is a date string, sourced from AppleGlot
|
"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
|
// Price strings
|
||||||
"Data unavailable": "Data unavailable", // sourced from AppleGlot
|
"Data unavailable": "Data unavailable", // sourced from AppleGlot
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ module.exports = {
|
|||||||
"Community Pricing": "Community Pricing",
|
"Community Pricing": "Community Pricing",
|
||||||
// Itembox footer
|
// Itembox footer
|
||||||
"Updated %@.": "Updated %@.", // %@ is a date string, sourced from AppleGlot
|
"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
|
// Price strings
|
||||||
"Data unavailable": "Data unavailable", // sourced from AppleGlot
|
"Data unavailable": "Data unavailable", // sourced from AppleGlot
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ module.exports = {
|
|||||||
"Community Pricing": "Community Pricing",
|
"Community Pricing": "Community Pricing",
|
||||||
// Itembox footer
|
// Itembox footer
|
||||||
"Updated %@.": "Updated %@.", // %@ is a date string, sourced from AppleGlot
|
"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
|
// Price strings
|
||||||
"Data unavailable": "Data unavailable", // sourced from AppleGlot
|
"Data unavailable": "Data unavailable", // sourced from AppleGlot
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ module.exports = {
|
|||||||
"Community Pricing": "Precios de la comunidad",
|
"Community Pricing": "Precios de la comunidad",
|
||||||
// Itembox footer
|
// Itembox footer
|
||||||
"Updated %@.": "Actualizado %@.", // %@ is a date string, sourced from AppleGlot
|
"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
|
// Price strings
|
||||||
"Data unavailable": "Datos no disponibles", // sourced from AppleGlot
|
"Data unavailable": "Datos no disponibles", // sourced from AppleGlot
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ module.exports = {
|
|||||||
"Community Pricing": "Community Pricing",
|
"Community Pricing": "Community Pricing",
|
||||||
// Itembox footer
|
// Itembox footer
|
||||||
"Updated %@.": "Updated %@.", // %@ is a date string, sourced from AppleGlot
|
"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
|
// Price strings
|
||||||
"Data unavailable": "Data unavailable", // sourced from AppleGlot
|
"Data unavailable": "Data unavailable", // sourced from AppleGlot
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ module.exports = {
|
|||||||
"Community Pricing": "Community Pricing",
|
"Community Pricing": "Community Pricing",
|
||||||
// Itembox footer
|
// Itembox footer
|
||||||
"Updated %@.": "Updated %@.", // %@ is a date string, sourced from AppleGlot
|
"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
|
// Price strings
|
||||||
"Data unavailable": "Data unavailable", // sourced from AppleGlot
|
"Data unavailable": "Data unavailable", // sourced from AppleGlot
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ module.exports = {
|
|||||||
"Community Pricing": "Community Pricing",
|
"Community Pricing": "Community Pricing",
|
||||||
// Itembox footer
|
// Itembox footer
|
||||||
"Updated %@.": "Updated %@.", // %@ is a date string, sourced from AppleGlot
|
"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
|
// Price strings
|
||||||
"Data unavailable": "Data unavailable", // sourced from AppleGlot
|
"Data unavailable": "Data unavailable", // sourced from AppleGlot
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ module.exports = {
|
|||||||
"Community Pricing": "Prezzo Comunitario",
|
"Community Pricing": "Prezzo Comunitario",
|
||||||
// Itembox footer
|
// Itembox footer
|
||||||
"Updated %@.": "Aggiornato il %@.",
|
"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
|
// Price strings
|
||||||
"Data unavailable": "Data unavailable", // sourced from AppleGlot
|
"Data unavailable": "Data unavailable", // sourced from AppleGlot
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ module.exports = {
|
|||||||
"Community Pricing": "共同体価格",
|
"Community Pricing": "共同体価格",
|
||||||
// Itembox footer
|
// Itembox footer
|
||||||
"Updated %@.": "アップデート: %@。", // %@ is a date string, sourced from AppleGlot
|
"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
|
// Price strings
|
||||||
"Data unavailable": "データがありません", // sourced from AppleGlot
|
"Data unavailable": "データがありません", // sourced from AppleGlot
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ module.exports = {
|
|||||||
"Community Pricing": "Community Pricing",
|
"Community Pricing": "Community Pricing",
|
||||||
// Itembox footer
|
// Itembox footer
|
||||||
"Updated %@.": "Updated %@.", // %@ is a date string, sourced from AppleGlot
|
"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
|
// Price strings
|
||||||
"Data unavailable": "Data unavailable", // sourced from AppleGlot
|
"Data unavailable": "Data unavailable", // sourced from AppleGlot
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ module.exports = {
|
|||||||
"Community Pricing": "Community Pricing",
|
"Community Pricing": "Community Pricing",
|
||||||
// Itembox footer
|
// Itembox footer
|
||||||
"Updated %@.": "Updated %@.", // %@ is a date string, sourced from AppleGlot
|
"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
|
// Price strings
|
||||||
"Data unavailable": "Data unavailable", // sourced from AppleGlot
|
"Data unavailable": "Data unavailable", // sourced from AppleGlot
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ module.exports = {
|
|||||||
"Community Pricing": "Community Pricing",
|
"Community Pricing": "Community Pricing",
|
||||||
// Itembox footer
|
// Itembox footer
|
||||||
"Updated %@.": "Updated %@.", // %@ is a date string, sourced from AppleGlot
|
"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
|
// Price strings
|
||||||
"Data unavailable": "Data unavailable", // sourced from AppleGlot
|
"Data unavailable": "Data unavailable", // sourced from AppleGlot
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ module.exports = {
|
|||||||
"Community Pricing": "Community Pricing",
|
"Community Pricing": "Community Pricing",
|
||||||
// Itembox footer
|
// Itembox footer
|
||||||
"Updated %@.": "Updated %@.", // %@ is a date string, sourced from AppleGlot
|
"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
|
// Price strings
|
||||||
"Data unavailable": "Data unavailable", // sourced from AppleGlot
|
"Data unavailable": "Data unavailable", // sourced from AppleGlot
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ module.exports = {
|
|||||||
"Community Pricing": "Community Pricing",
|
"Community Pricing": "Community Pricing",
|
||||||
// Itembox footer
|
// Itembox footer
|
||||||
"Updated %@.": "Updated %@.", // %@ is a date string, sourced from AppleGlot
|
"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
|
// Price strings
|
||||||
"Data unavailable": "Data unavailable", // sourced from AppleGlot
|
"Data unavailable": "Data unavailable", // sourced from AppleGlot
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ module.exports = {
|
|||||||
"Community Pricing": "Community Pricing",
|
"Community Pricing": "Community Pricing",
|
||||||
// Itembox footer
|
// Itembox footer
|
||||||
"Updated %@.": "Updated %@.", // %@ is a date string, sourced from AppleGlot
|
"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
|
// Price strings
|
||||||
"Data unavailable": "Data unavailable", // sourced from AppleGlot
|
"Data unavailable": "Data unavailable", // sourced from AppleGlot
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ module.exports = {
|
|||||||
"Community Pricing": "Community Pricing",
|
"Community Pricing": "Community Pricing",
|
||||||
// Itembox footer
|
// Itembox footer
|
||||||
"Updated %@.": "Updated %@.", // %@ is a date string, sourced from AppleGlot
|
"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
|
// Price strings
|
||||||
"Data unavailable": "Data unavailable", // sourced from AppleGlot
|
"Data unavailable": "Data unavailable", // sourced from AppleGlot
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ module.exports = {
|
|||||||
"Community Pricing": "Цены сообщества",
|
"Community Pricing": "Цены сообщества",
|
||||||
// Itembox footer
|
// Itembox footer
|
||||||
"Updated %@.": "Обновлено %@.", // %@ is a date string, sourced from AppleGlot
|
"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
|
// Price strings
|
||||||
"Data unavailable": "Данные недоступны", // sourced from AppleGlot
|
"Data unavailable": "Данные недоступны", // sourced from AppleGlot
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ module.exports = {
|
|||||||
"Community Pricing": "Community Pricing",
|
"Community Pricing": "Community Pricing",
|
||||||
// Itembox footer
|
// Itembox footer
|
||||||
"Updated %@.": "Updated %@.", // %@ is a date string, sourced from AppleGlot
|
"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
|
// Price strings
|
||||||
"Data unavailable": "Data unavailable", // sourced from AppleGlot
|
"Data unavailable": "Data unavailable", // sourced from AppleGlot
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ module.exports = {
|
|||||||
"Community Pricing": "Community Pricing",
|
"Community Pricing": "Community Pricing",
|
||||||
// Itembox footer
|
// Itembox footer
|
||||||
"Updated %@.": "Updated %@.", // %@ is a date string, sourced from AppleGlot
|
"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
|
// Price strings
|
||||||
"Data unavailable": "Data unavailable", // sourced from AppleGlot
|
"Data unavailable": "Data unavailable", // sourced from AppleGlot
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ module.exports = {
|
|||||||
"Community Pricing": "Community Pricing",
|
"Community Pricing": "Community Pricing",
|
||||||
// Itembox footer
|
// Itembox footer
|
||||||
"Updated %@.": "Updated %@.", // %@ is a date string, sourced from AppleGlot
|
"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
|
// Price strings
|
||||||
"Data unavailable": "Data unavailable", // sourced from AppleGlot
|
"Data unavailable": "Data unavailable", // sourced from AppleGlot
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ module.exports = {
|
|||||||
"Community Pricing": "Community Pricing",
|
"Community Pricing": "Community Pricing",
|
||||||
// Itembox footer
|
// Itembox footer
|
||||||
"Updated %@.": "Updated %@.", // %@ is a date string, sourced from AppleGlot
|
"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
|
// Price strings
|
||||||
"Data unavailable": "Data unavailable", // sourced from AppleGlot
|
"Data unavailable": "Data unavailable", // sourced from AppleGlot
|
||||||
|
|||||||
Reference in New Issue
Block a user