From 49be7374b1cb3d24c385bc0840fa37de24b18b15 Mon Sep 17 00:00:00 2001 From: Kumi Date: Fri, 9 Aug 2024 16:01:37 +0200 Subject: [PATCH] feat: add dynamic GitHub URL support in configuration Enhanced configuration by introducing a dynamic GitHub URL. This change ensures the GitHub link in all language files is consistently updated based on the configuration, increasing maintainability and consistency across translations. --- config.dist.php | 3 ++- index.php | 1 + lang/de.php | 2 +- lang/el.php | 2 +- lang/en.php | 2 +- lang/es.php | 2 +- lang/it.php | 2 +- lang/nl.php | 2 +- lang/pl.php | 2 +- lang/pt-br.php | 2 +- lang/ru.php | 2 +- lang/zh-cn.php | 2 +- 12 files changed, 13 insertions(+), 11 deletions(-) diff --git a/config.dist.php b/config.dist.php index 25f72d8..7ab88b4 100644 --- a/config.dist.php +++ b/config.dist.php @@ -8,5 +8,6 @@ return [ ], 'preferred_currencies' => [ // Currencies that should be displayed at the top of the lists 'usd', 'eur', 'gbp', 'cad', 'btc', 'eth', 'ltc' - ] + ], + 'github_url' => 'https://github.com/rottenwheel/moner.ooo/', ]; \ No newline at end of file diff --git a/index.php b/index.php index 2b8794a..9ae63bf 100644 --- a/index.php +++ b/index.php @@ -55,6 +55,7 @@ if (file_exists('config.php')) { $display_servers_guru = isset($config['servers_guru']) && $config['servers_guru'] === true; $attribution = isset($config['attribution']) ? $config['attribution'] : ''; $preferred_currencies = isset($config['preferred_currencies']) ? $config['preferred_currencies'] : []; +$github_url = isset($config['github_url']) ? $config['github_url'] : 'https://github.com/rottenwheel/moner.ooo/'; // Order preferred currencies to the top foreach (array_reverse($preferred_currencies) as $currency) { diff --git a/lang/de.php b/lang/de.php index c4b96b0..645a70d 100644 --- a/lang/de.php +++ b/lang/de.php @@ -11,7 +11,7 @@ $title_h1 = "umrechnung nach"; // ↓ XMR [...] ↓ $moneroooTable = "Service bereitgestellt von Moner.ooo, Daten bereitgestellt von CoinGecko"; // Info Text -$info = "Die Werte auf dieser Webseite dienen nur der Information. Der Wert ist nicht garantiert und wird ohne vorherige Ankündigung geändert. Die Werte werden ungefähr einmal pro Minute aktualisiert. Zuletzt um ".$time." Uhr, Europe/Berlin. Daten bereitgestellt von CoinGecko.
Kuno - Moner.ooo Spendenseite Kuno – Mit Monero Spenden sammeln | GitHub"; +$info = "Die Werte auf dieser Webseite dienen nur der Information. Der Wert ist nicht garantiert und wird ohne vorherige Ankündigung geändert. Die Werte werden ungefähr einmal pro Minute aktualisiert. Zuletzt um ".$time." Uhr, Europe/Berlin. Daten bereitgestellt von CoinGecko.
Kuno - Moner.ooo Spendenseite Kuno – Mit Monero Spenden sammeln | GitHub"; $servers_guru = " | Webhosting bereitgestellt vonServers Guru"; $clipboard_copy_tooltip = "In die Zwischenablage kopieren"; diff --git a/lang/el.php b/lang/el.php index 5c7577f..ffa7fdd 100644 --- a/lang/el.php +++ b/lang/el.php @@ -11,7 +11,7 @@ $title_h1 = "conversion to"; // ↓ XMR [...] ↓ $moneroooTable = "Service provided by Moner.ooo, Data provided by CoinGecko"; // Info Text -$info = "The exchange rates on this site are for information purposes only. They are not guaranteed to be accurate, and are subject to change without notice. The exchange rates are updated approximately once per minute. Last at ".$time.", Europe/Berlin. Data provided by CoinGecko.
Kuno - Moner.ooo donation page Kuno – Fundraise with Monero"; +$info = "The exchange rates on this site are for information purposes only. They are not guaranteed to be accurate, and are subject to change without notice. The exchange rates are updated approximately once per minute. Last at ".$time.", Europe/Berlin. Data provided by CoinGecko.
Kuno - Moner.ooo donation page Kuno – Fundraise with Monero | GitHub"; $servers_guru = " | Webhosting provided byServers Guru"; $clipboard_copy_tooltip = "Copy to clipboard"; diff --git a/lang/en.php b/lang/en.php index 9d110d1..5d20a73 100644 --- a/lang/en.php +++ b/lang/en.php @@ -11,7 +11,7 @@ $title_h1 = "conversion to"; // ↓ XMR [...] ↓ $moneroooTable = "Service provided by Moner.ooo, Data provided by CoinGecko"; // Info Text -$info = "The exchange rates on this site are for information purposes only. They are not guaranteed to be accurate, and are subject to change without notice. The exchange rates are updated approximately once per minute. Last at ".$time.", Europe/Berlin. Data provided by CoinGecko.
Kuno - Moner.ooo donation page Kuno – Fundraise with Monero | GitHub"; +$info = "The exchange rates on this site are for information purposes only. They are not guaranteed to be accurate, and are subject to change without notice. The exchange rates are updated approximately once per minute. Last at ".$time.", Europe/Berlin. Data provided by CoinGecko.
Kuno - Moner.ooo donation page Kuno – Fundraise with Monero | GitHub"; $servers_guru = " | Webhosting provided byServers Guru"; $clipboard_copy_tooltip = "Copy to clipboard"; diff --git a/lang/es.php b/lang/es.php index d12015e..bcf0946 100644 --- a/lang/es.php +++ b/lang/es.php @@ -11,7 +11,7 @@ $title_h1 = "conversión según"; // ↓ XMR [...] ↓ $moneroooTable = "Service provided by Moner.ooo, Data provided by CoinGecko"; // Info Text -$info = "Los valores de este sitio web son meramente informativos. El valor no está garantizado y está sujeto a cambios sin previo aviso. Los valores se actualizan aproximadamente una vez por minuto. Última actualización: ".$time.", Europe/Berlin. Datos proporcionados por CoinGecko.
Kuno - Moner.ooo donation page Kuno – Recaudar fondos con Monero | GitHub"; +$info = "Los valores de este sitio web son meramente informativos. El valor no está garantizado y está sujeto a cambios sin previo aviso. Los valores se actualizan aproximadamente una vez por minuto. Última actualización: ".$time.", Europe/Berlin. Datos proporcionados por CoinGecko.
Kuno - Moner.ooo donation page Kuno – Recaudar fondos con Monero | GitHub"; $servers_guru = " | Webhosting provided byServers Guru"; $clipboard_copy_tooltip = "Copiar al portapapeles"; diff --git a/lang/it.php b/lang/it.php index 406001d..0bef0de 100644 --- a/lang/it.php +++ b/lang/it.php @@ -11,7 +11,7 @@ $title_h1 = "conversione in"; // ↓ XMR [...] ↓ $moneroooTable = "Service provided by Moner.ooo, Data provided by CoinGecko"; // Info Text -$info = "I tassi di cambio su questo sito sono solo a scopo informativo. Non è garantita la loro accuratezza e sono soggetti a modifiche senza preavviso. I tassi di cambio sono aggiornati circa una volta al minuto. Ultimo aggiornamento alle ".$time.", Europe/Berlin. Dati forniti da CoinGecko.
Kuno - Moner.ooo donation page Kuno – Raccogli fondi con Monero | GitHub"; +$info = "I tassi di cambio su questo sito sono solo a scopo informativo. Non è garantita la loro accuratezza e sono soggetti a modifiche senza preavviso. I tassi di cambio sono aggiornati circa una volta al minuto. Ultimo aggiornamento alle ".$time.", Europe/Berlin. Dati forniti da CoinGecko.
Kuno - Moner.ooo donation page Kuno – Raccogli fondi con Monero | GitHub"; $servers_guru = " | Webhosting provided byServers Guru"; $clipboard_copy_tooltip = "Copia negli appunti"; diff --git a/lang/nl.php b/lang/nl.php index 7d7d7d2..c502c60 100644 --- a/lang/nl.php +++ b/lang/nl.php @@ -11,7 +11,7 @@ $title_h1 = "conversion to"; // ↓ XMR [...] ↓ $moneroooTable = "Service provided by Moner.ooo, Data provided by CoinGecko"; // Info Text -$info = "The exchange rates on this site are for information purposes only. They are not guaranteed to be accurate, and are subject to change without notice. The exchange rates are updated approximately once per minute. Last at ".$time.", Europe/Berlin. Data provided by CoinGecko.
Kuno - Moner.ooo donation page Kuno – Fundraise with Monero | GitHub"; +$info = "The exchange rates on this site are for information purposes only. They are not guaranteed to be accurate, and are subject to change without notice. The exchange rates are updated approximately once per minute. Last at ".$time.", Europe/Berlin. Data provided by CoinGecko.
Kuno - Moner.ooo donation page Kuno – Fundraise with Monero | GitHub"; $servers_guru = " | Webhosting provided byServers Guru"; $clipboard_copy_tooltip = "Copy to clipboard"; diff --git a/lang/pl.php b/lang/pl.php index 1ce7d85..557fe77 100644 --- a/lang/pl.php +++ b/lang/pl.php @@ -11,7 +11,7 @@ $title_h1 = "conversion to"; // ↓ XMR [...] ↓ $moneroooTable = "Service provided by Moner.ooo, Data provided by CoinGecko"; // Info Text -$info = "The exchange rates on this site are for information purposes only. They are not guaranteed to be accurate, and are subject to change without notice. The exchange rates are updated approximately once per minute. Last at ".$time.", Europe/Berlin. Data provided by CoinGecko.
Kuno - Moner.ooo donation page Kuno – Fundraise with Monero | GitHub"; +$info = "The exchange rates on this site are for information purposes only. They are not guaranteed to be accurate, and are subject to change without notice. The exchange rates are updated approximately once per minute. Last at ".$time.", Europe/Berlin. Data provided by CoinGecko.
Kuno - Moner.ooo donation page Kuno – Fundraise with Monero | GitHub"; $servers_guru = " | Webhosting provided byServers Guru"; $clipboard_copy_tooltip = "Copy to clipboard"; diff --git a/lang/pt-br.php b/lang/pt-br.php index c86f9d7..e08ed32 100644 --- a/lang/pt-br.php +++ b/lang/pt-br.php @@ -11,7 +11,7 @@ $title_h1 = "converter para"; // ↓ XMR [...] ↓ $moneroooTable = "Este serviço é oferecido pelo Moner.ooo, os dados são providos pela CoinGecko"; // Info Text -$info = "As cotações oferecidas neste site são apenas para fins informativos. Não há garantia que as cotações estejam precisas e estão sujeitas à mudanças sem aviso prévio. As cotações são atualizadas aproximadamente a cada minuto. A última atualização foi em ".$time.", horário Europe/Berlin. Os dados são providos pela CoinGecko.
Kuno - Moner.ooo donation page Kuno – Arrecade fundos com Monero | GitHub"; +$info = "As cotações oferecidas neste site são apenas para fins informativos. Não há garantia que as cotações estejam precisas e estão sujeitas à mudanças sem aviso prévio. As cotações são atualizadas aproximadamente a cada minuto. A última atualização foi em ".$time.", horário Europe/Berlin. Os dados são providos pela CoinGecko.
Kuno - Moner.ooo donation page Kuno – Arrecade fundos com Monero | GitHub"; $servers_guru = " | Webhosting provided byServers Guru"; $clipboard_copy_tooltip = "Copiar para a área de transferência"; diff --git a/lang/ru.php b/lang/ru.php index 486867a..db57995 100644 --- a/lang/ru.php +++ b/lang/ru.php @@ -11,7 +11,7 @@ $title_h1 = "конвертация в"; // ↓ XMR [...] ↓ $moneroooTable = "Сервис предоставлен Moner.ooo, Данные предоставлены CoinGecko"; // Info Text -$info = "Курсы обмена, представленные на этом сайте, носят исключительно информационный характер. Их точность не гарантируется, и они могут быть изменены без предварительного уведомления. Курсы обмена обновляются примерно раз в минуту. Последнее обновление ".$time.", Europe/Berlin. Данные предоставлены CoinGecko.
Kuno - Moner.ooo страница для донатов Kuno – Сбор средств с помощью Monero | GitHub"; +$info = "Курсы обмена, представленные на этом сайте, носят исключительно информационный характер. Их точность не гарантируется, и они могут быть изменены без предварительного уведомления. Курсы обмена обновляются примерно раз в минуту. Последнее обновление ".$time.", Europe/Berlin. Данные предоставлены CoinGecko.
Kuno - Moner.ooo страница для донатов Kuno – Сбор средств с помощью Monero | GitHub"; $servers_guru = " | Webhosting provided byServers Guru"; $clipboard_copy_tooltip = "Копировать в буфер обмена"; diff --git a/lang/zh-cn.php b/lang/zh-cn.php index 5e96ef1..4e54b44 100644 --- a/lang/zh-cn.php +++ b/lang/zh-cn.php @@ -11,7 +11,7 @@ $title_h1 = "转换至"; // ↓ XMR [...] ↓ $moneroooTable = "Service provided by Moner.ooo, Data provided by CoinGecko"; // Info Text -$info = "本站提供的汇率仅供参考。其精确程度不被保证,且可能在您不注意的情况下发生变更。汇率大约每分钟更新一次。最近一次在 Europe/Berlin 时间 ".$time." 。数据由 CoinGecko
Kuno - Moner.ooo donation page Kuno – Fundraise with Monero | GitHub"; +$info = "本站提供的汇率仅供参考。其精确程度不被保证,且可能在您不注意的情况下发生变更。汇率大约每分钟更新一次。最近一次在 Europe/Berlin 时间 ".$time." 。数据由 CoinGecko
Kuno - Moner.ooo donation page Kuno – Fundraise with Monero | GitHub"; $servers_guru = " | Webhosting provided byServers Guru"; $clipboard_copy_tooltip = "Copy to clipboard";