epublishing/ePublishing/Translations.xba

471 lines
24 KiB
Text
Raw Normal View History

2020-05-05 14:01:41 +02:00
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="Translations" script:language="StarBasic" script:moduleType="normal">Function getTranslation(identifier As String) As String
Globalscope.BasicLibraries.LoadLibrary( &quot;Tools&quot; )
Dim lang As String
lang = GetStarOfficeLocale().Language
Select Case lang
Case &quot;ru&quot;
getTranslation = getRussian(identifier)
Exit Function
Case Else
getTranslation = getEnglish(identifier)
Exit Function
End Select
End Function
Function getRussian(identifier As String) As String
Select Case identifier
Case &quot;buttonOk&quot;
getRussian = &quot;Применить&quot;
Exit Function
Case &quot;buttonCancel&quot;
getRussian = &quot;Отмена&quot;
Exit Function
Case &quot;configText1&quot;
getRussian = &quot;Введите в поле число от 0 до 10&quot;
Exit Function
Case &quot;configText2&quot;
getRussian = &quot;0 - возврат к автоматической нумерации&quot;
Exit Function
Case &quot;configText3&quot;
getRussian = &quot;Начать нумерацию сноско заново&quot;
Exit Function
Case &quot;configText4&quot;
getRussian = &quot;после заголовков&quot;
Exit Function
Case &quot;configText5&quot;
getRussian = &quot;уровня&quot;
Exit Function
Case &quot;footnotesConfigDialogTitle&quot;
getRussian = &quot;Применение нумерации сносок&quot;
Exit Function
Case &quot;statusNumberingInProcess&quot;
getRussian = &quot;Производится нумерация сносок&quot;
Exit Function
Case &quot;numberingInputOutOfRange&quot;
getRussian = &quot;Введенное число вне допустимого диапазона. Введите число от 0 до 10.&quot;
Exit Function
Case &quot;statusNumberingFinished&quot;
getRussian = &quot;Нумерация сносок успешно завершена.&quot;
Exit Function
Case &quot;replaceParaStyleDialogTitle&quot;
2020-05-05 14:20:11 +02:00
getRussian = &quot;Заменить стиль параграфа (с удалением) на выбранный стиль&quot;
Exit Function
Case &quot;bidirectLinkSuggestion&quot;
getRussian = &quot;Нужно выделить два объекта для связывания&quot;
Exit Function
Case &quot;convertIndesignPageBreaksConfirmation&quot;
getRussian = &quot;Запустить восстановление разрывов страниц?&quot;
Exit Function
Case &quot;convertIndesignPageBreaksFinish&quot;
getRussian = &quot;Восстановление разрывов страниц завершено.&quot;
Exit Function
Case &quot;convertIndesignFoonotesConfirmation&quot;
getRussian = &quot;Запустить восстановление сносок из текста?&quot;
Exit Function
Case &quot;convertIndesignFootnotesFinish&quot;
getRussian = &quot;Восстановление сносок завершено.&quot;
Exit Function
Case &quot;replaceParaStyleStylesEqualsNotification&quot;
getRussian = &quot;Стиль параграфа и выбраный для замены стиль не различаются.&quot;
Exit Function
Case &quot;replaceParaStyleCurrentStyleIsStandard&quot;
getRussian = &quot;Текущий стиль параграфа является стандратным и не может быть заменен.&quot;
Exit Function
Case &quot;unrecoverableError&quot;
getRussian = &quot;Произошла ошибка. Пожалуйста, сообщите разработчику https://litvinovg.pro/pages/about.html&quot;
Exit Function
Case &quot;albumRotationCheckPageSettings&quot;
getRussian = &quot;Проверьте размеры колонтитулов и снова запустите данную функцию&quot;
Exit Function
Case &quot;albumRotationPageIsAlreadyAlbum&quot;
getRussian = &quot;Страница уже имеет портретную ориентацию. Ничего не делаем.&quot;
Exit Function
Case &quot;albumRotationBackupStyleNotFound1&quot;
getRussian = &quot;Стиль страницы с портретной ориентацией&quot;
Exit Function
Case &quot;albumRotationBackupStyleNotFound2&quot;
getRussian = &quot;не был найден.&quot;
Exit Function
Case &quot;albumRotationDynamicHeaderHeight&quot;
getRussian = &quot;Высота верхнего колонтитула была задана динамической. Невозможно вычислить рельную высоту. Отключаем динамическую высоту. Проверьте настройки страницы.&quot;
Exit Function
Case &quot;albumRotationDynamicHeaderOffset&quot;
getRussian = &quot;Отступ верхнего колонтитула от тела страницы был задан динамическим. Отключаем. Невозможно вычислить реальный отступ. Проверьте настройки страницы.&quot;
Exit Function
Case &quot;albumRotationDynamicFooterHeight&quot;
getRussian = &quot;Высота нихнего колонтитула была задана динамической. Невозможно вычислить рельную высоту. Отключаем динамическую высоту. Проверьте настройки страницы.&quot;
Exit Function
Case &quot;albumRotationDynamicFooterOffset&quot;
getRussian = &quot;Отступ нижнего колонтитула от тела страницы был задан динамическим. Отключаем. Невозможно вычислить рельный отступ. Проверьте настройки страницы.&quot;
Exit Function
Case &quot;hyphenationsFailed&quot;
getRussian = &quot;Конвертация переносов завершилась ошибкой. Сообщите разработчику https://litvinovg.pro/pages/about.html&quot;
Exit Function
Case &quot;hyphenationsSuccess&quot;
getRussian = &quot;Конвертация переносов успешно завершена.&quot;
Exit Function
Case &quot;hyphenationsInProgress&quot;
getRussian = &quot;Производится конвертация переносов. Подождите.&quot;
Exit Function
Case &quot;hyphenationConfirmation&quot;
getRussian = &quot;Запустить конвертацию автоматических переносов в ручные?&quot;
Exit Function
Case &quot;TOCErrorNoHeadings1&quot;
getRussian = &quot;Не могу сделать ссылки в оглавлении. Заголовоков&quot;
Exit Function
2020-05-05 15:33:25 +02:00
Case &quot;TOCErrorNoHeadings2&quot;
2020-05-05 14:20:11 +02:00
getRussian = &quot;уровня не найдено.&quot;
Exit Function
Case &quot;TOCErrorNoContents1&quot;
getRussian = &quot;Не могу сделать ссылки в оглавлении. Параграфов со стилем Оглавление &quot;
Exit Function
Case &quot;TOCErrorNoContents2&quot;
getRussian = &quot;не найдено.&quot;
Exit Function
Case &quot;TOCErrorContentsNotMatchHeadings1&quot;
getRussian = &quot;Число параграфов со стилем Оглавление &quot;
Exit Function
Case &quot;TOCErrorContentsNotMatchHeadings2&quot;
getRussian = &quot;) не кратно числу Заголовоков&quot;
Exit Function
Case &quot;TOCErrorContentsNotMatchHeadings3&quot;
getRussian = &quot;уровня (&quot;
Exit Function
Case &quot;complileJournalIssueConfirmation&quot;
getRussian = &quot;Вы уверены, что хотите запустить сборку выпуска ?&quot;
Exit Function
Case &quot;compileJournalIssueNoCurFilename&quot;
2020-05-05 15:33:25 +02:00
getRussian = &quot;Шаблон выпуска нужно сохранить в директории с файлами статей.&quot;
2020-05-05 14:20:11 +02:00
Exit Function
Case &quot;compileJournalIssueStatusInProgerss&quot;
getRussian = &quot;Сборка выпуска начата, подождите&quot;
Exit Function
Case &quot;compileJournalIssueFinished&quot;
getRussian = &quot;Сборка выпуска завершена.&quot;
Exit Function
Case &quot;lastPageNumNotFound&quot;
getRussian = &quot;Произошла ошибка при нахождении последней страницы статьи&quot;
Exit Function
Case &quot;compileJournalIssueSetUDKDummyText&quot;
getRussian = &quot;Задать УДК&quot;
Exit Function
Case &quot;compileJournalIssueCopyrightDummyText&quot;
getRussian = &quot;© Фамилия И.О.&quot;
Exit Function
Case &quot;compileJournalIssueAuthorDummyText&quot;
getRussian = &quot;Фамилия И.О.&quot;
Exit Function
Case &quot;compileJournalIssueArticleTitleDummyText&quot;
getRussian = &quot;Название статьи&quot;
Exit Function
Case &quot;compileJournalIssueSectionDummyText&quot;
getRussian = &quot;Название раздела&quot;
Exit Function
Case &quot;saveVersionCommentInsertPageBreak&quot;
getRussian = &quot;Вставка разрыва страниц&quot;
Exit Function
Case &quot;compileJournalIssueStatusUpdateLastPageNumbers&quot;
getRussian = &quot;Производится обновление полей последних номеров страниц статей, подождите.&quot;
Exit Function
Case &quot;compileJournalIssueInitialsAuthorDummyText&quot;
getRussian = &quot;И.О. Фамилия&quot;
Exit Function
2020-05-06 16:20:51 +02:00
Case &quot;PageConfigDialogTranslations&quot;
getRussian = &quot;Размеры задаются в мм. Выберите стили страниц для изменения и укажите в целевых полях размеры в формате 12.34&quot;
Exit Function
Case &quot;PageConfigDialogTitle&quot;
getRussian = &quot;Массовая настройка стилей страниц&quot;
Exit Function
Case &quot;PageConfigDialogCancelButton&quot;
getRussian = &quot;Закрыть&quot;
Exit Function
Case &quot;PageConfigDialogOkButton&quot;
getRussian = &quot;Применить&quot;
Exit Function
Case &quot;pageStylesNoStyleSelected&quot;
getRussian = &quot;Ни одного стиля страниц не выбрано&quot;
Exit Function
Case &quot;pageStylesNoSettingsSet&quot;
getRussian = &quot;Настройки не заданы&quot;
Exit Function
Case &quot;PageConfigSettingsApplied&quot;
getRussian = &quot;Настройки применены&quot;
Exit Function
2020-05-06 19:22:33 +02:00
Case &quot;PageConfigPageHeight&quot;
getRussian = &quot;Высота страницы&quot;
Exit Function
Case &quot;PageConfigPageWidth&quot;
getRussian = &quot;Ширина страницы&quot;
Exit Function
Case &quot;PageConfigLeftPageMargin&quot;
getRussian = &quot;Отступ слева&quot;
Exit Function
Case &quot;PageConfigTopPageMargin&quot;
getRussian = &quot;Отступ сверху&quot;
Exit Function
Case &quot;PageConfigRightPageMargin&quot;
getRussian = &quot;Отступ справа&quot;
Exit Function
Case &quot;PageConfigBottomPageMargin&quot;
getRussian = &quot;Отступ снизу&quot;
Exit Function
Case &quot;PageConfigHeaderHeight&quot;
getRussian = &quot;Высота верхнего колонтитула&quot;
Exit Function
Case &quot;PageConfigHeaderOffset&quot;
getRussian = &quot;Отступ от верхнего колонтитула до текста&quot;
Exit Function
Case &quot;PageConfigFooterHeight&quot;
getRussian = &quot;Высота нижнего колонтитула&quot;
Exit Function
Case &quot;PageConfigFooterOffset&quot;
getRussian = &quot;Отступ от сносок до нижнего колонтитула&quot;
Exit Function
Case &quot;PageConfigFootnoteAreaHeight&quot;
getRussian = &quot;Максимальная высота области сносок&quot;
Exit Function
Case &quot;PageConfigFootnoteAreaOffset&quot;
getRussian = &quot;Отступ от линии сноски до области сносок&quot;
Exit Function
Case &quot;PageConfigTextToLine&quot;
getRussian = &quot;Отступ от текста до линии сноски&quot;
Exit Function
2020-05-07 12:20:56 +02:00
Case &quot;PageConfigMM&quot;
getRussian = &quot;мм&quot;
Exit Function
2020-05-05 14:01:41 +02:00
Case Else
getRussian = &quot;Перевод не найден&quot;
End Select
End Function
Function getEnglish(identifier As String) As String
Select Case identifier
Case &quot;buttonOk&quot;
getEnglish = &quot;Apply&quot;
Exit Function
Case &quot;buttonCancel&quot;
getEnglish = &quot;Cancel&quot;
Exit Function
Case &quot;configText1&quot;
getEnglish = &quot;Insert 0 to 10 number in the field below&quot;
Exit Function
Case &quot;configText2&quot;
getEnglish = &quot;0 return to automatic numbering &quot;
Exit Function
Case &quot;configText3&quot;
getEnglish = &quot;Restart footnote numbering&quot;
Exit Function
Case &quot;configText4&quot;
getEnglish = &quot;after heading with&quot;
Exit Function
Case &quot;configText5&quot;
getEnglish = &quot;level&quot;
Exit Function
Case &quot;footnotesConfigDialogTitle&quot;
getEnglish = &quot;Apply footnotes numbering&quot;
Exit Function
Case &quot;statusNumberingInProcess&quot;
getEnglish = &quot;Numbering in process&quot;
Exit Function
Case &quot;numberingInputOutOfRange&quot;
getEnglish = &quot;Input is out of range. Insert number from 0 to 10.&quot;
Exit Function
Case &quot;statusNumberingFinished&quot;
getEnglish = &quot;Footnotes numbering finished successfully.&quot;
Exit Function
Case &quot;replaceParaStyleDialogTitle&quot;
2020-05-05 14:20:11 +02:00
getEnglish = &quot;Replace paragraph style (with removal) by choosen one&quot;
Exit Function
Case &quot;bidirectLinkSuggestion&quot;
getEnglish = &quot;You should select two objects to link&quot;
Exit Function
Case &quot;convertIndesignPageBreaksConfirmation&quot;
getEnglish = &quot;Start page break conversion from text?&quot;
Exit Function
Case &quot;convertIndesignPageBreaksFinish&quot;
getEnglish = &quot;Page break conversion successfully completed.&quot;
Exit Function
Case &quot;convertIndesignFoonotesConfirmation&quot;
getEnglish = &quot;Start footnotes conversion from text?&quot;
Exit Function
Case &quot;convertIndesignFootnotesFinish&quot;
getEnglish = &quot;Footnotes conversion successfully completed.&quot;
Exit Function
Case &quot;replaceParaStyleStylesEqualsNotification&quot;
getEnglish = &quot;Current paragraph style and choosen replacement style are equal.&quot;
Exit Function
Case &quot;replaceParaStyleCurrentStyleIsStandard&quot;
getEnglish = &quot;Current paragraph style is standard and couldn&apos;t be repaced or removed.&quot;
Exit Function
Case &quot;unrecoverableError&quot;
getEnglish = &quot;Error. Notify developer, please. https://litvinovg.pro/pages/about.html&quot;
Exit Function
Case &quot;albumRotationCheckPageSettings&quot;
getEnglish = &quot;Check header and footer heigths and restart this function&quot;
Exit Function
Case &quot;albumRotationPageIsAlreadyAlbum&quot;
getEnglish = &quot;Page is already album. Nothing to do.&quot;
Exit Function
Case &quot;albumRotationBackupStyleNotFound1&quot;
getEnglish = &quot;Portrait page style&quot;
Exit Function
Case &quot;albumRotationBackupStyleNotFound2&quot;
getEnglish = &quot;wasn&apos;t found.&quot;
Exit Function
Case &quot;albumRotationDynamicHeaderHeight&quot;
getEnglish = &quot;Header height was dynamic. Can&apos;t caclulate real height. Turned off dynamic height. Check page settings to verify height is valid.&quot;
Exit Function
Case &quot;albumRotationDynamicHeaderOffset&quot;
getEnglish = &quot;Header offset was set dynamic. Can&apos;t calculate real offset. Turned off dynamic offset. Check page settgins to verify offset is valid.&quot;
Exit Function
Case &quot;albumRotationDynamicFooterHeight&quot;
getEnglish = &quot;Footer height was dynamic. Can&apos;t caclulate real height. Turned off dynamic height. Check page settings to verify height is valid.&quot;
Exit Function
Case &quot;albumRotationDynamicFooterOffset&quot;
getEnglish = &quot;Footer offset was set dynamic. Can&apos;t calculate real offset. Turned off dynamic offset. Check page settgins to verify offset is valid.&quot;
Exit Function
Case &quot;hyphenationsFailed&quot;
getEnglish = &quot;Hyphenation conversion failed. Please notify developer https://litvinovg.pro/pages/about.html&quot;
Exit Function
Case &quot;hyphenationsSuccess&quot;
getEnglish = &quot;Hyphenation conversion successfully completed.&quot;
Exit Function
Case &quot;hyphenationsInProgress&quot;
getEnglish = &quot;Hyphenation conversion in progress. Wait a bit.&quot;
Exit Function
Case &quot;hyphenationConfirmation&quot;
getEnglish = &quot;Do you really want to convert all automatic hyphenations to manual hyphenations?&quot;
Exit Function
Case &quot;TOCErrorNoHeadings1&quot;
getEnglish = &quot;Can&apos;t create links in table of contents. No headings with &quot;
Exit Function
2020-05-05 15:33:25 +02:00
Case &quot;TOCErrorNoHeadings2&quot;
2020-05-05 14:20:11 +02:00
getEnglish = &quot;level found.&quot;
Exit Function
Case &quot;TOCErrorNoContents1&quot;
getEnglish = &quot;Can&apos;t create links in table of contents. No paras with style Contents &quot;
Exit Function
Case &quot;TOCErrorNoContents2&quot;
getEnglish = &quot;found.&quot;
Exit Function
Case &quot;TOCErrorContentsNotMatchHeadings1&quot;
getEnglish = &quot;Number of paras with style Contents &quot;
Exit Function
Case &quot;TOCErrorContentsNotMatchHeadings2&quot;
getEnglish = &quot;) dosn&apos;t match number of headings with &quot;
Exit Function
Case &quot;TOCErrorContentsNotMatchHeadings3&quot;
getEnglish = &quot;level (&quot;
Exit Function
Case &quot;complileJournalIssueConfirmation&quot;
getEnglish = &quot;Compile journal issue from articles?&quot;
Exit Function
Case &quot;compileJournalIssueNoCurFilename&quot;
2020-05-05 15:33:25 +02:00
getEnglish = &quot;Save issue template in the same directory where are the articles.&quot;
2020-05-05 14:20:11 +02:00
Exit Function
Case &quot;compileJournalIssueStatusInProgerss&quot;
getEnglish = &quot;Issue compilation in progress&quot;
Exit Function
Case &quot;compileJournalIssueFinished&quot;
getEnglish = &quot;Issue compilation finished.&quot;
Exit Function
Case &quot;lastPageNumNotFound&quot;
getEnglish = &quot;Error. Last article page not found.&quot;
Exit Function
Case &quot;compileJournalIssueSetUDKDummyText&quot;
getEnglish = &quot;Set UDK&quot;
Exit Function
Case &quot;compileJournalIssueCopyrightDummyText&quot;
getEnglish = &quot;© Copyright&quot;
Exit Function
Case &quot;compileJournalIssueAuthorDummyText&quot;
getEnglish = &quot;Author should be here&quot;
Exit Function
Case &quot;compileJournalIssueArticleTitleDummyText&quot;
getEnglish = &quot;Article title should be here&quot;
Exit Function
Case &quot;compileJournalIssueSectionDummyText&quot;
getEnglish = &quot;Section name should be here&quot;
Exit Function
Case &quot;saveVersionCommentInsertPageBreak&quot;
getEnglish = &quot;Insert page break&quot;
Exit Function
Case &quot;compileJournalIssueStatusUpdateLastPageNumbers&quot;
getEnglish = &quot;Last article page numbers updating&quot;
Exit Function
Case &quot;compileJournalIssueInitialsAuthorDummyText&quot;
getEnglish = &quot;И.О. Фамилия&quot;
Exit Function
2020-05-06 16:20:51 +02:00
Case &quot;PageConfigDialogTranslations&quot;
getEnglish = &quot;Dimensions are set in mm. Choose page styles and fill in target fields in format 12.34&quot;
Exit Function
Case &quot;PageConfigDialogTitle&quot;
getEnglish = &quot;Page styles batch settings&quot;
Exit Function
Case &quot;PageConfigDialogCancelButton&quot;
getEnglish = &quot;Cancel&quot;
Exit Function
Case &quot;PageConfigDialogOkButton&quot;
getEnglish = &quot;Ok&quot;
Exit Function
Case &quot;pageStylesNoStyleSelected&quot;
getEnglish = &quot;No page styles selected. Select at least one.&quot;
Exit Function
Case &quot;pageStylesNoSettingsSet&quot;
getEnglish = &quot;No settings set. Set at least one.&quot;
Exit Function
Case &quot;PageConfigSettingsApplied&quot;
getEnglish = &quot;Settings saved.&quot;
Exit Function
2020-05-06 19:22:33 +02:00
Case &quot;PageConfigPageHeight&quot;
getEnglish = &quot;Page height&quot;
Exit Function
Case &quot;PageConfigPageWidth&quot;
getEnglish = &quot;Page width&quot;
Exit Function
Case &quot;PageConfigLeftPageMargin&quot;
getEnglish = &quot;Left margin&quot;
Exit Function
Case &quot;PageConfigTopPageMargin&quot;
getEnglish = &quot;Top margin&quot;
Exit Function
Case &quot;PageConfigRightPageMargin&quot;
getEnglish = &quot;Rigth margin&quot;
Exit Function
Case &quot;PageConfigBottomPageMargin&quot;
getEnglish = &quot;Bottom margin&quot;
Exit Function
Case &quot;PageConfigHeaderHeight&quot;
getEnglish = &quot;Header height&quot;
Exit Function
Case &quot;PageConfigHeaderOffset&quot;
getEnglish = &quot;Indent from header to text body&quot;
Exit Function
Case &quot;PageConfigFooterHeight&quot;
getEnglish = &quot;Footer height&quot;
Exit Function
Case &quot;PageConfigFooterOffset&quot;
getEnglish = &quot;Indent from footnotes to footer&quot;
Exit Function
Case &quot;PageConfigFootnoteAreaHeight&quot;
getEnglish = &quot;Footnotes maximum height&quot;
Exit Function
Case &quot;PageConfigFootnoteAreaOffset&quot;
getEnglish = &quot;Indent from footnote line to footnote area&quot;
Exit Function
Case &quot;PageConfigTextToLine&quot;
getEnglish = &quot;Indent from text to footnote line&quot;
Exit Function
2020-05-07 12:20:56 +02:00
Case &quot;PageConfigMM&quot;
getEnglish = &quot;mm&quot;
Exit Function
2020-05-05 14:01:41 +02:00
Case Else
getEnglish = &quot;No translation&quot;
End Select
End Function
</script:module>