Files
Immich/mobile/lib/presentation/utils/file_vault_labels.dart
T

79 lines
3.5 KiB
Dart

class FileVaultLabels {
const FileVaultLabels(this.language);
final String language;
String text(String key) => (language == 'ru' ? _russian[key] : _english[key]) ?? _english[key] ?? key;
static const _russian = {
'byte_unit': 'Б',
'title': 'Файлы',
'root': 'Мои файлы',
'new_folder': 'Новая папка',
'name': 'Название',
'upload_files': 'Загрузить файлы',
'empty': 'В этой папке пока нет файлов',
'empty_trash': 'Корзина пуста',
'move_to': 'Переместить в папку',
'used': 'Занято',
'error': 'Не удалось выполнить действие. Проверьте соединение и повторите попытку.',
'conflict': 'Такое имя уже существует. Переименуйте файл или выберите другую папку.',
'unavailable': 'Файл или папка недоступны. Обновите список.',
'quota': 'Недостаточно места или превышен допустимый размер файла.',
'invalid': 'Проверьте название и выбранную папку. Название не должно содержать / или \\.',
'purge_confirm': 'Удалить навсегда? Восстановить этот файл или папку с содержимым будет невозможно.',
'trash_confirm': 'Папка будет перемещена в корзину вместе с содержимым.',
'limit': 'Максимум на файл',
'cancel': 'Отмена',
'confirm': 'Подтвердить',
'rename': 'Переименовать',
'trash': 'Корзина',
'purge': 'Удалить навсегда',
'restore': 'Восстановить',
'move': 'Переместить',
'open': 'Открыть',
'download': 'Скачать',
'refresh': 'Обновить',
'close': 'Закрыть',
'incoming': 'Получено файлов',
'upload_here': 'Загрузить в эту папку',
'previous': 'Назад',
'next': 'Далее',
};
static const _english = {
'byte_unit': 'B',
'title': 'Files',
'root': 'My files',
'new_folder': 'New folder',
'name': 'Name',
'upload_files': 'Upload files',
'empty': 'This folder is empty',
'empty_trash': 'Trash is empty',
'move_to': 'Move to folder',
'used': 'Used',
'error': 'The action failed. Check your connection and try again.',
'conflict': 'This name already exists. Rename the item or choose another folder.',
'unavailable': 'This file or folder is unavailable. Refresh the list.',
'quota': 'Insufficient space or maximum file size exceeded.',
'invalid': 'Check the name and destination folder. Names cannot contain / or \\.',
'purge_confirm': 'Delete permanently? This item and its contents cannot be restored.',
'trash_confirm': 'The folder and its contents will be moved to trash.',
'limit': 'Maximum file size',
'cancel': 'Cancel',
'confirm': 'Confirm',
'rename': 'Rename',
'trash': 'Trash',
'purge': 'Delete permanently',
'restore': 'Restore',
'move': 'Move',
'open': 'Open',
'download': 'Download',
'refresh': 'Refresh',
'close': 'Close',
'incoming': 'Files received',
'upload_here': 'Upload to this folder',
'previous': 'Previous',
'next': 'Next',
};
}