mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-04-15 11:56:36 +02:00
Переводы разделов
This commit is contained in:
parent
0a1b012d31
commit
8886e8c938
63
.github/workflows/os/docs_main.os
vendored
63
.github/workflows/os/docs_main.os
vendored
@ -17,6 +17,7 @@
|
|||||||
Перем Словарь;
|
Перем Словарь;
|
||||||
Перем Транслитация;
|
Перем Транслитация;
|
||||||
Перем СчетчикБиблиотеки;
|
Перем СчетчикБиблиотеки;
|
||||||
|
Перем СоответствиеЗаголовков;
|
||||||
|
|
||||||
Процедура ПриСозданииОбъекта()
|
Процедура ПриСозданииОбъекта()
|
||||||
|
|
||||||
@ -33,6 +34,8 @@
|
|||||||
ТекущаяОбласть = "";
|
ТекущаяОбласть = "";
|
||||||
СчетчикОбласти = 0;
|
СчетчикОбласти = 0;
|
||||||
|
|
||||||
|
СоответствиеЗаголовков = Новый Соответствие();
|
||||||
|
|
||||||
ЧтениеJSON = Новый ЧтениеJSON();
|
ЧтениеJSON = Новый ЧтениеJSON();
|
||||||
ЧтениеJSON.ОткрытьФайл(ПутьКСловарю);
|
ЧтениеJSON.ОткрытьФайл(ПутьКСловарю);
|
||||||
Словарь = ПрочитатьJSON(ЧтениеJSON, Истина);
|
Словарь = ПрочитатьJSON(ЧтениеJSON, Истина);
|
||||||
@ -96,6 +99,8 @@
|
|||||||
|
|
||||||
СинонимОбласти = СтрЗаменить(ТранслитированнаяОбласть, "-", " ");
|
СинонимОбласти = СтрЗаменить(ТранслитированнаяОбласть, "-", " ");
|
||||||
ЗаголовокОбласти = Синонимайзер(Область);
|
ЗаголовокОбласти = Синонимайзер(Область);
|
||||||
|
|
||||||
|
СоответствиеЗаголовков.Вставить(ЗаголовокОбласти, СинонимОбласти);
|
||||||
|
|
||||||
ИмяМодуляБезПрефикса = СтрЗаменить(СтруктураМетода["ИмяМодуля"], "OPI_", "");
|
ИмяМодуляБезПрефикса = СтрЗаменить(СтруктураМетода["ИмяМодуля"], "OPI_", "");
|
||||||
|
|
||||||
@ -703,29 +708,51 @@
|
|||||||
Продолжить;
|
Продолжить;
|
||||||
КонецЕсли;
|
КонецЕсли;
|
||||||
|
|
||||||
ТекущийДокумент = Новый ТекстовыйДокумент();
|
Если Файл.Имя = "_category_.json" Тогда
|
||||||
ТекущийДокумент.Прочитать(Файл.ПолноеИмя, "UTF-8");
|
|
||||||
ТекстДокумента = ТекущийДокумент.ПолучитьТекст();
|
|
||||||
|
|
||||||
Для Каждого Слово Из ТаблицаСловаря Цикл
|
ФайлКатегории = Файл.ПолноеИмя;
|
||||||
ТекстДокумента = СтрЗаменить(ТекстДокумента, Слово.Ключ, Слово.Значение);
|
ЧтениеJSON = Новый ЧтениеJSON();
|
||||||
КонецЦикла;
|
ЧтениеJSON.ОткрытьФайл(ФайлКатегории);
|
||||||
|
СтруктураКатегории = ПрочитатьJSON(ЧтениеJSON, Истина);
|
||||||
|
ЧтениеJSON.Закрыть();
|
||||||
|
|
||||||
Пока СтрНайти(ТекстДокумента, " ") <> 0 Цикл
|
СтруктураКатегории.Вставить("label", СоответствиеЗаголовков[СтруктураКатегории["label"]]);
|
||||||
ТекстДокумента = СтрЗаменить(ТекстДокумента, " ", " ");
|
|
||||||
КонецЦикла;
|
Запись = Новый ЗаписьJSON;
|
||||||
|
ПараметрыЗаписиJSON = Новый ПараметрыЗаписиJSON(ПереносСтрокJSON.Авто);
|
||||||
|
Запись.ОткрытьФайл(ФайлКатегории, , , ПараметрыЗаписиJSON);
|
||||||
|
ЗаписатьJSON(Запись, СтруктураКатегории);
|
||||||
|
Запись.Закрыть();
|
||||||
|
|
||||||
ТекстДокумента = СтрЗаменить(ТекстДокумента, " ,", ",");
|
Иначе
|
||||||
|
|
||||||
|
ТекущийДокумент = Новый ТекстовыйДокумент();
|
||||||
|
ТекущийДокумент.Прочитать(Файл.ПолноеИмя, "UTF-8");
|
||||||
|
ТекстДокумента = ТекущийДокумент.ПолучитьТекст();
|
||||||
|
|
||||||
|
Для Каждого Слово Из ТаблицаСловаря Цикл
|
||||||
|
ТекстДокумента = СтрЗаменить(ТекстДокумента, Слово.Ключ, Слово.Значение);
|
||||||
|
КонецЦикла;
|
||||||
|
|
||||||
|
Пока СтрНайти(ТекстДокумента, " ") <> 0 Цикл
|
||||||
|
ТекстДокумента = СтрЗаменить(ТекстДокумента, " ", " ");
|
||||||
|
КонецЦикла;
|
||||||
|
|
||||||
|
ТекстДокумента = СтрЗаменить(ТекстДокумента, " ,", ",");
|
||||||
|
|
||||||
|
ТекущийДокумент.УстановитьТекст(ТекстДокумента);
|
||||||
|
ТекущийДокумент.Записать(Файл.ПолноеИмя);
|
||||||
|
|
||||||
|
КонецЕсли;
|
||||||
|
|
||||||
|
Для Каждого Буква Из Транслитация Цикл
|
||||||
|
Если СтрНайти(ТекстДокумента, Буква.Ключ) <> 0 Тогда
|
||||||
|
Сообщить("Ошибка перевода | " + Файл.ПолноеИмя);
|
||||||
|
Прервать;
|
||||||
|
КонецЕсли;
|
||||||
|
КонецЦикла;
|
||||||
|
|
||||||
ТекущийДокумент.УстановитьТекст(ТекстДокумента);
|
|
||||||
ТекущийДокумент.Записать(Файл.ПолноеИмя);
|
|
||||||
|
|
||||||
Для Каждого Буква Из Транслитация Цикл
|
|
||||||
Если СтрНайти(ТекстДокумента, Буква.Ключ) <> 0 Тогда
|
|
||||||
Сообщить("Ошибка перевода | " + Файл.ПолноеИмя);
|
|
||||||
Прервать;
|
|
||||||
КонецЕсли;
|
|
||||||
КонецЦикла;
|
|
||||||
|
|
||||||
КонецЦикла;
|
КонецЦикла;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Work with toомментарandямand",
|
"label": "Comment management",
|
||||||
"position": "6"
|
"position": "6"
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Work with базамand",
|
"label": "Database work",
|
||||||
"position": "2"
|
"position": "2"
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Work with fieldsмand",
|
"label": "Field work",
|
||||||
"position": "4"
|
"position": "4"
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Work with запandwithямand",
|
"label": "Record management",
|
||||||
"position": "5"
|
"position": "5"
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Work with таблandцамand",
|
"label": "Table management",
|
||||||
"position": "3"
|
"position": "3"
|
||||||
}
|
}
|
@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"label": "Airtable",
|
"label": null,
|
||||||
"position": 11,
|
"position": 11,
|
||||||
"link": {
|
"link": {
|
||||||
"type": "doc",
|
"type": "doc",
|
||||||
"id": "Airtable"
|
"id": "Airtable"
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Account and аinторfromацandя",
|
"label": "Account and authorization",
|
||||||
"position": "2"
|
"position": "2"
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Work with fileмand and directoryмand",
|
"label": "File and directory management",
|
||||||
"position": "3"
|
"position": "3"
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Nаwithтройtoand withinмеwithтного доwithтупа",
|
"label": "Shared access settings",
|
||||||
"position": "5"
|
"position": "5"
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Work with тегамand",
|
"label": "Tag work",
|
||||||
"position": "4"
|
"position": "4"
|
||||||
}
|
}
|
@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"label": "Dropbox (pre-release)",
|
"label": null,
|
||||||
"position": 12,
|
"position": 12,
|
||||||
"link": {
|
"link": {
|
||||||
"type": "doc",
|
"type": "doc",
|
||||||
"id": "Dropbox"
|
"id": "Dropbox"
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Work with withпandwithtoом toалендарей",
|
"label": "Calendar list management",
|
||||||
"position": "3"
|
"position": "3"
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Work with метаданнымand toалендарей",
|
"label": "Calendar metadata management",
|
||||||
"position": "2"
|
"position": "2"
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Work with eventsмand",
|
"label": "Event management",
|
||||||
"position": "4"
|
"position": "4"
|
||||||
}
|
}
|
@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"label": "Google Calendar",
|
"label": null,
|
||||||
"position": 7,
|
"position": 7,
|
||||||
"link": {
|
"link": {
|
||||||
"type": "doc",
|
"type": "doc",
|
||||||
"id": "GoogleCalendar"
|
"id": "GoogleCalendar"
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Work with toомментарandямand",
|
"label": "Comment management",
|
||||||
"position": "3"
|
"position": "3"
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Work with fileмand and directoryмand",
|
"label": "File and directory management",
|
||||||
"position": "2"
|
"position": "2"
|
||||||
}
|
}
|
@ -1,10 +1,8 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
"label": "Google Drive",
|
"label": null,
|
||||||
"position": 8,
|
"position": 8,
|
||||||
"link": {
|
"link": {
|
||||||
"type": "doc",
|
"type": "doc",
|
||||||
"id": "GoogleDrive"
|
"id": "GoogleDrive"
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Work with toнandгамand",
|
"label": "Book work",
|
||||||
"position": "2"
|
"position": "2"
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Work with даннымand",
|
"label": "Data work",
|
||||||
"position": "4"
|
"position": "4"
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Work with лandwithтамand",
|
"label": "Sheet work",
|
||||||
"position": "3"
|
"position": "3"
|
||||||
}
|
}
|
@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"label": "Google Sheets",
|
"label": null,
|
||||||
"position": 9,
|
"position": 9,
|
||||||
"link": {
|
"link": {
|
||||||
"type": "doc",
|
"type": "doc",
|
||||||
"id": "GoogleSheets"
|
"id": "GoogleSheets"
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Work with блоtoамand",
|
"label": "Blocks managment",
|
||||||
"position": "4"
|
"position": "4"
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Work with базамand data",
|
"label": "Database management",
|
||||||
"position": "3"
|
"position": "3"
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Work with withтранandцамand",
|
"label": "Page management",
|
||||||
"position": "2"
|
"position": "2"
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Users",
|
"label": "Users",
|
||||||
"position": "5"
|
"position": "5"
|
||||||
}
|
}
|
@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"label": "Notion",
|
"label": null,
|
||||||
"position": 6,
|
"position": 6,
|
||||||
"link": {
|
"link": {
|
||||||
"type": "doc",
|
"type": "doc",
|
||||||
"id": "Notion"
|
"id": "Notion"
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Формandроinанandе блоtoоin",
|
"label": "Block formation",
|
||||||
"position": "8"
|
"position": "8"
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Work with toаtoламand",
|
"label": "Channel management",
|
||||||
"position": "4"
|
"position": "4"
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Work with удаленнымand fileмand",
|
"label": "Deleted files management",
|
||||||
"position": "7"
|
"position": "7"
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Work with дandалогамand",
|
"label": "Dialog management",
|
||||||
"position": "5"
|
"position": "5"
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Work with fileмand",
|
"label": "File work",
|
||||||
"position": "6"
|
"position": "6"
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Упраinленandе and towithтройtoand",
|
"label": "Management and settings",
|
||||||
"position": "2"
|
"position": "2"
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Work with withобщенandямand",
|
"label": "Message management",
|
||||||
"position": "3"
|
"position": "3"
|
||||||
}
|
}
|
@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"label": "Slack",
|
"label": null,
|
||||||
"position": 9,
|
"position": 9,
|
||||||
"link": {
|
"link": {
|
||||||
"type": "doc",
|
"type": "doc",
|
||||||
"id": "Slack"
|
"id": "Slack"
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"label": "Getting started",
|
"label": null,
|
||||||
"position": 1,
|
"position": 1,
|
||||||
"link": {
|
"link": {
|
||||||
"type": "doc",
|
"type": "doc",
|
||||||
"id": "Start"
|
"id": "Start"
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Administration",
|
"label": "Administration",
|
||||||
"position": "4"
|
"position": "4"
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Obtaining data and towithтройtoа",
|
"label": "Data retrieval and settings",
|
||||||
"position": "2"
|
"position": "2"
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Sending data",
|
"label": "Data sending",
|
||||||
"position": "3"
|
"position": "3"
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Work with темамand форума",
|
"label": "Forum topic management",
|
||||||
"position": "5"
|
"position": "5"
|
||||||
}
|
}
|
@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"label": "Telegram",
|
"label": null,
|
||||||
"position": 2,
|
"position": 2,
|
||||||
"link": {
|
"link": {
|
||||||
"type": "doc",
|
"type": "doc",
|
||||||
"id": "Telegram"
|
"id": "Telegram"
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Data and towithтройtoа",
|
"label": "Data and settings",
|
||||||
"position": "2"
|
"position": "2"
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Tweets",
|
"label": "Tweets",
|
||||||
"position": "3"
|
"position": "3"
|
||||||
}
|
}
|
@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"label": "Twitter",
|
"label": null,
|
||||||
"position": 4,
|
"position": 4,
|
||||||
"link": {
|
"link": {
|
||||||
"type": "doc",
|
"type": "doc",
|
||||||
"id": "Twitter"
|
"id": "Twitter"
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Work with реtoламным toабandнетом",
|
"label": "Ad account management",
|
||||||
"position": "7"
|
"position": "7"
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Work with обwithужденandямand",
|
"label": "Discussion management",
|
||||||
"position": "4"
|
"position": "4"
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Work with группой",
|
"label": "Group work",
|
||||||
"position": "3"
|
"position": "3"
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Andнтераtoтandinные дейwithтinandя",
|
"label": "Interactive actions",
|
||||||
"position": "5"
|
"position": "5"
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Work with заtoазамand",
|
"label": "Order management",
|
||||||
"position": "11"
|
"position": "11"
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Others",
|
"label": "Others",
|
||||||
"position": "12"
|
"position": "12"
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Work with productмand",
|
"label": "Product management",
|
||||||
"position": "8"
|
"position": "8"
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Work with propertiesамand тоinароin",
|
"label": "Product properties management",
|
||||||
"position": "10"
|
"position": "10"
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Work with подборtoамand тоinароin",
|
"label": "Product selection management",
|
||||||
"position": "9"
|
"position": "9"
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Statistics",
|
"label": "Statistics",
|
||||||
"position": "6"
|
"position": "6"
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Obtaining тоtoеto",
|
"label": "Token retrieval",
|
||||||
"position": "2"
|
"position": "2"
|
||||||
}
|
}
|
@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"label": "VK",
|
"label": null,
|
||||||
"position": 3,
|
"position": 3,
|
||||||
"link": {
|
"link": {
|
||||||
"type": "doc",
|
"type": "doc",
|
||||||
"id": "VK"
|
"id": "VK"
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Sending withобщенandй",
|
"label": "Message sending",
|
||||||
"position": "3"
|
"position": "3"
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Nаwithтройtoand and andнформацandя",
|
"label": "Settings and information",
|
||||||
"position": "2"
|
"position": "2"
|
||||||
}
|
}
|
@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"label": "Viber",
|
"label": null,
|
||||||
"position": 3,
|
"position": 3,
|
||||||
"link": {
|
"link": {
|
||||||
"type": "doc",
|
"type": "doc",
|
||||||
"id": "Viber"
|
"id": "Viber"
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Work with fileмand and папtoамand",
|
"label": "File and folder management",
|
||||||
"position": "2"
|
"position": "2"
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Упраinленandе публandчным доwithтупом",
|
"label": "Manage public access",
|
||||||
"position": "3"
|
"position": "3"
|
||||||
}
|
}
|
@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"label": "Yandex Disk",
|
"label": null,
|
||||||
"position": 13,
|
"position": 13,
|
||||||
"link": {
|
"link": {
|
||||||
"type": "doc",
|
"type": "doc",
|
||||||
"id": "YandexDisk"
|
"id": "YandexDisk"
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user