Skip to content

Commit d161d81

Browse files
committed
en lexicons
1 parent a8e6f84 commit d161d81

10 files changed

Lines changed: 113 additions & 30 deletions

File tree

core/components/fileman/elements/snippets/files.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
$resource = $modx->getOption('resource', $scriptProperties, 0);
2323
$showGroups = $modx->getOption('showGroups', $scriptProperties, 1);
2424
$makeUrl = $modx->getOption('makeUrl', $scriptProperties, true);
25-
$privateUrl = $modx->getOption('privateUrl', $scriptProperties, false);
25+
$private = $modx->getOption('private', $scriptProperties, false);
2626
$includeTimeStamp = $modx->getOption('includeTimeStamp', $scriptProperties, false);
2727

2828

@@ -71,7 +71,7 @@
7171
$itemArr = $item->toArray();
7272

7373
if ($makeUrl) {
74-
if ($itemArr['private'] || $privateUrl) {
74+
if ($itemArr['private'] || $private) {
7575
$itemArr['url'] = $private_url . $itemArr['fid'];
7676
}
7777
else {

core/components/fileman/lexicon/en/default.inc.php

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,52 @@
22

33
include_once 'setting.inc.php';
44

5+
$_lang['fileman'] = 'FileMan';
6+
$_lang['fileman_menu_desc'] = 'Managing files attached to documents';
7+
$_lang['fileman_intro_msg'] = 'You can select multiple files at once using Shift and Ctrl.';
8+
$_lang['fileman_files'] = 'Files';
9+
10+
$_lang['fileman_open'] = 'Open access';
11+
$_lang['fileman_private'] = 'Close access';
12+
$_lang['fileman_update'] = 'Edit';
13+
$_lang['fileman_reset_downloads'] = 'reset downloads';
14+
15+
$_lang['fileman_btn_upload'] = '<i class="icon icon-upload"></i> Upload from drive';
16+
17+
$_lang['fileman_window_upload_by_url_title'] = '<i class="icon icon-link"></i> Upload by link';
18+
$_lang['fileman_btn_upload_by_url'] = '<i class="icon icon-link"></i> Upload by link';
19+
$_lang['fileman_btn_upload_by_url_tooltip'] = 'You can upload a file simply by providing a link to it';
20+
$_lang['fileman_field_url'] = 'File link:';
21+
$_lang['fileman_field_title'] = 'Title';
22+
$_lang['fileman_url_description'] = 'Copy the image URL, paste it into the box and click upload! You can also immediately set a name for the downloaded file.<br> Previews are available for images.';
23+
$_lang['fileman_url_close_window'] = 'Don\'t close the window after loading';
24+
25+
$_lang['fileman_id'] = 'Id';
26+
$_lang['fileman_sort_order'] = 'Order';
27+
$_lang['fileman_fid'] = 'File Id';
28+
$_lang['fileman_name'] = 'Name';
29+
$_lang['fileman_internal_name'] = 'Internal name';
30+
$_lang['fileman_extension'] = 'Extension';
31+
$_lang['fileman_path'] = 'Path';
32+
$_lang['fileman_title'] = 'Title';
33+
$_lang['fileman_description'] = 'Description';
34+
$_lang['fileman_group'] = 'Group';
35+
$_lang['fileman_hash'] = 'SHA1 hash';
36+
$_lang['fileman_size'] = 'Size';
37+
$_lang['fileman_download'] = 'Number of downloads';
38+
39+
$_lang['fileman_file_tab_general'] = 'General';
40+
$_lang['fileman_file_tab_settings'] = 'Settings';
41+
42+
$_lang['fileman_file_err_name'] = 'You must specify the file name.';
43+
$_lang['fileman_file_err_ae'] = 'A file with the same name already exists.';
44+
$_lang['fileman_file_err_nf'] = 'File not found.';
45+
$_lang['fileman_file_err_ns'] = 'File not specified.';
46+
$_lang['fileman_file_err_nr'] = 'The file has not been renamed.';
47+
$_lang['fileman_file_err_remove'] = 'Error while deleting file.';
48+
$_lang['fileman_file_err_save'] = 'An error occurred while saving the file.';
49+
50+
$_lang['fileman_reset_downloads_confirm'] = 'Are you sure you want to reset your download count?';
51+
$_lang['fileman_resets_downloads_confirm'] = 'Are you sure you want to reset the download count for the selected files?';
52+
$_lang['fileman_calculate'] = 'Calculate hash';
53+
$_lang['fileman_ddtext'] = 'Drag and drop';
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,16 @@
11
<?php
2+
3+
$_lang['fileman_prop_tpl'] = 'File list design chunk';
4+
$_lang['fileman_prop_sortBy'] = 'Sort field';
5+
$_lang['fileman_prop_sortDir'] = 'Sort direction';
6+
$_lang['fileman_prop_limit'] = 'Limit the number of results';
7+
$_lang['fileman_prop_offset'] = 'Offset in the request';
8+
$_lang['fileman_prop_totalVar'] = 'Name of a variable containing the total number of files';
9+
$_lang['fileman_prop_toPlaceholder'] = 'If this parameter is specified, the result will be saved to the placeholder, instead of directly displayed on the page';
10+
$_lang['fileman_prop_private'] = 'Forced to work in private mode';
11+
$_lang['fileman_prop_ids'] = 'List of specific id files for output';
12+
$_lang['fileman_prop_resource'] = 'Show files for this resource, by default - the current resource.';
13+
$_lang['fileman_prop_showGroups'] = 'Use grouping (if the group field is filled in)';
14+
$_lang['fileman_prop_makeUrl'] = 'Generate a link to download a file';
15+
$_lang['fileman_prop_includeTimeStamp'] = 'Include file modification date';
16+
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,25 @@
11
<?php
22

3+
$_lang['setting_fileman_mediasource'] = 'Media source';
4+
$_lang['setting_fileman_mediasource_desc'] = 'Media source for files.';
5+
6+
$_lang['setting_fileman_path'] = 'Path to files';
7+
$_lang['setting_fileman_path_desc'] = 'Path inside the file source. Must end with "/". Supports {year},{month},{day},{user},{resource} variables. Eg. files/{resource}/{year}/';
8+
9+
$_lang['setting_fileman_templates'] = 'Templates';
10+
$_lang['setting_fileman_templates_desc'] = 'List of templates for which the component works. Listing separated by commas. Works by default for all templates.';
11+
12+
$_lang['setting_fileman_calchash'] = 'Calculate file hash';
13+
$_lang['setting_fileman_calchash_desc'] = 'Calculate SHA1 hash of file when uploading.';
14+
15+
$_lang['setting_fileman_private'] = 'Private mode';
16+
$_lang['setting_fileman_private_desc'] = 'Save files with a random name by default so that you cannot access the file by name. Downloads are counted only for closed files.';
17+
18+
$_lang['setting_fileman_count_downloads'] = 'Count downloads';
19+
$_lang['setting_fileman_count_downloads_desc'] = 'Counting downloads increases the load on the database.';
20+
21+
$_lang['setting_fileman_auto_title'] = 'Auto titles';
22+
$_lang['setting_fileman_auto_title_desc'] = 'Automatically generates a title (file name without extension) when uploading a file.';
23+
24+
$_lang['setting_fileman_grid_fields'] = 'Fields in the grid';
25+
$_lang['setting_fileman_grid_fields_desc'] = 'Fields, separated by commas, that will be displayed in the list of files.';

core/components/fileman/lexicon/ru/default.inc.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
include_once 'setting.inc.php';
44

5-
$_lang['fileman'] = 'Прикрепленные файлы';
6-
$_lang['fileman_menu_desc'] = 'Файлы, прикрепленные к документам';
7-
$_lang['fileman_intro_msg'] = 'Вы можете выделять сразу несколько файлов при помощи Shift или Ctrl.';
5+
$_lang['fileman'] = 'FileMan';
6+
$_lang['fileman_menu_desc'] = 'Управление файлами, прикрепленными к документам';
7+
$_lang['fileman_intro_msg'] = 'Вы можете выделить сразу несколько файлов при помощи Shift или Ctrl.';
88
$_lang['fileman_files'] = 'Файлы';
99

1010
$_lang['fileman_open'] = 'Открыть доступ';
@@ -40,10 +40,10 @@
4040
$_lang['fileman_file_tab_settings'] = 'Настройки';
4141

4242
$_lang['fileman_file_err_name'] = 'Вы должны указать название файла.';
43-
$_lang['fileman_file_err_ae'] = 'файл с таким именем уже существует.';
44-
$_lang['fileman_file_err_nf'] = 'файл не найден.';
45-
$_lang['fileman_file_err_ns'] = 'файл не указан.';
46-
$_lang['fileman_file_err_nr'] = 'файл не переименован.';
43+
$_lang['fileman_file_err_ae'] = 'Файл с таким именем уже существует.';
44+
$_lang['fileman_file_err_nf'] = 'Файл не найден.';
45+
$_lang['fileman_file_err_ns'] = 'Файл не указан.';
46+
$_lang['fileman_file_err_nr'] = 'Файл не переименован.';
4747
$_lang['fileman_file_err_remove'] = 'Ошибка при удалении файла.';
4848
$_lang['fileman_file_err_save'] = 'Ошибка при сохранении файла.';
4949

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
<?php
22

3-
$_lang['fileman_all'] = 'Управление всеми файлами';
4-
$_lang['fileman_doc'] = 'Управление файлами в документе';
5-
$_lang['fileman_download'] = 'Скачивать закрытые файлы';
6-
$_lang['fileman_list'] = 'Листать прикреплённые файлы';
7-
$_lang['fileman_remove'] = 'Удалять прикрепленные файлы';
3+
//$_lang['fileman_permission'] = '';
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<?php
22

3-
$_lang['fileman_prop_limit'] = 'Ограничение вывода файлов на странице.';
4-
$_lang['fileman_prop_outputSeparator'] = 'Разделитель вывода строк.';
5-
$_lang['fileman_prop_sortBy'] = 'Поле сортировки.';
6-
$_lang['fileman_prop_sortDir'] = 'Направление сортировки.';
7-
$_lang['fileman_prop_tpl'] = 'Чанк оформления каждого ряда файлов.';
8-
$_lang['fileman_prop_toPlaceholder'] = 'Усли указан этот параметр, то результат будет сохранен в плейсхолдер, вместо прямого вывода на странице.';
3+
$_lang['fileman_prop_tpl'] = 'Чанк оформления списка файлов';
4+
$_lang['fileman_prop_sortBy'] = 'Поле сортировки';
5+
$_lang['fileman_prop_sortDir'] = 'Направление сортировки';
6+
$_lang['fileman_prop_limit'] = 'Ограничение количества в выборке';
7+
$_lang['fileman_prop_offset'] = 'Смещение (offset) в выборке';
8+
$_lang['fileman_prop_totalVar'] = 'Имя переменной, содержащей общее количество файлов';
9+
$_lang['fileman_prop_toPlaceholder'] = 'Усли указан этот параметр, то результат будет сохранен в плейсхолдер, вместо прямого вывода на странице';
910
$_lang['fileman_prop_private'] = 'Закрытый режим дает скачать файл через идентификатор файла';
10-
$_lang['fileman_prop_ids'] = 'Список ID файлов для вывода';
11-
$_lang['fileman_prop_resource'] = 'Показать файлы для документа с номером id';
12-
$_lang['fileman_prop_privateUrl'] = 'Форсировать использование обработчик скачиваний, что позволяет считать скачивания даже для открытых файлов';
11+
$_lang['fileman_prop_ids'] = 'Список конкретных id файлов для вывода';
12+
$_lang['fileman_prop_resource'] = 'Показать файлы для этого ресурса, по-умолчанию используется текущий';
13+
$_lang['fileman_prop_showGroups'] = 'Использовать группировку (если заполнено поле)';
1314
$_lang['fileman_prop_makeUrl'] = 'Создавать ссылку для скачивания файла';
14-
$_lang['fileman_prop_showSize'] = 'Получать размер файла';
15-
$_lang['fileman_prop_showExt'] = 'Выделять расширение из названия файла';
15+
$_lang['fileman_prop_includeTimeStamp'] = 'Получать дату модификации файла';
1616

core/components/fileman/lexicon/ru/setting.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
$_lang['setting_fileman_private'] = 'Закрытый режим';
1616
$_lang['setting_fileman_private_desc'] = 'Сохранять файлы по умолчанию со случайным именем чтобы нельзя было получить доступ к файлу по названию. Подсчет скачиваний ведется только для закрытых файлов';
1717

18-
$_lang['setting_fileman_download'] = 'Считать скачивания';
19-
$_lang['setting_fileman_download_desc'] = 'Счет скачиваний увеличивает нагрузку на БД';
18+
$_lang['setting_fileman_count_downloads'] = 'Считать скачивания';
19+
$_lang['setting_fileman_count_downloads_desc'] = 'Подсчёт скачиваний увеличивает нагрузку на БД';
2020

2121
$_lang['setting_fileman_auto_title'] = 'Авто-заголовок';
2222
$_lang['setting_fileman_auto_title_desc'] = 'Автоматически формирует Заголовок (имя файла без расширения) при загрузке файла';
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?php
22

3-
$_lang['fileman_source_name'] = 'Присоединенные файлы';
4-
$_lang['fileman_source_desc'] = 'Отображает присоединенные файлы к ресурсам.';
3+
//$_lang['fileman_source_name'] = 'Присоединенные файлы';
4+
//$_lang['fileman_source_desc'] = 'Отображает присоединенные файлы к ресурсам.';

core/components/fileman/src/FileMan.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public function download($fid) {
200200
}
201201

202202
// Count downloads if allowed by config
203-
if ($perform_count && $this->modx->getOption('fileman_download', null, true)) {
203+
if ($perform_count && $this->modx->getOption('fileman_count_downloads', null, true)) {
204204

205205
$count = $fileObject->get('download');
206206
$fileObject->set('download', $count + 1);

0 commit comments

Comments
 (0)