diff --git a/locale/de/LC_MESSAGES/discord.mo b/locale/de/LC_MESSAGES/discord.mo new file mode 100644 index 0000000..0130fc1 Binary files /dev/null and b/locale/de/LC_MESSAGES/discord.mo differ diff --git a/locale/de/LC_MESSAGES/discord.po b/locale/de/LC_MESSAGES/discord.po new file mode 100644 index 0000000..cb76d89 --- /dev/null +++ b/locale/de/LC_MESSAGES/discord.po @@ -0,0 +1,35 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the RcGcDd package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: RcGcDd\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2020-08-10 01:44+0200\n" +"PO-Revision-Date: 2020-08-10 01:50+0200\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 2.3.1\n" +"Last-Translator: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"Language: de\n" + +#: src/discord.py:27 +msgid "wiki deletion" +msgstr "" + +#: src/discord.py:27 src/discord.py:28 +msgid "wiki becoming inaccessible" +msgstr "" + +#: src/discord.py:29 +msgid "unknown error" +msgstr "" + +#: src/discord.py:30 +msgid "The webhook for {} has been removed due to {}." +msgstr "" diff --git a/locale/de/LC_MESSAGES/discussion_formatters.mo b/locale/de/LC_MESSAGES/discussion_formatters.mo new file mode 100644 index 0000000..89a6dd4 Binary files /dev/null and b/locale/de/LC_MESSAGES/discussion_formatters.mo differ diff --git a/locale/de/LC_MESSAGES/misc.mo b/locale/de/LC_MESSAGES/misc.mo new file mode 100644 index 0000000..e1ab7ff Binary files /dev/null and b/locale/de/LC_MESSAGES/misc.mo differ diff --git a/locale/de/LC_MESSAGES/rc_formatters.mo b/locale/de/LC_MESSAGES/rc_formatters.mo new file mode 100644 index 0000000..c1d5651 Binary files /dev/null and b/locale/de/LC_MESSAGES/rc_formatters.mo differ diff --git a/locale/de/LC_MESSAGES/wiki.mo b/locale/de/LC_MESSAGES/wiki.mo new file mode 100644 index 0000000..1199743 Binary files /dev/null and b/locale/de/LC_MESSAGES/wiki.mo differ diff --git a/locale/pl/LC_MESSAGES/discord.mo b/locale/pl/LC_MESSAGES/discord.mo new file mode 100644 index 0000000..f55b442 Binary files /dev/null and b/locale/pl/LC_MESSAGES/discord.mo differ diff --git a/locale/pl/LC_MESSAGES/discord.po b/locale/pl/LC_MESSAGES/discord.po new file mode 100644 index 0000000..33a98ed --- /dev/null +++ b/locale/pl/LC_MESSAGES/discord.po @@ -0,0 +1,35 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the RcGcDd package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: RcGcDd\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2020-08-10 01:44+0200\n" +"PO-Revision-Date: 2020-08-10 01:55+0200\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 2.3.1\n" +"Last-Translator: \n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2);\n" +"Language: pl\n" + +#: src/discord.py:27 +msgid "wiki deletion" +msgstr "" + +#: src/discord.py:27 src/discord.py:28 +msgid "wiki becoming inaccessible" +msgstr "" + +#: src/discord.py:29 +msgid "unknown error" +msgstr "" + +#: src/discord.py:30 +msgid "The webhook for {} has been removed due to {}." +msgstr "" diff --git a/locale/pl/LC_MESSAGES/wiki.mo b/locale/pl/LC_MESSAGES/wiki.mo new file mode 100644 index 0000000..ba5317a Binary files /dev/null and b/locale/pl/LC_MESSAGES/wiki.mo differ diff --git a/locale/pl/LC_MESSAGES/wiki.po b/locale/pl/LC_MESSAGES/wiki.po new file mode 100644 index 0000000..39502f3 --- /dev/null +++ b/locale/pl/LC_MESSAGES/wiki.po @@ -0,0 +1,42 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR ORGANIZATION +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: RcGcDw\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2020-08-08 17:22+0200\n" +"PO-Revision-Date: 2020-08-10 01:55+0200\n" +"Last-Translator: Frisk \n" +"Language-Team: \n" +"Language: pl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: pygettext.py 1.5\n" +"X-Generator: Poedit 2.3.1\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " +"|| n%100>=20) ? 1 : 2);\n" + +#: src/rc.py:150 +#, python-brace-format +msgid "Connection to {wiki} seems to be stable now." +msgstr "Połączenie z {wiki} wygląda na stabilne." + +#: src/rc.py:151 src/rc.py:266 +msgid "Connection status" +msgstr "Problem z połączeniem" + +#: src/rc.py:265 +#, python-brace-format +msgid "{wiki} seems to be down or unreachable." +msgstr "{wiki} nie działa lub jest nieosiągalna." + +#: src/rc.py:334 +msgid "~~hidden~~" +msgstr "~~ukryte~~" + +#: src/rc.py:340 +msgid "hidden" +msgstr "ukryte" diff --git a/locale/pt-br/LC_MESSAGES/discord.mo b/locale/pt-br/LC_MESSAGES/discord.mo new file mode 100644 index 0000000..5d4a608 Binary files /dev/null and b/locale/pt-br/LC_MESSAGES/discord.mo differ diff --git a/locale/pt-br/LC_MESSAGES/discord.po b/locale/pt-br/LC_MESSAGES/discord.po new file mode 100644 index 0000000..d03b1fb --- /dev/null +++ b/locale/pt-br/LC_MESSAGES/discord.po @@ -0,0 +1,35 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the RcGcDd package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: RcGcDd\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2020-08-10 01:44+0200\n" +"PO-Revision-Date: 2020-08-10 01:53+0200\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 2.3.1\n" +"Last-Translator: \n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" +"Language: pt_BR\n" + +#: src/discord.py:27 +msgid "wiki deletion" +msgstr "" + +#: src/discord.py:27 src/discord.py:28 +msgid "wiki becoming inaccessible" +msgstr "" + +#: src/discord.py:29 +msgid "unknown error" +msgstr "" + +#: src/discord.py:30 +msgid "The webhook for {} has been removed due to {}." +msgstr "" diff --git a/locale/pt-br/LC_MESSAGES/discussion_formatters.mo b/locale/pt-br/LC_MESSAGES/discussion_formatters.mo new file mode 100644 index 0000000..1b96714 Binary files /dev/null and b/locale/pt-br/LC_MESSAGES/discussion_formatters.mo differ diff --git a/locale/pt-br/LC_MESSAGES/misc.mo b/locale/pt-br/LC_MESSAGES/misc.mo new file mode 100644 index 0000000..87ed168 Binary files /dev/null and b/locale/pt-br/LC_MESSAGES/misc.mo differ diff --git a/locale/pt-br/LC_MESSAGES/rc_formatters.mo b/locale/pt-br/LC_MESSAGES/rc_formatters.mo new file mode 100644 index 0000000..c65d770 Binary files /dev/null and b/locale/pt-br/LC_MESSAGES/rc_formatters.mo differ diff --git a/locale/pt-br/LC_MESSAGES/wiki.mo b/locale/pt-br/LC_MESSAGES/wiki.mo new file mode 100644 index 0000000..40b333c Binary files /dev/null and b/locale/pt-br/LC_MESSAGES/wiki.mo differ diff --git a/scripts/generate_translations.sh b/scripts/generate_translations.sh index e69de29..2908d4e 100644 --- a/scripts/generate_translations.sh +++ b/scripts/generate_translations.sh @@ -0,0 +1,14 @@ +xgettext -L Python --package-name=RcGcDw -o locale/templates/discussion_formatters.pot src/formatters/discussions.py +xgettext -L Python --package-name=RcGcDw -o locale/templates/rc_formatters.pot src/formatters/rc.py +xgettext -L Python --package-name=RcGcDw -o locale/templates/wiki.pot src/wiki.py +xgettext -L Python --package-name=RcGcDw -o locale/templates/discord.pot src/formatters/discord.py +xgettext -L Python --package-name=RcGcDw -o locale/templates/misc.pot src/misc.py + +cd .. +declare -a StringArray=("discussion_formatters" "rc_formatters" "discord" "wiki" "misc") +for language in de pl pt-br +do + for file in ${StringArray[@]}; do + msgmerge -U locale/$language/LC_MESSAGES/$file.po locale/templates/$file.pot + done +done