diff --git a/Redaction/Clean.xba b/Redaction/Clean.xba index ad7f69c..b39ea64 100644 --- a/Redaction/Clean.xba +++ b/Redaction/Clean.xba @@ -1,12 +1,16 @@ -Sub mark58 +Sub mark59 End Sub Sub cleanButton Dim config As Object config = initRedactionConfiguration() + If ThisComponent.isReadonly Then + getTranslation("documentIsReadOnly") + Exit Sub + EndIf If config.getPropertyValue("complexity") = "user" then quietStartDialog() Else diff --git a/Redaction/Configuration.xba b/Redaction/Configuration.xba index 783c0f4..853d15a 100644 --- a/Redaction/Configuration.xba +++ b/Redaction/Configuration.xba @@ -1,7 +1,7 @@ Public Const redactionExtensionName As String = "cleanAndValidate" -Public Const redactionExtensionVersion = "0.7.17" +Public Const redactionExtensionVersion = "0.7.18" Function initRedactionConfiguration() On Error Goto exceptionHandler Dim regFactory As Object diff --git a/Redaction/Translations.xba b/Redaction/Translations.xba index 0435dd0..073047f 100644 --- a/Redaction/Translations.xba +++ b/Redaction/Translations.xba @@ -202,6 +202,9 @@ Function getRussian(identifier As String) As String Exit Function Case "dialogRussianFixesIPH" getRussian = "Исправления для текстов на русском" + Exit Function + Case "documentIsReadOnly" + getRussian = "Документ открыт только для чтения. Запуск чистки в данном режиме невозможен." Exit Function Case Else getRussian = "Перевод не найден" @@ -387,6 +390,9 @@ Function getEnglish(identifier As String) As String Exit Function Case "dialogRussianFixesIPH" getEnglish = "Corrections for texts in Russian" + Exit Function + Case "documentIsReadOnly" + getEnglish = "The document is read-only. Cleaning cannot be started in this mode." Exit Function Case Else getEnglish = "No translation" @@ -572,6 +578,9 @@ Function getCroatian(identifier As String) As String Case "dialogRussianFixesIPH" getCroatian = "Ispravci za tekstove na ruskom" Exit Function + Case "documentIsReadOnly" + getCroatian = "Dokument je samo za čitanje. Čišćenje nije moguće pokrenuti u ovom načinu rada." + Exit Function Case Else getCroatian = "No translation" End Select @@ -756,6 +765,9 @@ Function getSerbian(identifier As String) As String Case "dialogRussianFixesIPH" getSerbian = "Исправци за текстове на руском" Exit Function + Case "documentIsReadOnly" + getSerbian = "Документ је само за читање. Чишћење се не може покренути у овом режиму." + Exit Function Case Else getSerbian = "No translation" End Select @@ -940,6 +952,9 @@ Function getBosnian(identifier As String) As String Case "dialogRussianFixesIPH" getBosnian = "Ispravci za tekstove na ruskom" Exit Function + Case "documentIsReadOnly" + getBosnian = "Dokument je samo za čitanje. Čišćenje nije moguće pokrenuti u ovom načinu rada." + Exit Function Case Else getBosnian = "No translation" End Select diff --git a/build.gradle b/build.gradle index 7e979dd..caf0e61 100644 --- a/build.gradle +++ b/build.gradle @@ -1,4 +1,4 @@ -def releaseVersion = "0.7.17" +def releaseVersion = "0.7.18" task oxt(type: Zip) { dependsOn = [ 'setVersion','setVersionInBasicCode' ] from './' diff --git a/description.xml b/description.xml index 7de4769..8f1fdc5 100644 --- a/description.xml +++ b/description.xml @@ -1,7 +1,7 @@ - + Cleaning and validation documents for publishing in html and epub with pagination diff --git a/translations.ods b/translations.ods index 9471dda..47a0abd 100644 Binary files a/translations.ods and b/translations.ods differ