Centralized errors and added their translations. Didn't test
This commit is contained in:
52
messages/en-US/msgs.json
Normal file
52
messages/en-US/msgs.json
Normal file
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"authentication not found": "Authentication token not found!",
|
||||
"authentication invalid": "Authentication token is invalid",
|
||||
"user duplicate": "Such user already exists!",
|
||||
"user invalid syntax": "Invalid syntax in one of user's parameters!",
|
||||
"user already in group": "User is already in group!",
|
||||
"username taken": "Username is taken!",
|
||||
"username not found": "Such username not found!",
|
||||
"username required": "Username is required!",
|
||||
"password required": "Password is required!",
|
||||
"password invalid": "Wrong password!",
|
||||
"group name taken": "Group name is taken!",
|
||||
"group name not found": "Group with such name not found!",
|
||||
"group id not found": "Group with such ID not found!",
|
||||
"group not an owner": "You are not an owner of this group!",
|
||||
"group not a member": "You are not a member of this group!",
|
||||
"abstract product not found": "Such abstract product is not found!",
|
||||
"hash without file": "Please, supply a hash of an image!",
|
||||
"file without hash": "Please, supply an image!",
|
||||
"abstract product invalid syntax": "Invalid syntax in one of user's parameters!",
|
||||
"barcode not found": "Such barcode not found!",
|
||||
"barcode duplicate": "Such barcode already exists!",
|
||||
"barcode too long": "This barcode is too long!",
|
||||
"barcode invalid syntax": "Invalid syntax in barcode!",
|
||||
"abstract product name not found": "Abstract product with such name not found!",
|
||||
"abstract product name duplicate": "Abstract product with such name already exists!",
|
||||
"abstract product name too long": "Abstract product name is too long!",
|
||||
"abstract product name invalid syntax": "Invalid syntax in abstract product name!",
|
||||
"net weight too long": "Specified net weight is too long!",
|
||||
"net weight invalid syntax": "Invalid syntax in specified net weight!",
|
||||
"image hash too long": "Specified image hash is too long!",
|
||||
"image hash invalid syntax": "Invalid syntax in specified image hash!",
|
||||
"category too long": "Specified category is too long!",
|
||||
"category invalid syntax": "Invalid syntax in specified category!",
|
||||
"category not found": "Such category not found!",
|
||||
"unit too long": "Specified unit is too long!",
|
||||
"unit invalid syntax": "Invalid syntax in specified unit!",
|
||||
"product not found": "Such product not found!",
|
||||
"product invalid syntax": "Invalid syntax in one of product's parameters!",
|
||||
"abstract product id not found": "Specified abstract product id not found!",
|
||||
"abstract product id invalid syntax": "Invalid syntax in abstract product id!",
|
||||
"expiry date too long": "Specified expiry date is too long!",
|
||||
"expiry date invalid syntax": "Invalid syntax in specified expiry date!",
|
||||
"categories not found": "Such category not found!",
|
||||
"categories duplicate": "Such category already exists!",
|
||||
"categories invalid syntax": "Invalid syntax in one of category parameters!",
|
||||
"ok": "Successfull.",
|
||||
"invalid syntax": "Invalid syntax!",
|
||||
"png only": "Only .png files are allowed!",
|
||||
"too long": "Specified value is too long!",
|
||||
"unknown": "Unknown server error. Please, contact the develoeper!"
|
||||
}
|
||||
52
messages/ru-RU/msgs.json
Normal file
52
messages/ru-RU/msgs.json
Normal file
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"authentication not found": "Токен аутентификации не найден!",
|
||||
"authentication invalid": "Токен аутентификации неверен!",
|
||||
"user duplicate": "Такой пользователь уже существует!",
|
||||
"user invalid syntax": "Неправильный синткасис в одном из параметров пользователя!",
|
||||
"user already in group": "Пользователь уже в группе!",
|
||||
"username taken": "Имя пользователя занято!",
|
||||
"username not found": "Такое имя пользователя не найдено!",
|
||||
"username required": "Требуется имя пользователя!",
|
||||
"password required": "Требуется пароль!",
|
||||
"password invalid": "Неверный пароль!",
|
||||
"group name taken": "Такое имя группы уже существует!",
|
||||
"group name not found": "Группы с таким именем не существует!",
|
||||
"group id not found": "Группы с таким ID не существует!",
|
||||
"group not an owner": "Вы не владелец этой группы!",
|
||||
"group not a member": "Вы не участник этой группы!",
|
||||
"abstract product not found": "Такой абстрактный продукт не найден!",
|
||||
"hash without file": "Пожалуйста, укажите хеш изображения!",
|
||||
"file without hash": "Пожалуйста, укажите изображение!",
|
||||
"abstract product invalid syntax": "Неправильный синткасис в одном из параметров абстрактного продукта!",
|
||||
"barcode not found": "Такой штрихкод не найден!",
|
||||
"barcode duplicate": "Такой штрихкод уже существует!",
|
||||
"barcode too long": "Этот штрихкод слишком большой!",
|
||||
"barcode invalid syntax": "Этот штрихкод неверен!",
|
||||
"abstract product name not found": "абстрактного продукта с таким именем не найдено!",
|
||||
"abstract product name duplicate": "абстрактный продукт с таким именем уже существует!",
|
||||
"abstract product name too long": "Имя абстрактного продукта слишком длинное!",
|
||||
"abstract product name invalid syntax": "Неверный синткасис в имени абстрактного продукта!",
|
||||
"net weight too long": "Указанный вес нетто слишком длинный!",
|
||||
"net weight invalid syntax": "Неверный указанный вес нетто!",
|
||||
"image hash too long": "Указанный хеш изображения слишком длинный!",
|
||||
"image hash invalid syntax": "Неверный указанный хеш изображения!",
|
||||
"category too long": "Указанная категория слишком длинная!",
|
||||
"category invalid syntax": "Неверный синткасис в категории!",
|
||||
"category not found": "Такая категория не найдена!!",
|
||||
"unit too long": "Указанная единица измерения слишком длинная!",
|
||||
"unit invalid syntax": "Неправильный синткасис в указанной единице измерения!",
|
||||
"product not found": "Такой продукт не найден!",
|
||||
"product invalid syntax": "Неверный синткасис в одном из параметров продукта!",
|
||||
"abstract product id not found": "Абстрактный продукт с таким ID не найден!",
|
||||
"abstract product id invalid syntax": "Неверный синткасис ID абстрактного продукта!",
|
||||
"expiry date too long": "Указанная дата годен до слишком длинная!",
|
||||
"expiry date invalid syntax": "Неверный синткасис в указанной дате годен до!",
|
||||
"categories not found": "Накая категория не найдена!",
|
||||
"categories duplicate": "Такая категория уже существует!",
|
||||
"categories invalid syntax": "Неверный синткасис одного из параметров категории!",
|
||||
"ok": "Успешно.",
|
||||
"invalid syntax": "Неправильный синткасис!",
|
||||
"png only": "Разрешены только файлы формата .png!",
|
||||
"too long": "Указанное значение слишком длинное!",
|
||||
"unknown": "Неизвестная ошибка сервера! Пожалуйста, сообщите разработчику!"
|
||||
}
|
||||
Reference in New Issue
Block a user