Merge remote-tracking branch 'origin/master' into develop
commit
ec07247854
@ -1,64 +1,64 @@
|
||||
{
|
||||
"state": "State",
|
||||
"reporter": "Reporter",
|
||||
"reported-at": "Reported At",
|
||||
"description": "Description",
|
||||
"state": "Status",
|
||||
"reporter": "Rapporteur",
|
||||
"reported-at": "Gerapporteerd op",
|
||||
"description": "Beschrijving",
|
||||
"no-flags": "Hooray! No flags found.",
|
||||
"assignee": "Assignee",
|
||||
"update": "Update",
|
||||
"updated": "Updated",
|
||||
"assignee": "Toegekend aan",
|
||||
"update": "Bijwerken",
|
||||
"updated": "Bijgewerkt",
|
||||
"target-purged": "The content this flag referred to has been purged and is no longer available.",
|
||||
|
||||
"quick-filters": "Quick Filters",
|
||||
"filter-active": "There are one or more filters active in this list of flags",
|
||||
"filter-reset": "Remove Filters",
|
||||
"filters": "Filter Options",
|
||||
"filter-reporterId": "Reporter UID",
|
||||
"filter-active": "Er zijn een of meer filters actief in deze lijst van markeringen",
|
||||
"filter-reset": "Filters verwijderen",
|
||||
"filters": "Filter opties",
|
||||
"filter-reporterId": "Rapporteur UID",
|
||||
"filter-targetUid": "Flagged UID",
|
||||
"filter-type": "Flag Type",
|
||||
"filter-type-all": "All Content",
|
||||
"filter-type-post": "Post",
|
||||
"filter-state": "State",
|
||||
"filter-type-all": "Alle inhoud",
|
||||
"filter-type-post": "Bericht",
|
||||
"filter-state": "Status",
|
||||
"filter-assignee": "Assignee UID",
|
||||
"filter-cid": "Category",
|
||||
"filter-quick-mine": "Assigned to me",
|
||||
"filter-cid-all": "All categories",
|
||||
"apply-filters": "Apply Filters",
|
||||
"filter-cid": "Categorie",
|
||||
"filter-quick-mine": "Toegewezen aan mij",
|
||||
"filter-cid-all": "Alle categorieën",
|
||||
"apply-filters": "Filters toepassen",
|
||||
|
||||
"quick-links": "Quick Links",
|
||||
"flagged-user": "Flagged User",
|
||||
"view-profile": "View Profile",
|
||||
"start-new-chat": "Start New Chat",
|
||||
"view-profile": "Profiel bekijken",
|
||||
"start-new-chat": "Begin een nieuwe chat",
|
||||
"go-to-target": "View Flag Target",
|
||||
|
||||
"user-view": "View Profile",
|
||||
"user-edit": "Edit Profile",
|
||||
"user-view": "Profiel bekijken",
|
||||
"user-edit": "Profiel wijzigen",
|
||||
|
||||
"notes": "Flag Notes",
|
||||
"add-note": "Add Note",
|
||||
"no-notes": "No shared notes.",
|
||||
"add-note": "Notitie toevoegen",
|
||||
"no-notes": "Geen gedeelde notities",
|
||||
|
||||
"history": "Flag History",
|
||||
"back": "Back to Flags List",
|
||||
"no-history": "No flag history.",
|
||||
|
||||
"state-all": "All states",
|
||||
"state-open": "New/Open",
|
||||
"state-wip": "Work in Progress",
|
||||
"state-resolved": "Resolved",
|
||||
"state-rejected": "Rejected",
|
||||
"no-assignee": "Not Assigned",
|
||||
"note-added": "Note Added",
|
||||
"state-all": "Alle statussen",
|
||||
"state-open": "Nieuw/Open",
|
||||
"state-wip": "Wordt aan gewerkt",
|
||||
"state-resolved": "Opgelost",
|
||||
"state-rejected": "Afgewezen",
|
||||
"no-assignee": "Niet toegewezen",
|
||||
"note-added": "Notitie toegevoegd",
|
||||
|
||||
"modal-title": "Report Inappropriate Content",
|
||||
"modal-title": "Rapporteer ongepaste content",
|
||||
"modal-body": "Please specify your reason for flagging %1 %2 for review. Alternatively, use one of the quick report buttons if applicable.",
|
||||
"modal-reason-spam": "Spam",
|
||||
"modal-reason-offensive": "Offensive",
|
||||
"modal-reason-other": "Other (specify below)",
|
||||
"modal-reason-custom": "Reason for reporting this content...",
|
||||
"modal-submit": "Submit Report",
|
||||
"modal-reason-offensive": "Aanstootgevend",
|
||||
"modal-reason-other": "Anders (specificeer onder)",
|
||||
"modal-reason-custom": "Reden voor het rapporteren van deze content...",
|
||||
"modal-submit": "Rapport verzenden",
|
||||
"modal-submit-success": "Content has been flagged for moderation.",
|
||||
"modal-submit-confirm": "Confirm Submission",
|
||||
"modal-submit-confirm-text": "You have a custom reason specified already. Are you sure you wish to submit via quick-report?",
|
||||
"modal-submit-confirm-text-help": "Submitting a quick report will overwrite any custom reasons defined."
|
||||
"modal-submit-confirm": "Bevestig verzending",
|
||||
"modal-submit-confirm-text": "U hebt al een aangepaste reden gegegeven. Weet u zeker dat u een wilt verzenden via quick-report?",
|
||||
"modal-submit-confirm-text-help": "Verzenden van een quick-report overschrijft reeds gedefinieerde aangepaste redenen."
|
||||
}
|
@ -0,0 +1,53 @@
|
||||
'use strict';
|
||||
|
||||
var async = require('async');
|
||||
var batch = require('../../batch');
|
||||
var db = require('../../database');
|
||||
|
||||
module.exports = {
|
||||
name: 'Fix sort by votes for moved topics',
|
||||
timestamp: Date.UTC(2018, 0, 8),
|
||||
method: function (callback) {
|
||||
var progress = this.progress;
|
||||
|
||||
batch.processSortedSet('topics:tid', function (tids, next) {
|
||||
async.eachLimit(tids, 500, function (tid, _next) {
|
||||
progress.incr();
|
||||
var topicData;
|
||||
async.waterfall([
|
||||
function (next) {
|
||||
db.getObjectFields('topic:' + tid, ['cid', 'oldCid', 'upvotes', 'downvotes', 'pinned'], next);
|
||||
},
|
||||
function (_topicData, next) {
|
||||
topicData = _topicData;
|
||||
if (!topicData.cid || !topicData.oldCid) {
|
||||
return _next();
|
||||
}
|
||||
|
||||
var upvotes = parseInt(topicData.upvotes, 10) || 0;
|
||||
var downvotes = parseInt(topicData.downvotes, 10) || 0;
|
||||
var votes = upvotes - downvotes;
|
||||
|
||||
async.series([
|
||||
function (next) {
|
||||
db.sortedSetRemove('cid:' + topicData.oldCid + ':tids:votes', tid, next);
|
||||
},
|
||||
function (next) {
|
||||
if (parseInt(topicData.pinned, 10) !== 1) {
|
||||
db.sortedSetAdd('cid:' + topicData.cid + ':tids:votes', votes, tid, next);
|
||||
} else {
|
||||
next();
|
||||
}
|
||||
},
|
||||
], function (err) {
|
||||
next(err);
|
||||
});
|
||||
},
|
||||
], _next);
|
||||
}, next);
|
||||
}, {
|
||||
progress: progress,
|
||||
batch: 500,
|
||||
}, callback);
|
||||
},
|
||||
};
|
@ -0,0 +1,22 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
var async = require('async');
|
||||
|
||||
var privileges = require('../../privileges');
|
||||
var db = require('../../database');
|
||||
|
||||
module.exports = {
|
||||
name: 'Give vote privilege to registered-users on all categories',
|
||||
timestamp: Date.UTC(2018, 0, 9),
|
||||
method: function (callback) {
|
||||
db.getSortedSetRange('categories:cid', 0, -1, function (err, cids) {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
}
|
||||
async.eachSeries(cids, function (cid, next) {
|
||||
privileges.categories.give(['posts:upvote', 'posts:downvote'], cid, 'registered-users', next);
|
||||
}, callback);
|
||||
});
|
||||
},
|
||||
};
|
Loading…
Reference in New Issue