mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
Update translation script for formatters
This commit is contained in:
parent
d4f06da1c8
commit
9b1ef8d482
|
@ -1,161 +0,0 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the RcGcDw package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: RcGcDw\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2021-04-14 16:24+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"Language: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=CHARSET\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: src/discussion_formatters.py:21 src/discussion_formatters.py:56
|
||||
#: src/discussion_formatters.py:67 src/discussion_formatters.py:95
|
||||
#: src/discussion_formatters.py:163 src/discussion_formatters.py:176
|
||||
msgid "unknown"
|
||||
msgstr ""
|
||||
|
||||
#: src/discussion_formatters.py:27 src/discussion_formatters.py:102
|
||||
msgid "Unregistered user"
|
||||
msgstr ""
|
||||
|
||||
#: src/discussion_formatters.py:39
|
||||
#, python-brace-format
|
||||
msgid ""
|
||||
"[{author}]({author_url}) created [{title}](<{url}f/p/{threadId}>) in "
|
||||
"{forumName}"
|
||||
msgstr ""
|
||||
|
||||
#: src/discussion_formatters.py:42
|
||||
#, python-brace-format
|
||||
msgid ""
|
||||
"[{author}]({author_url}) created a poll [{title}](<{url}f/p/{threadId}>) in "
|
||||
"{forumName}"
|
||||
msgstr ""
|
||||
|
||||
#: src/discussion_formatters.py:45
|
||||
#, python-brace-format
|
||||
msgid ""
|
||||
"[{author}]({author_url}) created a quiz [{title}](<{url}f/p/{threadId}>) in "
|
||||
"{forumName}"
|
||||
msgstr ""
|
||||
|
||||
#: src/discussion_formatters.py:54
|
||||
#, python-brace-format
|
||||
msgid ""
|
||||
"[{author}]({author_url}) created a [reply](<{url}f/p/{threadId}/r/{postId}>) "
|
||||
"to [{title}](<{url}f/p/{threadId}>) in {forumName}"
|
||||
msgstr ""
|
||||
|
||||
#: src/discussion_formatters.py:61
|
||||
#, python-brace-format
|
||||
msgid ""
|
||||
"[{author}]({author_url}) created [{title}](<{url}wiki/Message_Wall:"
|
||||
"{user_wall}?threadId={threadId}>) on [{user}'s Message Wall](<{url}wiki/"
|
||||
"Message_Wall:{user_wall}>)"
|
||||
msgstr ""
|
||||
|
||||
#: src/discussion_formatters.py:64
|
||||
#, python-brace-format
|
||||
msgid ""
|
||||
"[{author}]({author_url}) created a [reply](<{url}wiki/Message_Wall:"
|
||||
"{user_wall}?threadId={threadId}#{replyId}>) to [{title}](<{url}wiki/"
|
||||
"Message_Wall:{user_wall}?threadId={threadId}>) on [{user}'s Message Wall]"
|
||||
"(<{url}wiki/Message_Wall:{user_wall}>)"
|
||||
msgstr ""
|
||||
|
||||
#: src/discussion_formatters.py:72
|
||||
#, python-brace-format
|
||||
msgid ""
|
||||
"[{author}]({author_url}) created a [comment](<{url}?commentId={commentId}>) "
|
||||
"on [{article}](<{url}>)"
|
||||
msgstr ""
|
||||
|
||||
#: src/discussion_formatters.py:78
|
||||
#, python-brace-format
|
||||
msgid ""
|
||||
"[{author}]({author_url}) created a [reply](<{url}?commentId={commentId}"
|
||||
"&replyId={replyId}>) to a [comment](<{url}?commentId={commentId}>) on "
|
||||
"[{article}](<{url}>)"
|
||||
msgstr ""
|
||||
|
||||
#: src/discussion_formatters.py:86
|
||||
#, python-brace-format
|
||||
msgid ""
|
||||
"Unknown event `{event}` by [{author}]({author_url}), report it on the "
|
||||
"[support server](<{support}>)."
|
||||
msgstr ""
|
||||
|
||||
#: src/discussion_formatters.py:123
|
||||
#, python-brace-format
|
||||
msgid "Created \"{title}\""
|
||||
msgstr ""
|
||||
|
||||
#: src/discussion_formatters.py:127
|
||||
#, python-brace-format
|
||||
msgid "Created a poll \"{title}\""
|
||||
msgstr ""
|
||||
|
||||
#: src/discussion_formatters.py:134
|
||||
msgid "Option {}"
|
||||
msgstr ""
|
||||
|
||||
#: src/discussion_formatters.py:135
|
||||
#, python-brace-format
|
||||
msgid "__[View image]({image_url})__"
|
||||
msgstr ""
|
||||
|
||||
#: src/discussion_formatters.py:139
|
||||
#, python-brace-format
|
||||
msgid "Created a quiz \"{title}\""
|
||||
msgstr ""
|
||||
|
||||
#: src/discussion_formatters.py:155 src/discussion_formatters.py:157
|
||||
msgid "Tags"
|
||||
msgstr ""
|
||||
|
||||
#: src/discussion_formatters.py:155
|
||||
msgid "{} tags"
|
||||
msgstr ""
|
||||
|
||||
#: src/discussion_formatters.py:160
|
||||
#, python-brace-format
|
||||
msgid "Replied to \"{title}\""
|
||||
msgstr ""
|
||||
|
||||
#: src/discussion_formatters.py:169
|
||||
#, python-brace-format
|
||||
msgid "Created \"{title}\" on {user}'s Message Wall"
|
||||
msgstr ""
|
||||
|
||||
#: src/discussion_formatters.py:173
|
||||
#, python-brace-format
|
||||
msgid "Replied to \"{title}\" on {user}'s Message Wall"
|
||||
msgstr ""
|
||||
|
||||
#: src/discussion_formatters.py:180
|
||||
#, python-brace-format
|
||||
msgid "Commented on {article}"
|
||||
msgstr ""
|
||||
|
||||
#: src/discussion_formatters.py:184
|
||||
#, python-brace-format
|
||||
msgid "Replied to a comment on {article}"
|
||||
msgstr ""
|
||||
|
||||
#: src/discussion_formatters.py:188
|
||||
#, python-brace-format
|
||||
msgid "Unknown event `{event}`"
|
||||
msgstr ""
|
||||
|
||||
#: src/discussion_formatters.py:194 src/discussion_formatters.py:196
|
||||
msgid "Report this on the support server"
|
||||
msgstr ""
|
File diff suppressed because it is too large
Load diff
|
@ -1,8 +1,10 @@
|
|||
cd ..
|
||||
declare -a StringArray=("discussion_formatters" "rc_formatters" "rcgcdw" "rc" "misc")
|
||||
declare -a StringArray=("rcgcdw" "rc" "misc")
|
||||
for file in ${StringArray[@]}; do
|
||||
xgettext -L Python --package-name=RcGcDw -o "locale/templates/$file.pot" src/$file.py
|
||||
done
|
||||
# Get all translatable files for formatters
|
||||
find . -name '*.py' -print | xargs xgettext -L Python --package-name=RcGcDw -o "locale/templates/formatters.pot"
|
||||
for language in de fr lol pl pt-br ru uk zh-hans zh-hant hi
|
||||
do
|
||||
for file in ${StringArray[@]}; do
|
||||
|
@ -14,4 +16,5 @@ xgettext -L Python --package-name=RcGcDw -o "locale/templates/redaction.pot" src
|
|||
for language in de fr lol pl pt-br ru uk zh-hans zh-hant hi
|
||||
do
|
||||
msgmerge -U locale/$language/LC_MESSAGES/redaction.po locale/templates/redaction.pot
|
||||
msgmerge -U locale/$language/LC_MESSAGES/formatters.po locale/templates/formatters.pot
|
||||
done
|
Loading…
Reference in a new issue