Skip to content

Commit

Permalink
refactor(name change): change battlefield to doublecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
xinbenlv committed Jul 14, 2020
1 parent 9552927 commit 2db7a0b
Show file tree
Hide file tree
Showing 41 changed files with 180 additions and 180 deletions.
2 changes: 1 addition & 1 deletion .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"projectName": "wikiloop-battlefield",
"projectName": "wikiloop-doublecheck",
"projectOwner": "google",
"repoType": "github",
"repoHost": "https://github.com",
Expand Down
94 changes: 47 additions & 47 deletions CHANGELOG.md

Large diffs are not rendered by default.

60 changes: 30 additions & 30 deletions README.md

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"description": "A web app for Wikipedians to fight vandalism together.",
"repository": "[email protected]:google/wikiloop-battlefield.git",
"logo": "https://raw.githubusercontent.com/google/wikiloop-battlefield/master/assets/wikiloop-battlefield-logo.png",
"keywords": ["wikiloop", "wikipedia", "wikiloop-battlefield", "counter-vandalism", "anti-vandalism", "vandalism"],
"repository": "[email protected]:google/wikiloop-doublecheck.git",
"logo": "https://raw.githubusercontent.com/google/wikiloop-doublecheck/master/assets/wikiloop-doublecheck-logo.png",
"keywords": ["wikiloop", "wikipedia", "wikiloop-doublecheck", "counter-vandalism", "anti-vandalism", "vandalism"],
"addons": [
"mongolab"
],
Expand Down Expand Up @@ -45,7 +45,7 @@
}
},
"success_url": "/",
"name": "wikiloop-battlefield",
"name": "wikiloop-doublecheck",
"scripts": {
},
"stack": "heroku-18"
Expand Down
4 changes: 2 additions & 2 deletions components/ActionPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@
let revertEditSummary = this.$t(
`Message-RevertEditSummary`,
[
`[[:m:WikiLoop Battlefield]]`,
`[[:m:WikiLoop DoubleCheck]]`,
`${version}`,
`http:https://${this.$env.PUBLIC_HOST || "battlefield.wikiloop.org"}/revision/${this.wiki}/${this.revId}`
`http:https://${this.$env.PUBLIC_HOST || "doublecheck.wikiloop.org"}/revision/${this.wiki}/${this.revId}`
]);
this.wikiActionProps = <WikiActionProps> {
fromUserGaId: this.$cookiez.get('_ga'),
Expand Down
2 changes: 1 addition & 1 deletion components/NoticeBanner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</div>
<div class="card-footer">
<a target="_blank" class="btn btn-primary btn-sm float-right" :href="`https://meta.wikimedia.org/wiki/WikiProject_WikiLoop/New_name_vote`"><i class="fas fa-chevron-right"></i> {{$t('Button-Go')}}</a>
<a target="_blank" class="btn btn-outline-primary btn-sm" :href="`https://github.com/google/wikiloop-battlefield/edit/master/i18n/locales/${$i18n.locale}.yml`"><i class="fas fa-language"></i> {{$t("Button-HelpTranslate")}}</a>
<a target="_blank" class="btn btn-outline-primary btn-sm" :href="`https://github.com/google/wikiloop-doublecheck/edit/master/i18n/locales/${$i18n.locale}.yml`"><i class="fas fa-language"></i> {{$t("Button-HelpTranslate")}}</a>
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions components/RevisionCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -392,9 +392,9 @@
let revertEditSummary = this.$t(
`Message-RevertEditSummary`,
[
`[[:m:WikiLoop Battlefield]]`,
`[[:m:WikiLoop DoubleCheck]]`,
`${version}`,
`http:https://${process.env.PUBLIC_HOST || "battlefield.wikiloop.org"}/revision/${this.wikiRevId.split(':')[0]}/${this.wikiRevId.split(':')[1]}`
`http:https://${process.env.PUBLIC_HOST || "doublecheck.wikiloop.org"}/revision/${this.wikiRevId.split(':')[0]}/${this.wikiRevId.split(':')[1]}`
]);
let revertUrl = `${this.getUrlBaseByWiki(this.revision.wiki)}/w/index.php?title=${this.revision.title}&action=edit&undoafter=${this.revision.revision?.old || 'prev'}&undo=${/*TODO(xinbenlv): this is a hack, until we standardize the revision interface */this.revision.revision?.new || this.wikiRevId.split(':')[1]}&summary=${revertEditSummary}`;
let historyUrl = `${this.getUrlBaseByWiki(this.revision.wiki)}/w/index.php?title=${this.revision.title}&action=history`;
Expand Down
4 changes: 2 additions & 2 deletions components/StaticRevisionCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,9 @@ between Client-Side-Rendering and Server-Side-Rendering -->
let revertEditSummary = this.$t(
`Message-RevertEditSummary`,
[
`[[:m:WikiLoop Battlefield]]`,
`[[:m:WikiLoop DoubleCheck]]`,
`${version}`,
`http:https://battlefield.wikiloop.org/marked?wikiRevIds=${this.wikiRevId}`
`http:https://doublecheck.wikiloop.org/marked?wikiRevIds=${this.wikiRevId}`
]);
let revertUrl = `${this.getUrlBaseByWiki(this.revision.wiki)}/w/index.php?title=${this.revision.title}&action=edit&undoafter=${this.revision.revision.old}&undo=${this.revision.revision.new}&summary=${revertEditSummary}`;
let historyUrl = `${this.getUrlBaseByWiki(this.revision.wiki)}/w/index.php?title=${this.revision.title}&action=history`;
Expand Down
12 changes: 6 additions & 6 deletions cronjobs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ export class UsageReportCronJob {
"<>":"tr","html":[
// TODO(xinbenlv): currently only supports English but will expand.
{"<>": "td", html: "<a href='http:https://en.wikipedia.org/wiki/User:${_id.wikiUserName}'>User:${_id.wikiUserName}</a>"},
{"<>": "td", html: "<a href='http:https://battlefield.wikiloop.org/marked/?wikiUserName=${_id.wikiUserName}'>${count}</a>"}
{"<>": "td", html: "<a href='http:https://doublecheck.wikiloop.org/marked/?wikiUserName=${_id.wikiUserName}'>${count}</a>"}
]
});
let info = await transporter.sendMail({
from: `WikiLoop Battlefield Mailer <[email protected]>`, // sender address
from: `WikiLoop DoubleCheck Mailer <[email protected]>`, // sender address
replyTo: '[email protected]',
to: process.env.REPORT_RECEIVER, // list of receivers
subject: `Usage Report (${frequency}) for WikiLoop Battlefield at ${formatedDate}`, // Subject line
subject: `Usage Report (${frequency}) for WikiLoop DoubleCheck at ${formatedDate}`, // Subject line
text: JSON.stringify(report, null, 2), // plain text body
html: html // html body
});
Expand Down Expand Up @@ -111,9 +111,9 @@ export class AwardBarnStarCronJob {
private static awardBarnstarMsg = async (mwMailer, user, frequency, endDate, isReal) => {
await mwMailer.mail(
isReal ? `User_talk:${user}` : `User:Xinbenlv/Sandbox/User_talk:${user}`,
`== The WikiLoop Battlefield ${frequency} barnstar ==\n` +
`{{subst:Xinbenlv/WikiLoop Battlefield Champion|user=${user}|enddate=${endDate}|timerange=${frequency}}}`,
`Awarding The WikiLoop Battlefield ${frequency} barnstar to ${user} ending on ${endDate}`);
`== The WikiLoop DoubleCheck ${frequency} barnstar ==\n` +
`{{subst:Xinbenlv/WikiLoop DoubleCheck Champion|user=${user}|enddate=${endDate}|timerange=${frequency}}}`,
`Awarding The WikiLoop DoubleCheck ${frequency} barnstar to ${user} ending on ${endDate}`);
};

public static awardBarnstar = async function (frequency:string) {
Expand Down
6 changes: 3 additions & 3 deletions i18n/locales/ar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ Message-Login: >-
هل تعلم أنه يمكنك تسجيل الدخول والحفاظ على التسميات الخاصة بك تحت اسمك؟ نحن
ندعم تسجيل الدخول باستخدام حساب Wikipedia من خلال Oauth.
Message-NameVoteAnnouncement: >-
عزيزي المساهم ، سنجري تصويتًا على اسم جديد يحل محل "WikiLoop Battlefield"
عزيزي المساهم ، سنجري تصويتًا على اسم جديد يحل محل "WikiLoop DoubleCheck"
ينتهي في 13 يوليو 2020 الساعة 00:00 بالتوقيت العالمي المنسق. الرجاء التصويت.
Message-NoActiveUsersPleaseStartReview: >-
لا يوجد مستخدمون نشطون في آخر 15 دقيقة. ابدأ {0} مراجعة المراجعات {1} وكن
Expand All @@ -246,8 +246,8 @@ Message-RevertEditSummary: >-
Message-RevertEditSummary.@meta.@description: >-
رسالة ملخص التحرير عندما يقوم برنامجنا بإنشاء تحرير Wikipedia جديد يتم
الالتزام به على موقع Wikipedia على الويب. المعلمة {0} هي اسم برنامجنا ، حاليًا
"WikiLoop Battlefield". المعلمة {1} هي رقم إصدار برنامجنا ، حاليًا 4.0.1. {2}
هو عنوان URL لموقع الويب الخاص بأداتنا ، حاليًا "battlefield.wikiloop.org".
"WikiLoop DoubleCheck". المعلمة {1} هي رقم إصدار برنامجنا ، حاليًا 4.0.1. {2}
هو عنوان URL لموقع الويب الخاص بأداتنا ، حاليًا "doublecheck.wikiloop.org".
Message-SorryWeFailedToRevert: 'عذرًا ، فشلنا في التراجع عن المراجعة {0}.'
Message-SorryWeFailedToRevert.@meta.@description: >-
رسالة لإخبار المستخدم أن التراجع عن تعديل معين فشل. المعلمة {0} هي معرف
Expand Down
6 changes: 3 additions & 3 deletions i18n/locales/bg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ Message-Login: >-
име? Поддържаме влизане с акаунт в Wikipedia чрез Oauth.
Message-NameVoteAnnouncement: >-
Уважаеми сътрудници, провеждаме гласуване за ново име, заместващо „WikiLoop
Battlefield“, завършващо на 13 юли 2020 г. 00:00 UTC. Моля, гласувайте.
doublecheck“, завършващо на 13 юли 2020 г. 00:00 UTC. Моля, гласувайте.
Message-NoActiveUsersPleaseStartReview: >-
Няма активни потребители през последните 15 минути. Започнете {0} преглед на
версиите {1} и станете първата.
Expand All @@ -291,10 +291,10 @@ Message-RevertEditSummary: >-
Message-RevertEditSummary.@meta.@description: >-
Съобщението за резюме на редактиране, когато нашият софтуер генерира нова
редакция на Wikipedia, която да бъде извършена на уебсайта на Wikipedia.
Параметърът {0} е името на нашия софтуер, понастоящем "WikiLoop Battlefield".
Параметърът {0} е името на нашия софтуер, понастоящем "WikiLoop DoubleCheck".
Параметърът {1} е номерът на версията на нашия софтуер, понастоящем 4.0.1. {2}
е URL адресът на уебсайта на нашия инструмент, който в момента е
"battlefield.wikiloop.org".
"doublecheck.wikiloop.org".
Message-SorryWeFailedToRevert: 'За съжаление не успяхме да върнем версията {0}.'
Message-SorryWeFailedToRevert.@meta.@description: >-
Съобщението, което казва на потребителя, че възстановяването на дадена
Expand Down
4 changes: 2 additions & 2 deletions i18n/locales/ca.yml
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,9 @@ Message-RevertEditSummary: >-
Message-RevertEditSummary.@meta.@description: >-
El missatge del resum de l’edició quan el nostre programari genera una nova
edició de Wikipedia es compromet al lloc web de Wikipedia. El paràmetre {0} és
el nom del nostre programari, actualment "WikiLoop Battlefield". El paràmetre
el nom del nostre programari, actualment "WikiLoop DoubleCheck". El paràmetre
{1} és el número de versió del nostre programari, actualment 4.0.1. La {2} és
la URL del lloc web de la nostra eina, actualment "battlefield.wikiloop.org".
la URL del lloc web de la nostra eina, actualment "doublecheck.wikiloop.org".
Message-SorryWeFailedToRevert: 'Ho sentim, no hem pogut revertir la revisió {0}.'
Message-SorryWeFailedToRevert.@meta.@description: >-
El missatge per indicar a l'usuari que la reversió d'una determinada edició ha
Expand Down
6 changes: 3 additions & 3 deletions i18n/locales/cs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ Message-Login: >-
Podporujeme přihlášení pomocí účtu Wikipedia prostřednictvím Oauth.
Message-NameVoteAnnouncement: >-
Vážený přispěvateli, hlasujeme pro nové jméno nahrazující „WikiLoop
Battlefield“ končící 13. července 2020 00:00 UTC. Hlasujte prosím.
doublecheck“ končící 13. července 2020 00:00 UTC. Hlasujte prosím.
Message-NoActiveUsersPleaseStartReview: >-
Žádní aktivní uživatelé za posledních 15 minut. Začněte {0} revize revizí {1}
a staňte se první.
Expand All @@ -266,9 +266,9 @@ Message-RevertEditSummary: >-
Message-RevertEditSummary.@meta.@description: >-
Zpráva souhrnu úprav, když náš software generuje novou úpravu Wikipedie, která
má být odevzdána na web Wikipedia. Parametr {0} je název našeho softwaru,
aktuálně "WikiLoop Battlefield". Parametr {1} je číslo verze našeho softwaru,
aktuálně "WikiLoop DoubleCheck". Parametr {1} je číslo verze našeho softwaru,
v současné době 4.0.1. {2} je webová adresa našeho nástroje, v současné době
"battlefield.wikiloop.org".
"doublecheck.wikiloop.org".
Message-SorryWeFailedToRevert: 'Litujeme, nepodařilo se nám vrátit revizi {0}.'
Message-SorryWeFailedToRevert.@meta.@description: >-
Zpráva oznamující uživateli, že vrácení dané úpravy selhalo. Parametr {0} je
Expand Down
4 changes: 2 additions & 2 deletions i18n/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ Message-Login: >-
support logging in with your Wikipedia account through OAuth.
Message-NameVoteAnnouncement: >-
Dear contributor, we are holding a voting for a new name replacing "WikiLoop
Battlefield" ending on July 13, 2020 00:00 UTC. Please vote.
DoubleCheck" ending on July 13, 2020 00:00 UTC. Please vote.
Message-NoActiveUsersPleaseStartReview: >-
No active users in last 15min. Start {0} reviewing revisions {1} and become
the first one.
Expand All @@ -242,7 +242,7 @@ Message-PromptLogin: >-
Message-RevertEditSummary: >-
Identified as test/vandalism using {0} version {1}. See it or provide your
opinion at {2}
Message-RevertEditSummary.@meta.@description: The message of edit summary when our software is generating a new Wikipedia edit to be committed onto the Wikipedia website. The parameter {0} is the name of our software, currently "WikiLoop Battlefield". The parameter {1} is the version number of our software, currently 4.0.1. The {2} is the website url of our tool, currently "battlefield.wikiloop.org".
Message-RevertEditSummary.@meta.@description: The message of edit summary when our software is generating a new Wikipedia edit to be committed onto the Wikipedia website. The parameter {0} is the name of our software, currently "WikiLoop DoubleCheck". The parameter {1} is the version number of our software, currently 4.0.1. The {2} is the website url of our tool, currently "doublecheck.wikiloop.org".
Message-SorryWeFailedToRevert: 'Sorry, we failed to revert the revision {0}.'
Message-SorryWeFailedToRevert.@meta.@description: The message to tell user that the reversion of a given edit failed. The parameter {0} is the revision identifier.
Message-TheRevisionIsSuccessfullyRevertedAs: 'The revision {0} is successfully reverted as {1}.'
Expand Down
6 changes: 3 additions & 3 deletions i18n/locales/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ Message-Login: >-
Soportamos iniciar sesión con la cuenta de Wikipedia a través de Oauth.
Message-NameVoteAnnouncement: >-
Estimado colaborador, estamos celebrando una votación para el nuevo nombre que
reemplaza el "WikiLoop Battlefield" que finaliza el 13 de julio de 2020 a las
reemplaza el "WikiLoop DoubleCheck" que finaliza el 13 de julio de 2020 a las
00:00 UTC. Por favor vota.
Message-NoActiveUsersPleaseStartReview: >-
No hay usuarios activos en los últimos 15 minutos. Comienza {0} revisando
Expand All @@ -304,9 +304,9 @@ Message-RevertEditSummary.@meta.@description: >-
El mensaje de resumen de edición cuando nuestro software está generando una
nueva edición de Wikipedia para ser confirmada en el sitio web de Wikipedia.
El parámetro {0} es el nombre de nuestro software, actualmente "WikiLoop
Battlefield". El parámetro {1} es el número de versión de nuestro software,
doublecheck". El parámetro {1} es el número de versión de nuestro software,
actualmente 4.0.1. El {2} es la URL del sitio web de nuestra herramienta,
actualmente "battlefield.wikiloop.org".
actualmente "doublecheck.wikiloop.org".
Message-SorryWeFailedToRevert: 'Lo sentimos, no pudimos revertir la revisión {0}.'
Message-SorryWeFailedToRevert.@meta.@description: >-
El mensaje para decirle al usuario que la reversión de una edición dada falló.
Expand Down
6 changes: 3 additions & 3 deletions i18n/locales/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ Message-Login: >-
OAuth.
Message-NameVoteAnnouncement: >-
Cher contributeur, nous organisons un vote pour un nouveau nom remplaçant
"WikiLoop Battlefield" se terminant le 13 juillet 2020 à 00h00 UTC.
"WikiLoop DoubleCheck" se terminant le 13 juillet 2020 à 00h00 UTC.
S'il vous plait, votez.
Message-NoActiveUsersPleaseStartReview: >-
Expand All @@ -318,9 +318,9 @@ Message-RevertEditSummary.@meta.@description: >-
Le message de résumé de modification lorsque notre logiciel génère une
nouvelle modification de Wikipédia à valider sur le site Web de Wikipédia. Le
paramètre {0} est le nom de notre logiciel, actuellement "WikiLoop
Battlefield". Le paramètre {1} est le numéro de version de notre logiciel,
doublecheck". Le paramètre {1} est le numéro de version de notre logiciel,
actuellement 4.0.1. Le {2} est l'URL du site Web de notre outil, actuellement
"battlefield.wikiloop.org".
"doublecheck.wikiloop.org".
Message-SorryWeFailedToRevert: 'Désolé, nous n''avons pas réussi à rétablir la révision {0}.'
Message-SorryWeFailedToRevert.@meta.@description: >-
Message indiquant à l'utilisateur que la réversion d'une modification donnée a
Expand Down
2 changes: 1 addition & 1 deletion i18n/locales/he.yml
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ Message-RevertEditSummary.@meta.@description: >-
הודעת סיכום העריכה כאשר התוכנה שלנו מייצרת עריכה חדשה בוויקיפדיה שתחויב באתר
ויקיפדיה. הפרמטר {0} הוא שם התוכנה שלנו, כרגע "שדה הקרב WikiLoop". הפרמטר {1}
הוא מספר הגרסאות של התוכנה שלנו, כרגע 4.0.1. {2} היא כתובת האתר של הכלי שלנו,
כרגע "battlefield.wikiloop.org".
כרגע "doublecheck.wikiloop.org".
Message-SorryWeFailedToRevert: 'מצטערים, לא הצלחנו להחזיר את המהדורה {0}.'
Message-SorryWeFailedToRevert.@meta.@description: 'ההודעה לספר למשתמש שההיפוך של עריכה נתונה נכשל. הפרמטר {0} הוא מזהה הגרסאות.'
Message-TheRevisionIsSuccessfullyRevertedAs: 'המהפכה {0} מבוטלת בהצלחה בתור {1}.'
Expand Down
6 changes: 3 additions & 3 deletions i18n/locales/id.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ Message-Login: >-
Anda? Kami mendukung Login dengan akun Wikipedia melalui Oauth.
Message-NameVoteAnnouncement: >-
Pengguna yang terhormat, kami mengadakan pemungutan suara untuk nama baru
menggantikan "WikiLoop Battlefield" yang berakhir pada 13 Juli, 2020 00:00
menggantikan "WikiLoop DoubleCheck" yang berakhir pada 13 Juli, 2020 00:00
UTC.
Silakan berpartisipasi.
Expand All @@ -288,9 +288,9 @@ Message-RevertEditSummary: >-
Message-RevertEditSummary.@meta.@description: >-
Pesan ringkasan edit ketika perangkat lunak kami menghasilkan suntingan
Wikipedia baru untuk dikomit ke situs web Wikipedia. Parameter {0} adalah nama
perangkat lunak kami, saat ini "WikiLoop Battlefield". Parameter {1} adalah
perangkat lunak kami, saat ini "WikiLoop DoubleCheck". Parameter {1} adalah
nomor versi perangkat lunak kami, saat ini 4.0.1. {2} adalah url situs web
alat kami, saat ini "battlefield.wikiloop.org".
alat kami, saat ini "doublecheck.wikiloop.org".
Message-SorryWeFailedToRevert: 'Maaf, kami gagal membatalkan revisi {0}.'
Message-SorryWeFailedToRevert.@meta.@description: >-
Pesan untuk memberi tahu pengguna bahwa pengembalian edit yang diberikan
Expand Down
Loading

0 comments on commit 2db7a0b

Please sign in to comment.