Language.xba 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
  3. <!--
  4. * This file is part of the LibreOffice project.
  5. *
  6. * This Source Code Form is subject to the terms of the Mozilla Public
  7. * License, v. 2.0. If a copy of the MPL was not distributed with this
  8. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  9. *
  10. * This file incorporates work covered by the following license notice:
  11. *
  12. * Licensed to the Apache Software Foundation (ASF) under one or more
  13. * contributor license agreements. See the NOTICE file distributed
  14. * with this work for additional information regarding copyright
  15. * ownership. The ASF licenses this file to you under the Apache
  16. * License, Version 2.0 (the "License"); you may not use this file
  17. * except in compliance with the License. You may obtain a copy of
  18. * the License at http://www.apache.org/licenses/LICENSE-2.0 .
  19. -->
  20. <script:module xmlns:script="http://openoffice.org/2000/script" script:name="Language" script:language="StarBasic">Option Explicit
  21. Public sMSTemplateCheckbox(2) As String
  22. Public sMSDocumentCheckbox(2) As String
  23. Public sTemplateCheckbox(SBMAXAPPLCOUNT-1) As String
  24. Public sDocumentCheckbox(SBMAXAPPLCOUNT-1) As String
  25. Public sTemplateGroupName As String
  26. Public sSearchInSubDir as String
  27. Public sPathErrorTemplates(SBMAXAPPLCOUNT-1) As String
  28. Public sPathErrorDocument(SBMAXAPPLCOUNT-1) As String
  29. Public sPathErrorStarDoc(SBMAXAPPLCOUNT-1) As String
  30. Public sStarDocLabel(SBMAXAPPLCOUNT-1) As String
  31. Public sImportLabel As String, sExportLabel As String
  32. Public SOApplicationName(5) As String
  33. Public sHelpButton As String, sCancelButton As String, sBackButton As String, sNextButton As String
  34. Public sSumInclusiveSubDir As String, sSumSaveDocuments As String
  35. Public sSummaryHeader As String
  36. Public sWelcometextLabel1 As String, sWelcometextLabel3 As String
  37. Public sBeginButton As String, sMsgDirNotThere As String
  38. Public sQueryForNewCreation As String, sPathError3 As String
  39. Public sNoDirCreation As String
  40. Public sProgressMoreDocs As String, sProgressMoreTemplates as String
  41. Public sFileExists As String, sMorePathsError3 As String
  42. Public sConvertError1 As String, sConvertError2 As String, sPathDialogMessage As String
  43. Public sRTErrorDesc As String, sRTErrorHeader As String
  44. Public sProgressPage_1 As String, sProgressPage_2 As String, sProgressPage_3 as String
  45. Public sProgressFound as String, sProgresspage_5 as String
  46. Public sContainerName(1) as String
  47. Public sReady as String, sTitle as String
  48. Public sCloseButton as String
  49. Public sSourceDocuments as String
  50. Public sTargetDocuments as String
  51. Public sSumMSDocuments(3) as String
  52. Public sSumMSTemplates(3) as String
  53. Public ModuleList(3) as String
  54. Public sLogSummary as String
  55. Public sReeditMacro as String
  56. Public sOverwriteallFiles as String
  57. Public sCouldnotopenDocument as String
  58. Public sCurcouldnotopenDocument as String
  59. Public sCouldnotsaveDocument as String
  60. Public sCurcouldnotsaveDocument as String
  61. Sub LoadLanguage()
  62. If InitResources(&quot;ImportWizard&quot;) then
  63. sHelpButton = GetResText(&quot;HelpButton&quot;)
  64. sCancelButton = GetResText(&quot;CancelButton&quot;)
  65. sBackButton = GetResText(&quot;BackButton&quot;)
  66. sNextButton = GetResText(&quot;NextButton&quot;)
  67. sBeginButton = GetResText(&quot;BeginButton&quot;)
  68. sCloseButton = GetResText(&quot;CloseButton&quot;)
  69. sWelcometextLabel1 = ReplaceString(GetResText(&quot;WelcometextLabel1&quot;), GetProductName(),&quot;%PRODUCTNAME&quot;)
  70. sWelcometextLabel3 = GetResText(&quot;WelcometextLabel3&quot;)
  71. &apos; Microsoft Documents
  72. sMSTemplateCheckBox(0) = GetResText(&quot;MSTemplateCheckbox_1_&quot;)
  73. sMSTemplateCheckBox(1) = GetResText(&quot;MSTemplateCheckbox_2_&quot;)
  74. sMSTemplateCheckBox(2) = GetResText(&quot;MSTemplateCheckbox_3_&quot;)
  75. &apos; DocumentCheckbox- Captions
  76. sMSDocumentCheckBox(0) = GetResText(&quot;MSDocumentCheckbox_1_&quot;)
  77. sMSDocumentCheckBox(1) = GetResText(&quot;MSDocumentCheckbox_2_&quot;)
  78. sMSDocumentCheckBox(2) = GetResText(&quot;MSDocumentCheckbox_3_&quot;)
  79. &apos;StarOffice Applicationnames
  80. sContainerName(0) = GetResText(&quot;MSContainerName&quot;)
  81. sSummaryHeader = GetResText(&quot;SummaryHeader&quot;)
  82. sTemplateGroupName = GetResText(&quot;GroupnameDefault&quot;)
  83. sProgressMoreDocs = GetResText(&quot;ProgressMoreDocs&quot;)
  84. sProgressMoreTemplates = GetResText(&quot;ProgressMoreTemplates&quot;)
  85. sNoDirCreation = GetResText(&quot;NoDirCreation&quot;)
  86. sMsgDirNotThere = GetResText(&quot;MsgDirNotThere&quot;)
  87. sQueryForNewCreation = GetResText(&quot;QueryfornewCreation&quot;)
  88. sFileExists = GetResText(&quot;FileExists&quot;)
  89. sMorePathsError3 = GetResText(&quot;MorePathsError3&quot;)
  90. sConvertError1 = GetResText(&quot;ConvertError1&quot;)
  91. sConvertError2 = GetResText(&quot;ConvertError2&quot;)
  92. sRTErrorDesc = GetResText(&quot;RTErrorDesc&quot;)
  93. sRTErrorHeader = GetResText(&quot;RTErrorHeader&quot;)
  94. sOverwriteallFiles = GetResText(&quot;OverwriteallFiles&quot;)
  95. sReeditMacro = GetResText(&quot;ReeditMacro&quot;)
  96. sCouldnotsaveDocument = GetResText(&quot;CouldNotsaveDocument&quot;)
  97. sCouldnotopenDocument = GetResText(&quot;CouldNotopenDocument&quot;)
  98. sPathDialogMessage = GetResText(&quot;PathDialogMessage&quot;)
  99. sTitle = GetResText(&quot;DialogTitle&quot;)
  100. sProgressPage_1 = GetResText(&quot;ProgressPage1&quot;)
  101. sProgressPage_2 = GetResText(&quot;ProgressPage2&quot;)
  102. sProgressPage_3 = GetResText(&quot;ProgressPage3&quot;)
  103. sProgressFound = GetResText(&quot;ProgressFound&quot;)
  104. sProgressPage_5 = GetResText(&quot;ProgressPage5&quot;)
  105. sReady = GetResText(&quot;Ready&quot;)
  106. sSourceDocuments = GetResText(&quot;SourceDocuments&quot;)
  107. sTargetDocuments = GetResText(&quot;TargetDocuments&quot;)
  108. sLogSummary = GetResText(&quot;LogfileSummary&quot;)
  109. sSumInclusiveSubDir = GetResText(&quot;SumInclusiveSubDir&quot;)
  110. sSumSaveDocuments = GetResText(&quot;SumSaveDokumente&quot;)
  111. sSumMSDocuments(0) = GetResText(&quot;SumMSTextDocuments&quot;)
  112. sSumMSDocuments(1) = GetResText(&quot;SumMSTableDocuments&quot;)
  113. sSumMSDocuments(2) = GetResText(&quot;SumMSDrawDocuments&quot;)
  114. sSumMSTemplates(0) = GetResText(&quot;SumMSTextTemplates&quot;)
  115. sSumMSTemplates(1) = GetResText(&quot;SumMSTableTemplates&quot;)
  116. sSumMSTemplates(2) = GetResText(&quot;SumMSDrawTemplates&quot;)
  117. With ImportDialog
  118. sImportLabel = GetResText(&quot;TextImportLabel&quot;)
  119. sExportLabel = GetResText(&quot;TextExportLabel&quot;)
  120. sSearchInSubDir = GetResText(&quot;SearchInSubDir&quot;)
  121. .chkTemplateSearchSubDir.Label = sSearchInSubDir
  122. .lblDocumentImport.Label = sImportLabel
  123. .lblDocumentExport.Label = sExportLabel
  124. .chkDocumentSearchSubDir.Label = sSearchInSubDir
  125. .lblTemplateImport.Label = sImportLabel
  126. .lblTemplateExport.Label = sExportLabel
  127. .chkLogfile.Label = GetResText(&quot;CreateLogfile&quot;)
  128. .chkLogfile.Helptext = GetResText(&quot;LogfileHelpText&quot;)
  129. .cmdShowLogFile.Label = GetResText(&quot;ShowLogfile&quot;)
  130. End With
  131. ModuleList(0) = &quot;com.sun.star.text.TextDocument&quot;
  132. ModuleList(1) = &quot;com.sun.star.sheet.SpreadsheetDocument&quot;
  133. ModuleList(2) = &quot;com.sun.star.drawing.DrawingDocument/com.sun.star.presentation.PresentationDocument&quot;
  134. ModuleList(3) = &quot;com.sun.star.formula.FormulaProperties/com.sun.star.text.GlobalDocument&quot;
  135. End If
  136. End Sub
  137. </script:module>