diff --git a/locale/widgets/de.png b/locale/widgets/de.png new file mode 100644 index 0000000..82d1efb Binary files /dev/null and b/locale/widgets/de.png differ diff --git a/locale/widgets/en.png b/locale/widgets/en.png new file mode 100644 index 0000000..3fd2ebe Binary files /dev/null and b/locale/widgets/en.png differ diff --git a/locale/widgets/pl.png b/locale/widgets/pl.png new file mode 100644 index 0000000..76b37b8 Binary files /dev/null and b/locale/widgets/pl.png differ diff --git a/locale/widgets/pt-br.png b/locale/widgets/pt-br.png new file mode 100644 index 0000000..e5ed383 Binary files /dev/null and b/locale/widgets/pt-br.png differ diff --git a/locale/widgets/zh-hant.png b/locale/widgets/zh-hant.png new file mode 100644 index 0000000..3a2a27b Binary files /dev/null and b/locale/widgets/zh-hant.png differ diff --git a/locale/zh_Hant/LC_MESSAGES/discord.mo b/locale/zh-hant/LC_MESSAGES/discord.mo similarity index 100% rename from locale/zh_Hant/LC_MESSAGES/discord.mo rename to locale/zh-hant/LC_MESSAGES/discord.mo diff --git a/locale/zh_Hant/LC_MESSAGES/discord.po b/locale/zh-hant/LC_MESSAGES/discord.po similarity index 100% rename from locale/zh_Hant/LC_MESSAGES/discord.po rename to locale/zh-hant/LC_MESSAGES/discord.po diff --git a/scripts/generate_translations.sh b/scripts/generate_translations.sh index 0b24aee..58debfa 100644 --- a/scripts/generate_translations.sh +++ b/scripts/generate_translations.sh @@ -16,9 +16,9 @@ do msgmerge -o locale/$language/LC_MESSAGES/wiki.po ~/PycharmProjects/RcGcDw/locale/$language/LC_MESSAGES/rc.po locale/$language/LC_MESSAGES/wiki.po msgmerge -o locale/$language/LC_MESSAGES/misc.po ~/PycharmProjects/RcGcDw/locale/$language/LC_MESSAGES/misc.po locale/$language/LC_MESSAGES/misc.po done -for language in en fr de pl pt_BR ru es tr nl zh_Hans zh_Hant +for language in locale/*/LC_MESSAGES do - wget https://weblate.frisk.space/widgets/wiki-bot/$language/discord/svg-badge.svg - convert -size 111x20 svg-badge.svg translation-pngs/wiki-bot-${language//_/-}.png + wget https://weblate.frisk.space/widgets/rcgcdw/$(basename ${language//\/LC_MESSAGES/})/-/svg-badge.svg + convert svg-badge.svg locale/widgets/$(basename ${language//\/LC_MESSAGES/}).png rm svg-badge.svg done diff --git a/translation-pngs/wiki-bot-de.png b/translation-pngs/wiki-bot-de.png deleted file mode 100644 index d77c610..0000000 Binary files a/translation-pngs/wiki-bot-de.png and /dev/null differ diff --git a/translation-pngs/wiki-bot-en.png b/translation-pngs/wiki-bot-en.png deleted file mode 100644 index cc54f53..0000000 Binary files a/translation-pngs/wiki-bot-en.png and /dev/null differ diff --git a/translation-pngs/wiki-bot-es.png b/translation-pngs/wiki-bot-es.png deleted file mode 100644 index 3d8482c..0000000 Binary files a/translation-pngs/wiki-bot-es.png and /dev/null differ diff --git a/translation-pngs/wiki-bot-fr.png b/translation-pngs/wiki-bot-fr.png deleted file mode 100644 index f73598b..0000000 Binary files a/translation-pngs/wiki-bot-fr.png and /dev/null differ diff --git a/translation-pngs/wiki-bot-nl.png b/translation-pngs/wiki-bot-nl.png deleted file mode 100644 index 72410ae..0000000 Binary files a/translation-pngs/wiki-bot-nl.png and /dev/null differ diff --git a/translation-pngs/wiki-bot-pl.png b/translation-pngs/wiki-bot-pl.png deleted file mode 100644 index 671d0e1..0000000 Binary files a/translation-pngs/wiki-bot-pl.png and /dev/null differ diff --git a/translation-pngs/wiki-bot-pt-BR.png b/translation-pngs/wiki-bot-pt-BR.png deleted file mode 100644 index 7a69bc9..0000000 Binary files a/translation-pngs/wiki-bot-pt-BR.png and /dev/null differ diff --git a/translation-pngs/wiki-bot-ru.png b/translation-pngs/wiki-bot-ru.png deleted file mode 100644 index 325ee2e..0000000 Binary files a/translation-pngs/wiki-bot-ru.png and /dev/null differ diff --git a/translation-pngs/wiki-bot-tr.png b/translation-pngs/wiki-bot-tr.png deleted file mode 100644 index bd64fd9..0000000 Binary files a/translation-pngs/wiki-bot-tr.png and /dev/null differ diff --git a/translation-pngs/wiki-bot-zh-Hans.png b/translation-pngs/wiki-bot-zh-Hans.png deleted file mode 100644 index 0f88854..0000000 Binary files a/translation-pngs/wiki-bot-zh-Hans.png and /dev/null differ diff --git a/translation-pngs/wiki-bot-zh-Hant.png b/translation-pngs/wiki-bot-zh-Hant.png deleted file mode 100644 index 6664054..0000000 Binary files a/translation-pngs/wiki-bot-zh-Hant.png and /dev/null differ