mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-24 01:10:31 +01:00
This commit is contained in:
@@ -30,12 +30,12 @@
|
||||
"user-banned": "User banned",
|
||||
"user-too-new": "You need to wait %1 seconds before making your first post!",
|
||||
|
||||
"no-category": "Category doesn't exist",
|
||||
"no-topic": "Topic doesn't exist",
|
||||
"no-post": "Post doesn't exist",
|
||||
"no-group": "Group doesn't exist",
|
||||
"no-user": "User doesn't exist",
|
||||
"no-teaser": "Teaser doesn't exist",
|
||||
"no-category": "Category does not exist",
|
||||
"no-topic": "Topic does not exist",
|
||||
"no-post": "Post does not exist",
|
||||
"no-group": "Group does not exist",
|
||||
"no-user": "User does not exist",
|
||||
"no-teaser": "Teaser does not exist",
|
||||
"no-privileges": "You don't have enough privileges for this action.",
|
||||
"no-emailers-configured": "No email plugins were loaded, so a test email could not be sent",
|
||||
|
||||
|
||||
@@ -25,10 +25,10 @@ var fs = require('fs'),
|
||||
|
||||
function userNotFound(res) {
|
||||
if (res.locals.isAPI) {
|
||||
res.status(404).json('user-not-found');
|
||||
res.status(404).json('no-user');
|
||||
} else {
|
||||
res.render('404', {
|
||||
error: 'User not found!'
|
||||
error: '[[error:no-user]]'
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user