mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
Added EN translation
This commit is contained in:
parent
a988aae663
commit
121f29fb27
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,3 +2,4 @@ settings.json
|
|||
pygettext.py
|
||||
lastchange.txt
|
||||
.directory
|
||||
/debug
|
||||
|
|
BIN
locale/en/LC_MESSAGES/en.mo
Normal file
BIN
locale/en/LC_MESSAGES/en.mo
Normal file
Binary file not shown.
402
locale/en/LC_MESSAGES/en.po
Normal file
402
locale/en/LC_MESSAGES/en.po
Normal file
|
@ -0,0 +1,402 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR ORGANIZATION
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"POT-Creation-Date: 2018-07-08 18:43+0200\n"
|
||||
"PO-Revision-Date: 2018-07-10 13:49+0200\n"
|
||||
"Language-Team: \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.0.8\n"
|
||||
"Last-Translator: Frisk <piotrex43@protonmail.ch>\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"Language: en\n"
|
||||
|
||||
#: rcgcdw.py:126
|
||||
msgid "(N!) "
|
||||
msgstr "(N!) "
|
||||
|
||||
#: rcgcdw.py:126
|
||||
msgid "m "
|
||||
msgstr "m "
|
||||
|
||||
#: rcgcdw.py:144
|
||||
msgid "([preview]({link}) | [undo]({undolink}))"
|
||||
msgstr "([preview]({link}) | [undo]({undolink}))"
|
||||
|
||||
#: rcgcdw.py:144 rcgcdw.py:170
|
||||
msgid "Options"
|
||||
msgstr "Options"
|
||||
|
||||
#: rcgcdw.py:145
|
||||
msgid "Uploaded a new version of {name}"
|
||||
msgstr "Uploaded a new version of {name}"
|
||||
|
||||
#: rcgcdw.py:147
|
||||
msgid "Uploaded {name}"
|
||||
msgstr "Uploaded {name}"
|
||||
|
||||
#: rcgcdw.py:160
|
||||
msgid "**No license!**"
|
||||
msgstr "**No license!**"
|
||||
|
||||
#: rcgcdw.py:170
|
||||
msgid "([preview]({link}))"
|
||||
msgstr "([preview]({link}))"
|
||||
|
||||
#: rcgcdw.py:171
|
||||
msgid ""
|
||||
"{desc}\n"
|
||||
"License: {license}"
|
||||
msgstr ""
|
||||
"{desc}\n"
|
||||
"License: {license}"
|
||||
|
||||
#: rcgcdw.py:174
|
||||
msgid "Deleted page {article}"
|
||||
msgstr "Deleted page {article}"
|
||||
|
||||
#: rcgcdw.py:177
|
||||
msgid "Deleted redirect {article} by overwriting"
|
||||
msgstr "Deleted redirect {article} by overwriting"
|
||||
|
||||
#: rcgcdw.py:180
|
||||
msgid "A redirect has been made"
|
||||
msgstr "A redirect has been made"
|
||||
|
||||
#: rcgcdw.py:180
|
||||
msgid "No redirect has been made"
|
||||
msgstr "No redirect has been made"
|
||||
|
||||
#: rcgcdw.py:181
|
||||
msgid "Moved {article} to {target}"
|
||||
msgstr "Moved {article} to {target}"
|
||||
|
||||
#: rcgcdw.py:184
|
||||
msgid "Moved {article} to {title} over redirect"
|
||||
msgstr "Moved {article} to {title} over redirect"
|
||||
|
||||
#: rcgcdw.py:187
|
||||
msgid "Moved protection settings from {article} to {title}"
|
||||
msgstr "Moved protection settings from {article} to {title}"
|
||||
|
||||
#: rcgcdw.py:191
|
||||
msgid "infinity and beyond"
|
||||
msgstr "infinity and beyond"
|
||||
|
||||
#: rcgcdw.py:192
|
||||
msgid "Blocked {blocked_user} for {time}"
|
||||
msgstr "Blocked {blocked_user} for {time}"
|
||||
|
||||
#: rcgcdw.py:196
|
||||
msgid "Changed block settings for {blocked_user}"
|
||||
msgstr "Changed block settings for {blocked_user}"
|
||||
|
||||
#: rcgcdw.py:200
|
||||
msgid "Unblocked {blocked_user}"
|
||||
msgstr "Unblocked {blocked_user}"
|
||||
|
||||
#: rcgcdw.py:204
|
||||
msgid "Left a comment on {target}'s profile"
|
||||
msgstr "Left a comment on {target}'s profile"
|
||||
|
||||
#: rcgcdw.py:208
|
||||
msgid "Replied to a comment on {target}'s profile"
|
||||
msgstr "Replied to a comment on {target}'s profile"
|
||||
|
||||
#: rcgcdw.py:212
|
||||
msgid "Edited a comment on {target}'s profile"
|
||||
msgstr "Edited a comment on {target}'s profile"
|
||||
|
||||
#: rcgcdw.py:216
|
||||
msgid "Location"
|
||||
msgstr "Location"
|
||||
|
||||
#: rcgcdw.py:218
|
||||
msgid "About me"
|
||||
msgstr "About me"
|
||||
|
||||
#: rcgcdw.py:220
|
||||
msgid "Google link"
|
||||
msgstr "Google link"
|
||||
|
||||
#: rcgcdw.py:222
|
||||
msgid "Facebook link"
|
||||
msgstr "Facebook link"
|
||||
|
||||
#: rcgcdw.py:224
|
||||
msgid "Twitter link"
|
||||
msgstr "Twitter link"
|
||||
|
||||
#: rcgcdw.py:226
|
||||
msgid "Reddit link"
|
||||
msgstr "Reddit link"
|
||||
|
||||
#: rcgcdw.py:228
|
||||
msgid "Twitch link"
|
||||
msgstr "Twitch link"
|
||||
|
||||
#: rcgcdw.py:230
|
||||
msgid "PSN link"
|
||||
msgstr "PSN link"
|
||||
|
||||
#: rcgcdw.py:232
|
||||
msgid "VK link"
|
||||
msgstr "VK link"
|
||||
|
||||
#: rcgcdw.py:234
|
||||
msgid "XVL link"
|
||||
msgstr "XVL link"
|
||||
|
||||
#: rcgcdw.py:236
|
||||
msgid "Steam link"
|
||||
msgstr "Steam link"
|
||||
|
||||
#: rcgcdw.py:238
|
||||
msgid "Unknown"
|
||||
msgstr "Unknown"
|
||||
|
||||
#: rcgcdw.py:239
|
||||
msgid "Edited {target}'s profile"
|
||||
msgstr "Edited {target}'s profile"
|
||||
|
||||
#: rcgcdw.py:240
|
||||
msgid "{field} field changed to: {desc}"
|
||||
msgstr "{field} field changed to: {desc}"
|
||||
|
||||
#: rcgcdw.py:244
|
||||
msgid "Deleted a comment on {target}'s profile"
|
||||
msgstr "Deleted a comment on {target}'s profile"
|
||||
|
||||
#: rcgcdw.py:247
|
||||
msgid "Changed group membership for {target}"
|
||||
msgstr "Changed group membership for {target}"
|
||||
|
||||
#: rcgcdw.py:257 rcgcdw.py:259
|
||||
msgid "none"
|
||||
msgstr "none"
|
||||
|
||||
#: rcgcdw.py:260 rcgcdw.py:381
|
||||
msgid "No description provided"
|
||||
msgstr "No description provided"
|
||||
|
||||
#: rcgcdw.py:261
|
||||
msgid "Groups changed from {old_groups} to {new_groups}{reason}"
|
||||
msgstr "Groups changed from {old_groups} to {new_groups}{reason}"
|
||||
|
||||
#: rcgcdw.py:264
|
||||
msgid "Protected {target}"
|
||||
msgstr "Protected {target}"
|
||||
|
||||
#: rcgcdw.py:268
|
||||
msgid "Changed protection level for {article}"
|
||||
msgstr "Changed protection level for {article}"
|
||||
|
||||
#: rcgcdw.py:272
|
||||
msgid "Removed protection from {article}"
|
||||
msgstr "Removed protection from {article}"
|
||||
|
||||
#: rcgcdw.py:275
|
||||
msgid "Changed visibility of revision(s) on page {article} "
|
||||
msgstr "Changed visibility of revision(s) on page {article} "
|
||||
|
||||
#: rcgcdw.py:278
|
||||
msgid "Imported {article} with {count} revision(s)"
|
||||
msgstr "Imported {article} with {count} revision(s)"
|
||||
|
||||
#: rcgcdw.py:281
|
||||
msgid "Restored {article}"
|
||||
msgstr "Restored {article}"
|
||||
|
||||
#: rcgcdw.py:284
|
||||
msgid "Changed visibility of log events"
|
||||
msgstr "Changed visibility of log events"
|
||||
|
||||
#: rcgcdw.py:287
|
||||
msgid "Imported interwiki"
|
||||
msgstr "Imported interwiki"
|
||||
|
||||
#: rcgcdw.py:290
|
||||
msgid "Edited abuse filter number {number}"
|
||||
msgstr "Edited abuse filter number {number}"
|
||||
|
||||
#: rcgcdw.py:293
|
||||
msgid "Merged revision histories of {article} into {dest}"
|
||||
msgstr "Merged revision histories of {article} into {dest}"
|
||||
|
||||
#: rcgcdw.py:296
|
||||
msgid "Added an entry to the interwiki table"
|
||||
msgstr "Added an entry to the interwiki table"
|
||||
|
||||
#: rcgcdw.py:297 rcgcdw.py:301
|
||||
msgid "Prefix: {prefix}, website: {website} | {desc}"
|
||||
msgstr "Prefix: {prefix}, website: {website} | {desc}"
|
||||
|
||||
#: rcgcdw.py:300
|
||||
msgid "Edited an entry in interwiki table"
|
||||
msgstr "Edited an entry in interwiki table"
|
||||
|
||||
#: rcgcdw.py:304
|
||||
msgid "Deleted an entry in interwiki table"
|
||||
msgstr "Deleted an entry in interwiki table"
|
||||
|
||||
#: rcgcdw.py:305
|
||||
msgid "Prefix: {prefix} | {desc}"
|
||||
msgstr "Prefix: {prefix} | {desc}"
|
||||
|
||||
#: rcgcdw.py:308
|
||||
msgid "Changed the content model of the page {article}"
|
||||
msgstr "Changed the content model of the page {article}"
|
||||
|
||||
#: rcgcdw.py:309
|
||||
msgid "Model changed from {old} to {new}: {reason}"
|
||||
msgstr "Model changed from {old} to {new}: {reason}"
|
||||
|
||||
#: rcgcdw.py:312
|
||||
msgid "Edited the sprite for {article}"
|
||||
msgstr "Edited the sprite for {article}"
|
||||
|
||||
#: rcgcdw.py:315
|
||||
msgid "Created the sprite sheet for {article}"
|
||||
msgstr "Created the sprite sheet for {article}"
|
||||
|
||||
#: rcgcdw.py:318
|
||||
msgid "Edited the slice for {article}"
|
||||
msgstr "Edited the slice for {article}"
|
||||
|
||||
#: rcgcdw.py:321
|
||||
msgid "Created a tag \"{tag}\""
|
||||
msgstr "Created a tag \"{tag}\""
|
||||
|
||||
#: rcgcdw.py:325
|
||||
msgid "Deleted a tag \"{tag}\""
|
||||
msgstr "Deleted a tag \"{tag}\""
|
||||
|
||||
#: rcgcdw.py:329
|
||||
msgid "Activated a tag \"{tag}\""
|
||||
msgstr "Activated a tag \"{tag}\""
|
||||
|
||||
#: rcgcdw.py:332
|
||||
msgid "Deactivated a tag \"{tag}\""
|
||||
msgstr "Deactivated a tag \"{tag}\""
|
||||
|
||||
#: rcgcdw.py:353
|
||||
msgid "Tags"
|
||||
msgstr "Tags"
|
||||
|
||||
#: rcgcdw.py:474
|
||||
msgid "Unable to process the event"
|
||||
msgstr "Unable to process the event"
|
||||
|
||||
#: rcgcdw.py:474
|
||||
msgid "error"
|
||||
msgstr "error"
|
||||
|
||||
#: rcgcdw.py:554
|
||||
msgid "Daily overview"
|
||||
msgstr "Daily overview"
|
||||
|
||||
#: rcgcdw.py:570
|
||||
msgid " ({} actions)"
|
||||
msgstr " ({} actions)"
|
||||
|
||||
#: rcgcdw.py:571
|
||||
msgid " UTC ({} actions)"
|
||||
msgstr " UTC ({} actions)"
|
||||
|
||||
#: rcgcdw.py:573 rcgcdw.py:574
|
||||
msgid "But nobody came"
|
||||
msgstr "But nobody came"
|
||||
|
||||
#: rcgcdw.py:578
|
||||
msgid "Admin actions"
|
||||
msgstr "Admin actions"
|
||||
|
||||
#: rcgcdw.py:578
|
||||
msgid "Bytes changed"
|
||||
msgstr "Bytes changed"
|
||||
|
||||
#: rcgcdw.py:578
|
||||
msgid "Day score"
|
||||
msgstr "Day score"
|
||||
|
||||
#: rcgcdw.py:578
|
||||
msgid "Edits made"
|
||||
msgstr "Edits made"
|
||||
|
||||
#: rcgcdw.py:578
|
||||
msgid "Most active hours"
|
||||
msgstr "Most active hours"
|
||||
|
||||
#: rcgcdw.py:578
|
||||
msgid "Most active users"
|
||||
msgstr "Most active users"
|
||||
|
||||
#: rcgcdw.py:578
|
||||
msgid "New articles"
|
||||
msgstr "New articles"
|
||||
|
||||
#: rcgcdw.py:578
|
||||
msgid "New files"
|
||||
msgstr "New files"
|
||||
|
||||
#: rcgcdw.py:578
|
||||
msgid "Unique contributors"
|
||||
msgstr "Unique contributors"
|
||||
|
||||
#: rcgcdw.py:668
|
||||
msgid "Connection to {wiki} seems to be stable now."
|
||||
msgstr "Connection to {wiki} seems to be stable now."
|
||||
|
||||
#: rcgcdw.py:668 rcgcdw.py:723
|
||||
msgid "Connection status"
|
||||
msgstr "Connection status"
|
||||
|
||||
#: rcgcdw.py:723
|
||||
msgid "{wiki} seems to be down or unreachable."
|
||||
msgstr "{wiki} seems to be down or unreachable."
|
||||
|
||||
#: rcgcdw.py:745
|
||||
msgid "autopatrol"
|
||||
msgstr "Autopatrol"
|
||||
|
||||
#: rcgcdw.py:745
|
||||
msgid "autoreview"
|
||||
msgstr "Autoreview"
|
||||
|
||||
#: rcgcdw.py:745
|
||||
msgid "bot"
|
||||
msgstr "Bot"
|
||||
|
||||
#: rcgcdw.py:745
|
||||
msgid "bureaucrat"
|
||||
msgstr "Bureaucrat"
|
||||
|
||||
#: rcgcdw.py:745
|
||||
msgid "director"
|
||||
msgstr "Director"
|
||||
|
||||
#: rcgcdw.py:745
|
||||
msgid "directors"
|
||||
msgstr "Directors"
|
||||
|
||||
#: rcgcdw.py:745
|
||||
msgid "editor"
|
||||
msgstr "Editor"
|
||||
|
||||
#: rcgcdw.py:745
|
||||
msgid "reviewer"
|
||||
msgstr "Reviewer"
|
||||
|
||||
#: rcgcdw.py:745
|
||||
msgid "sysop"
|
||||
msgstr "Administrator"
|
||||
|
||||
#: rcgcdw.py:745
|
||||
msgid "wiki_guardian"
|
||||
msgstr "Wiki guardian"
|
11
rcgcdw.py
11
rcgcdw.py
|
@ -34,11 +34,8 @@ if settings["limitrefetch"] != -1 and os.path.exists("lastchange.txt") == False:
|
|||
with open("lastchange.txt", 'w') as sfile:
|
||||
sfile.write("99999999999")
|
||||
logging.info("Current settings: {settings}".format(settings=settings))
|
||||
if settings["lang"] != "en" or settings["lang"] == "":
|
||||
lang = gettext.translation('rcgcdw', localedir='locale', languages=[settings["lang"]])
|
||||
lang.install()
|
||||
else:
|
||||
_ = lambda s: s
|
||||
lang = gettext.translation('rcgcdw', localedir='locale', languages=[settings["lang"]])
|
||||
lang.install()
|
||||
|
||||
def send(message, name, avatar):
|
||||
send_to_discord({"content": message, "avatar_url": avatar, "username": name})
|
||||
|
@ -254,9 +251,9 @@ def webhook_formatter(action, STATIC, **params):
|
|||
for name in params["new_groups"]:
|
||||
new_groups.append(_(name))
|
||||
if len(old_groups) == 0:
|
||||
old_groups = _("none")
|
||||
old_groups = [_("none")]
|
||||
if len(new_groups) == 0:
|
||||
new_groups = _("none")
|
||||
new_groups = [_("none")]
|
||||
reason = ": {desc}".format(desc=params["desc"]) if params["desc"]!=_("No description provided") else ""
|
||||
params["desc"] = _("Groups changed from {old_groups} to {new_groups}{reason}").format(old_groups=", ".join(old_groups), new_groups=', '.join(new_groups), reason=reason)
|
||||
elif action == 2:
|
||||
|
|
|
@ -19,8 +19,8 @@
|
|||
"show_updown_messages": true,
|
||||
"overview": false,
|
||||
"overview_time": "00:00",
|
||||
"license_regex_detect": "\\{\\{(license|lizenz|licence)",
|
||||
"license_regex": "\\{\\{(license|lizenz|licence)(\\ |\\|)(?P<license>.*?)\\}\\}",
|
||||
"license_regex_detect": "\\{\\{(license|lizenz|licence|copyright)",
|
||||
"license_regex": "\\{\\{(license|lizenz|licence|copyright)(\\ |\\|)(?P<license>.*?)\\}\\}",
|
||||
"appearance":{
|
||||
"daily_overview": {
|
||||
"color": 16312092,
|
||||
|
|
Loading…
Reference in a new issue