1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-25 22:12:29 +02:00

Переводы разделов

This commit is contained in:
Anton Titovets
2024-06-07 13:38:35 +03:00
parent 0a1b012d31
commit 8886e8c938
63 changed files with 277 additions and 252 deletions

View File

@@ -17,6 +17,7 @@
Перем Словарь; Перем Словарь;
Перем Транслитация; Перем Транслитация;
Перем СчетчикБиблиотеки; Перем СчетчикБиблиотеки;
Перем СоответствиеЗаголовков;
Процедура ПриСозданииОбъекта() Процедура ПриСозданииОбъекта()
@@ -33,6 +34,8 @@
ТекущаяОбласть = ""; ТекущаяОбласть = "";
СчетчикОбласти = 0; СчетчикОбласти = 0;
СоответствиеЗаголовков = Новый Соответствие();
ЧтениеJSON = Новый ЧтениеJSON(); ЧтениеJSON = Новый ЧтениеJSON();
ЧтениеJSON.ОткрытьФайл(ПутьКСловарю); ЧтениеJSON.ОткрытьФайл(ПутьКСловарю);
Словарь = ПрочитатьJSON(ЧтениеJSON, Истина); Словарь = ПрочитатьJSON(ЧтениеJSON, Истина);
@@ -97,6 +100,8 @@
СинонимОбласти = СтрЗаменить(ТранслитированнаяОбласть, "-", " "); СинонимОбласти = СтрЗаменить(ТранслитированнаяОбласть, "-", " ");
ЗаголовокОбласти = Синонимайзер(Область); ЗаголовокОбласти = Синонимайзер(Область);
СоответствиеЗаголовков.Вставить(ЗаголовокОбласти, СинонимОбласти);
ИмяМодуляБезПрефикса = СтрЗаменить(СтруктураМетода["ИмяМодуля"], "OPI_", ""); ИмяМодуляБезПрефикса = СтрЗаменить(СтруктураМетода["ИмяМодуля"], "OPI_", "");
КаталогБиблиотеки = КаталогДокументации + "/" + СтруктураМетода["Каталог"]; КаталогБиблиотеки = КаталогДокументации + "/" + СтруктураМетода["Каталог"];
@@ -703,6 +708,24 @@
Продолжить; Продолжить;
КонецЕсли; КонецЕсли;
Если Файл.Имя = "_category_.json" Тогда
ФайлКатегории = Файл.ПолноеИмя;
ЧтениеJSON = Новый ЧтениеJSON();
ЧтениеJSON.ОткрытьФайл(ФайлКатегории);
СтруктураКатегории = ПрочитатьJSON(ЧтениеJSON, Истина);
ЧтениеJSON.Закрыть();
СтруктураКатегории.Вставить("label", СоответствиеЗаголовков[СтруктураКатегории["label"]]);
Запись = Новый ЗаписьJSON;
ПараметрыЗаписиJSON = Новый ПараметрыЗаписиJSON(ПереносСтрокJSON.Авто);
Запись.ОткрытьФайл(ФайлКатегории, , , ПараметрыЗаписиJSON);
ЗаписатьJSON(Запись, СтруктураКатегории);
Запись.Закрыть();
Иначе
ТекущийДокумент = Новый ТекстовыйДокумент(); ТекущийДокумент = Новый ТекстовыйДокумент();
ТекущийДокумент.Прочитать(Файл.ПолноеИмя, "UTF-8"); ТекущийДокумент.Прочитать(Файл.ПолноеИмя, "UTF-8");
ТекстДокумента = ТекущийДокумент.ПолучитьТекст(); ТекстДокумента = ТекущийДокумент.ПолучитьТекст();
@@ -720,6 +743,8 @@
ТекущийДокумент.УстановитьТекст(ТекстДокумента); ТекущийДокумент.УстановитьТекст(ТекстДокумента);
ТекущийДокумент.Записать(Файл.ПолноеИмя); ТекущийДокумент.Записать(Файл.ПолноеИмя);
КонецЕсли;
Для Каждого Буква Из Транслитация Цикл Для Каждого Буква Из Транслитация Цикл
Если СтрНайти(ТекстДокумента, Буква.Ключ) <> 0 Тогда Если СтрНайти(ТекстДокумента, Буква.Ключ) <> 0 Тогда
Сообщить("Ошибка перевода | " + Файл.ПолноеИмя); Сообщить("Ошибка перевода | " + Файл.ПолноеИмя);
@@ -727,6 +752,8 @@
КонецЕсли; КонецЕсли;
КонецЦикла; КонецЦикла;
КонецЦикла; КонецЦикла;
Сообщить("Перевод завершен!"); Сообщить("Перевод завершен!");

View File

@@ -1,4 +1,4 @@
{ {
"label": "Work with toомментарandямand", "label": "Comment management",
"position": "6" "position": "6"
} }

View File

@@ -1,4 +1,4 @@
{ {
"label": "Work with базамand", "label": "Database work",
"position": "2" "position": "2"
} }

View File

@@ -1,4 +1,4 @@
{ {
"label": "Work with fieldsмand", "label": "Field work",
"position": "4" "position": "4"
} }

View File

@@ -1,4 +1,4 @@
{ {
"label": "Work with запandwithямand", "label": "Record management",
"position": "5" "position": "5"
} }

View File

@@ -1,4 +1,4 @@
{ {
"label": "Work with таблandцамand", "label": "Table management",
"position": "3" "position": "3"
} }

View File

@@ -1,5 +1,5 @@
{ {
"label": "Airtable", "label": null,
"position": 11, "position": 11,
"link": { "link": {
"type": "doc", "type": "doc",

View File

@@ -1,4 +1,4 @@
{ {
"label": "Account and аinторfromацandя", "label": "Account and authorization",
"position": "2" "position": "2"
} }

View File

@@ -1,4 +1,4 @@
{ {
"label": "Work with fileмand and directoryмand", "label": "File and directory management",
"position": "3" "position": "3"
} }

View File

@@ -1,4 +1,4 @@
{ {
"label": "Nаwithтройtoand withinмеwithтного доwithтупа", "label": "Shared access settings",
"position": "5" "position": "5"
} }

View File

@@ -1,4 +1,4 @@
{ {
"label": "Work with тегамand", "label": "Tag work",
"position": "4" "position": "4"
} }

View File

@@ -1,5 +1,5 @@
{ {
"label": "Dropbox (pre-release)", "label": null,
"position": 12, "position": 12,
"link": { "link": {
"type": "doc", "type": "doc",

View File

@@ -1,4 +1,4 @@
{ {
"label": "Work with withпandwithtoом toалендарей", "label": "Calendar list management",
"position": "3" "position": "3"
} }

View File

@@ -1,4 +1,4 @@
{ {
"label": "Work with метаданнымand toалендарей", "label": "Calendar metadata management",
"position": "2" "position": "2"
} }

View File

@@ -1,4 +1,4 @@
{ {
"label": "Work with eventsмand", "label": "Event management",
"position": "4" "position": "4"
} }

View File

@@ -1,5 +1,5 @@
{ {
"label": "Google Calendar", "label": null,
"position": 7, "position": 7,
"link": { "link": {
"type": "doc", "type": "doc",

View File

@@ -1,4 +1,4 @@
{ {
"label": "Work with toомментарandямand", "label": "Comment management",
"position": "3" "position": "3"
} }

View File

@@ -1,4 +1,4 @@
{ {
"label": "Work with fileмand and directoryмand", "label": "File and directory management",
"position": "2" "position": "2"
} }

View File

@@ -1,10 +1,8 @@

{ {
"label": "Google Drive", "label": null,
"position": 8, "position": 8,
"link": { "link": {
"type": "doc", "type": "doc",
"id": "GoogleDrive" "id": "GoogleDrive"
} }
} }

View File

@@ -1,4 +1,4 @@
{ {
"label": "Work with toнandгамand", "label": "Book work",
"position": "2" "position": "2"
} }

View File

@@ -1,4 +1,4 @@
{ {
"label": "Work with даннымand", "label": "Data work",
"position": "4" "position": "4"
} }

View File

@@ -1,4 +1,4 @@
{ {
"label": "Work with лandwithтамand", "label": "Sheet work",
"position": "3" "position": "3"
} }

View File

@@ -1,5 +1,5 @@
{ {
"label": "Google Sheets", "label": null,
"position": 9, "position": 9,
"link": { "link": {
"type": "doc", "type": "doc",

View File

@@ -1,4 +1,4 @@
{ {
"label": "Work with блоtoамand", "label": "Blocks managment",
"position": "4" "position": "4"
} }

View File

@@ -1,4 +1,4 @@
{ {
"label": "Work with базамand data", "label": "Database management",
"position": "3" "position": "3"
} }

View File

@@ -1,4 +1,4 @@
{ {
"label": "Work with withтранandцамand", "label": "Page management",
"position": "2" "position": "2"
} }

View File

@@ -1,4 +1,4 @@
{ {
"label": "Users", "label": "Users",
"position": "5" "position": "5"
} }

View File

@@ -1,5 +1,5 @@
{ {
"label": "Notion", "label": null,
"position": 6, "position": 6,
"link": { "link": {
"type": "doc", "type": "doc",

View File

@@ -1,4 +1,4 @@
{ {
"label": "Формandроinанandе блоtoоin", "label": "Block formation",
"position": "8" "position": "8"
} }

View File

@@ -1,4 +1,4 @@
{ {
"label": "Work with toаtoламand", "label": "Channel management",
"position": "4" "position": "4"
} }

View File

@@ -1,4 +1,4 @@
{ {
"label": "Work with удаленнымand fileмand", "label": "Deleted files management",
"position": "7" "position": "7"
} }

View File

@@ -1,4 +1,4 @@
{ {
"label": "Work with дandалогамand", "label": "Dialog management",
"position": "5" "position": "5"
} }

View File

@@ -1,4 +1,4 @@
{ {
"label": "Work with fileмand", "label": "File work",
"position": "6" "position": "6"
} }

View File

@@ -1,4 +1,4 @@
{ {
"label": "Упраinленandе and towithтройtoand", "label": "Management and settings",
"position": "2" "position": "2"
} }

View File

@@ -1,4 +1,4 @@
{ {
"label": "Work with withобщенandямand", "label": "Message management",
"position": "3" "position": "3"
} }

View File

@@ -1,5 +1,5 @@
{ {
"label": "Slack", "label": null,
"position": 9, "position": 9,
"link": { "link": {
"type": "doc", "type": "doc",

View File

@@ -1,5 +1,5 @@
{ {
"label": "Getting started", "label": null,
"position": 1, "position": 1,
"link": { "link": {
"type": "doc", "type": "doc",

View File

@@ -1,4 +1,4 @@
{ {
"label": "Administration", "label": "Administration",
"position": "4" "position": "4"
} }

View File

@@ -1,4 +1,4 @@
{ {
"label": "Obtaining data and towithтройtoа", "label": "Data retrieval and settings",
"position": "2" "position": "2"
} }

View File

@@ -1,4 +1,4 @@
{ {
"label": "Sending data", "label": "Data sending",
"position": "3" "position": "3"
} }

View File

@@ -1,4 +1,4 @@
{ {
"label": "Work with темамand форума", "label": "Forum topic management",
"position": "5" "position": "5"
} }

View File

@@ -1,5 +1,5 @@
{ {
"label": "Telegram", "label": null,
"position": 2, "position": 2,
"link": { "link": {
"type": "doc", "type": "doc",

View File

@@ -1,4 +1,4 @@
{ {
"label": "Data and towithтройtoа", "label": "Data and settings",
"position": "2" "position": "2"
} }

View File

@@ -1,4 +1,4 @@
{ {
"label": "Tweets", "label": "Tweets",
"position": "3" "position": "3"
} }

View File

@@ -1,5 +1,5 @@
{ {
"label": "Twitter", "label": null,
"position": 4, "position": 4,
"link": { "link": {
"type": "doc", "type": "doc",

View File

@@ -1,4 +1,4 @@
{ {
"label": "Work with реtoламным toабandнетом", "label": "Ad account management",
"position": "7" "position": "7"
} }

View File

@@ -1,4 +1,4 @@
{ {
"label": "Work with обwithужденandямand", "label": "Discussion management",
"position": "4" "position": "4"
} }

View File

@@ -1,4 +1,4 @@
{ {
"label": "Work with группой", "label": "Group work",
"position": "3" "position": "3"
} }

View File

@@ -1,4 +1,4 @@
{ {
"label": "Andнтераtoтandinные дейwithтinandя", "label": "Interactive actions",
"position": "5" "position": "5"
} }

View File

@@ -1,4 +1,4 @@
{ {
"label": "Work with заtoазамand", "label": "Order management",
"position": "11" "position": "11"
} }

View File

@@ -1,4 +1,4 @@
{ {
"label": "Others", "label": "Others",
"position": "12" "position": "12"
} }

View File

@@ -1,4 +1,4 @@
{ {
"label": "Work with productмand", "label": "Product management",
"position": "8" "position": "8"
} }

View File

@@ -1,4 +1,4 @@
{ {
"label": "Work with propertiesамand тоinароin", "label": "Product properties management",
"position": "10" "position": "10"
} }

View File

@@ -1,4 +1,4 @@
{ {
"label": "Work with подборtoамand тоinароin", "label": "Product selection management",
"position": "9" "position": "9"
} }

View File

@@ -1,4 +1,4 @@
{ {
"label": "Statistics", "label": "Statistics",
"position": "6" "position": "6"
} }

View File

@@ -1,4 +1,4 @@
{ {
"label": "Obtaining тоtoеto", "label": "Token retrieval",
"position": "2" "position": "2"
} }

View File

@@ -1,5 +1,5 @@
{ {
"label": "VK", "label": null,
"position": 3, "position": 3,
"link": { "link": {
"type": "doc", "type": "doc",

View File

@@ -1,4 +1,4 @@
{ {
"label": "Sending withобщенandй", "label": "Message sending",
"position": "3" "position": "3"
} }

View File

@@ -1,4 +1,4 @@
{ {
"label": "Nаwithтройtoand and andнформацandя", "label": "Settings and information",
"position": "2" "position": "2"
} }

View File

@@ -1,5 +1,5 @@
{ {
"label": "Viber", "label": null,
"position": 3, "position": 3,
"link": { "link": {
"type": "doc", "type": "doc",

View File

@@ -1,4 +1,4 @@
{ {
"label": "Work with fileмand and папtoамand", "label": "File and folder management",
"position": "2" "position": "2"
} }

View File

@@ -1,4 +1,4 @@
{ {
"label": "Упраinленandе публandчным доwithтупом", "label": "Manage public access",
"position": "3" "position": "3"
} }

View File

@@ -1,5 +1,5 @@
{ {
"label": "Yandex Disk", "label": null,
"position": 13, "position": 13,
"link": { "link": {
"type": "doc", "type": "doc",