Skip to content

Commit 31084c4

Browse files
committed
🌐 locales: removed hard-coded links and dynamic elements
1 parent d193310 commit 31084c4

17 files changed

Lines changed: 73 additions & 42 deletions

File tree

cogs/commands.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ async def about(self, i: discore.Interaction):
4747
discore.set_embed_footer(self.bot, embed)
4848
embed.add_field(
4949
name=t('about.help.name'),
50-
value=t('about.help.value'),
50+
value=t('about.help.value',
51+
settings_command='/' + t('settings.command.name'),
52+
support_link=discore.config.support_link,
53+
troubleshooting_section=t('settings.troubleshooting.name')),
5154
inline=False
5255
)
5356
embed.add_field(

locales/en-GB.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ about:
77
description: "This bot automatically reposts social media links in a 'fixed' format."
88
help:
99
name: "Help"
10-
value: "Use `/settings` to configure the bot on your server. If you encounter any issues with the bot, use the Troubleshooting section of the `/settings` command. Visit the [support server](https://discord.gg/3ej9JrkF3U) for further assistance."
10+
value: "Use `%{settings_command}` to configure the bot on your server.\n
11+
If you encounter any issues with the bot, use the `%{troubleshooting_section}` section of the `%{settings_command}` command.\n
12+
Visit the [support server](%{support_link}) for further assistance."
1113
premium:
1214
name: "Premium"
1315
"true": "✨ This server has premium features activated! ✨"

locales/en-US.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ about:
77
description: "This bot automatically repost social media links as a 'fixed' version."
88
help:
99
name: "Help"
10-
value: "Use `/settings` to configure the bot in your server.
11-
If you encounter issues with the bot, use the `Troubleshooting` section of the `/settings` command.
12-
Visit the [support server](https://discord.gg/3ej9JrkF3U) for more help."
10+
value: "Use `%{settings_command}` to configure the bot in your server.\n
11+
If you encounter issues with the bot, use the `%{troubleshooting_section}` section of the `%{settings_command}` command.\n
12+
Visit the [support server](%{support_link}) for more help."
1313
premium:
1414
name: "Premium"
1515
"true": "✨ This server has premium features enabled! ✨"
@@ -242,8 +242,8 @@ settings:
242242
lang_modal:
243243
title: "Edit translation language"
244244
label: "Translation language"
245-
placeholder: "Enter the translation 2-letter ISO language code (e.g. 'en')"
246-
error: "'%{lang}' is not a valid language. Please enter a valid 2-letter ISO language code (e.g. 'en'). [List of ISO language codes](<https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes#Table>)"
245+
placeholder: "Enter the translation 2-letter ISO language code (e.g. '%{lang_iso}')"
246+
error: "`%{invalid_lang}` is not a valid language. Please enter a valid 2-letter ISO language code (e.g. `%{lang_iso}`). [List of ISO language codes](<https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes#Table>)"
247247
custom_websites:
248248
name: "Custom websites"
249249
description: "Add or remove custom websites to fix"

locales/es-ES.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ about:
77
description: "Este bot reenvía automáticamente enlaces de redes sociales \"arreglados\"."
88
help:
99
name: "Ayuda"
10-
value: "Usa `/settings` para configurar el bot en tu servidor. Si encuentras algún problema, usa la sección de `Resolución de problemas` del comando `/settings`. Visita el [servidor de soporte](https://discord.gg/3ej9JrkF3U) para más ayuda."
10+
value: "Usa `%{settings_command}` para configurar el bot en tu servidor.\n
11+
Si encuentras algún problema, usa la sección de `%{troubleshooting_section}` del comando `%{settings_command}`.\n
12+
Visita el [servidor de soporte](%{support_link}) para más ayuda."
1113
premium:
1214
name: "Premium"
1315
"true": "✨ ¡Este servidor tiene las funciones premium activas! ✨"
@@ -237,8 +239,8 @@ settings:
237239
lang_modal:
238240
title: "Editar idioma de traducción"
239241
label: "Idioma de traducción"
240-
placeholder: "Introduce el código de idioma ISO de dos letras (por ejemplo, 'es')"
241-
error: "'%{lang}' no es un idioma válido. Introduce un [código de idioma ISO de dos letras válido](<https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes#Table>) (por ejemplo, `es`)."
242+
placeholder: "Introduce el código de idioma ISO de dos letras (por ejemplo, '%{lang_iso}')"
243+
error: "`%{invalid_lang}` no es un idioma válido. Introduce un [código de idioma ISO de dos letras válido](<https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes#Table>) (por ejemplo, `%{lang_iso}`)."
242244
custom_websites:
243245
name: "Webs personalizadas"
244246
description: "Añadir o eliminar webs personalizadas a arreglar"

locales/fi.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ about:
33
description: "Tämä botti automaattisesti lähettää uudelleen sosiaalisen median linkit \"korjattuna\" versiona."
44
help:
55
name: "Tuki"
6-
value: "Käytä `/asetukset` komentoa botin määrittämiseen palvelimellasi. Jos kohtaat ongelmia botin kanssa, käytä `/asetukset` komennon `Troubleshooting` osiota. Käy [tukipalvelimella](https://discord.gg/3ej9JrkF3U) saadaksesi lisää apua."
6+
value: "Käytä `%{settings_command}` komentoa botin määrittämiseen palvelimellasi.\n
7+
Jos kohtaat ongelmia botin kanssa, käytä `%{settings_command}` komennon `%{troubleshooting_section}` osiota.\n
8+
Käy [tukipalvelimella](%{support_link}) saadaksesi lisää apua."
79
premium:
810
name: "Premium"
911
invite: "Kutsu"

locales/fr.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ about:
77
description: "Ce bot reposte automatiquement les liens des réseaux sociaux en une version 'corrigée'."
88
help:
99
name: "Aide"
10-
value: "Utilisez `/paramètres` pour configurer le bot dans votre serveur. Si vous rencontrez des problèmes avec le bot, utilisez la section `Dépannage` de la commande `/paramètres`. Visitez le [serveur de support](https://discord.gg/3ej9JrkF3U) pour plus d'aide."
10+
value: "Utilisez `%{settings_command}` pour configurer le bot dans votre serveur.\n
11+
Si vous rencontrez des problèmes avec le bot, utilisez la section `%{troubleshooting_section}` de la commande `%{settings_command}`.\n
12+
Visitez le [serveur de support](%{support_link}) pour plus d'aide."
1113
premium:
1214
name: "Premium"
1315
"true": "✨ Ce serveur a les fonctionnalités premium activées ! ✨"
@@ -239,8 +241,8 @@ settings:
239241
lang_modal:
240242
title: "Éditer la langue de traduction"
241243
label: "Langue de traduction"
242-
placeholder: "Entrez le code de langue ISO 2 lettres de la traduction (ex 'fr')"
243-
error: "'%{lang}' n'est pas une langue valide. Veuillez entrer un code valide de langue ISO 2 lettres (ex 'fr'). [Liste des codes de langue ISO](<https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes#Table>>)"
244+
placeholder: "Entrez le code de langue ISO 2 lettres de la traduction (ex '%{lang_iso}')"
245+
error: "`%{invalid_lang}` n'est pas une langue valide. Veuillez entrer un code valide de langue ISO 2 lettres (ex `%{lang_iso}`). [Liste des codes de langue ISO](<https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes#Table>>)"
244246
custom_websites:
245247
name: "Sites personnalisés"
246248
description: "Ajouter ou supprimer des sites personnalisés à corriger"

locales/id.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ about:
77
description: "Bot ini secara otomatis posting ulang tautan media sosial sebagai versi 'tetap'."
88
help:
99
name: "Tolong"
10-
value: "Menggunakan `/pengaturan` untuk mengonfigurasi bot di server Anda. Jika Anda mengalami masalah dengan bot, gunakan bagian `Pemecahan Masalah` pada perintah `/pengaturan`. Kunjungi [server dukungan](https://discord.gg/3ej9JrkF3U) untuk bantuan lebih lanjut."
10+
value: "Menggunakan `%{settings_command}` untuk mengonfigurasi bot di server Anda.\n
11+
Jika Anda mengalami masalah dengan bot, gunakan bagian `%{troubleshooting_section}` pada perintah `%{settings_command}`.\n
12+
Kunjungi [server dukungan](%{support_link}) untuk bantuan lebih lanjut."
1113
premium:
1214
name: "Premium"
1315
"true": "✨ Server ini mengaktifkan fitur premium! ✨"

locales/ja.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ about:
77
description: "このボットはSNSのリンクを修正バージョンとして自動的に再投稿します"
88
help:
99
name: "ヘルプ"
10-
value: "サーバーでBOTの設定をするには `/settings` を使用します。 Botに問題が発生した場合`/settings`コマンドの`トラブルシューティング`セクションを使用してください。より詳しいヘルプは[サポートサーバー](https://discord.gg/3ej9JrkF3U)をご覧ください。"
10+
value: "サーバーでBOTの設定をするには `%{settings_command}` を使用します。\n
11+
Botに問題が発生した場合`%{settings_command}`コマンドの`%{troubleshooting_section}`セクションを使用してください。\n
12+
より詳しいヘルプは[サポートサーバー](%{support_link})をご覧ください。"
1113
premium:
1214
name: "Premium"
1315
"true": "✨このサーバーはプレミアム機能が有効になっています! ✨"
@@ -152,8 +154,8 @@ settings:
152154
lang_modal:
153155
title: "翻訳する言語を編集"
154156
label: "翻訳する言語"
155-
placeholder: "翻訳の\"2\"文字のISO言語コードを入力してください (例: 'ja')"
156-
error: "%{lang} は有効な言語ではありません、有効な\"2\"文字のISO言語コードを入力してください(例:'ja')。\n[ISO言語コードの一覧](<https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes#Table>)"
157+
placeholder: "翻訳の\"2\"文字のISO言語コードを入力してください (例: '%{lang_iso}')"
158+
error: "`%{invalid_lang}` は有効な言語ではありません、有効な\"2\"文字のISO言語コードを入力してください(例:`%{lang_iso}`)。\n[ISO言語コードの一覧](<https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes#Table>)"
157159
custom_websites:
158160
name: "カスタムウェブサイト"
159161
description: "カスタムウェブサイトを追加または削除して修正する"

locales/pl.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ about:
77
description: "Bot automatycznie publikuje linki z mediów społecznościowych w wersji „naprawionej”."
88
help:
99
name: "Pomoc"
10-
value: "Użyj `/ustawienia` w celu konfiguracji bota na swoim serwerze. Jeśli napotkasz problemy z botem, użyj sekcji `Rozwiązywanie problemów` w komendzie `/ustawienia`. Odwiedź [serwer wsparcia](https://discord.gg/3ej9JrkF3U), aby uzyskać więcej pomocy."
10+
value: "Użyj `%{settings_command}` w celu konfiguracji bota na swoim serwerze.\n
11+
Jeśli napotkasz problemy z botem, użyj sekcji `%{troubleshooting_section}` w komendzie `%{settings_command}`.\n
12+
Odwiedź [serwer wsparcia](%{support_link}), aby uzyskać więcej pomocy."
1113
premium:
1214
name: "Premium"
1315
"true": "✨ Ten serwer posiada włączone funkcje premium! ✨"
@@ -239,8 +241,8 @@ settings:
239241
lang_modal:
240242
title: "Edytuj język tłumaczenia"
241243
label: "Język tłumaczenia"
242-
placeholder: "Wpisz dwuliterowy kod ISO języka tłumaczenia (np. 'pl')"
243-
error: "'%{lang}' nie jest prawidłowym językiem. Wprowadź proszę poprawny dwuliterowy kod ISO języka tłumaczenia (np. 'pl'). [Lista kodów języków tłumaczeń](<https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes#Table>)"
244+
placeholder: "Wpisz dwuliterowy kod ISO języka tłumaczenia (np. '%{lang_iso}')"
245+
error: "`%{invalid_lang}` nie jest prawidłowym językiem. Wprowadź proszę poprawny dwuliterowy kod ISO języka tłumaczenia (np. `%{lang_iso}`). [Lista kodów języków tłumaczeń](<https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes#Table>)"
244246
custom_websites:
245247
name: "Własne strony internetowe"
246248
description: "Dodaj lub usuń własne strony internetowe do naprawiania"

locales/pt-BR.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ about:
77
description: "Este bot reposta automaticamente links de redes sociais como uma versão 'consertada'."
88
help:
99
name: "Ajuda"
10-
value: "Use `/settings` para configurar o bot no seu servidor. Se você encontrar problemas com o bot, use a seção `Solução de problemas` do comando `/settings`. Visite o [servidor de suporte](https://discord.gg/3ej9JrkF3U) para receber mais ajuda."
10+
value: "Use `%{settings_command}` para configurar o bot no seu servidor.\n
11+
Se você encontrar problemas com o bot, use a seção `%{troubleshooting_section}` do comando `%{settings_command}`.\n
12+
Visite o [servidor de suporte](%{support_link}) para receber mais ajuda."
1113
premium:
1214
name: "Premium"
1315
"true": "✨ Este servidor tem recursos premium ativados! ✨"
@@ -239,8 +241,8 @@ settings:
239241
lang_modal:
240242
title: "Editar idioma de tradução"
241243
label: "Idioma de tradução"
242-
placeholder: "Escreva o código de 2 letras ISO do idioma de tradução (ex: 'pt')"
243-
error: "'%{lang}' não é um idioma válido. Por favor, escreva um código de 2 letras ISO válido (ex: 'pt'). [Lista de códigos de idiomas ISO](<https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes#Table>)"
244+
placeholder: "Escreva o código de 2 letras ISO do idioma de tradução (ex: '%{lang_iso}')"
245+
error: "`%{invalid_lang}` não é um idioma válido. Por favor, escreva um código de 2 letras ISO válido (ex: `%{lang_iso}`). [Lista de códigos de idiomas ISO](<https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes#Table>)"
244246
custom_websites:
245247
name: "Sites personalizados"
246248
description: "Adicionar ou remover sites personalizados para consertar"

0 commit comments

Comments
 (0)