1cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?> 2cdf0e10cSrcweir<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd"> 33e02b54dSAndrew Rist<!--*********************************************************** 4*48978db4SMatthias Seidel * 53e02b54dSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 63e02b54dSAndrew Rist * or more contributor license agreements. See the NOTICE file 73e02b54dSAndrew Rist * distributed with this work for additional information 83e02b54dSAndrew Rist * regarding copyright ownership. The ASF licenses this file 93e02b54dSAndrew Rist * to you under the Apache License, Version 2.0 (the 103e02b54dSAndrew Rist * "License"); you may not use this file except in compliance 113e02b54dSAndrew Rist * with the License. You may obtain a copy of the License at 12*48978db4SMatthias Seidel * 133e02b54dSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 14*48978db4SMatthias Seidel * 153e02b54dSAndrew Rist * Unless required by applicable law or agreed to in writing, 163e02b54dSAndrew Rist * software distributed under the License is distributed on an 173e02b54dSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 183e02b54dSAndrew Rist * KIND, either express or implied. See the License for the 193e02b54dSAndrew Rist * specific language governing permissions and limitations 203e02b54dSAndrew Rist * under the License. 21*48978db4SMatthias Seidel * 223e02b54dSAndrew Rist ***********************************************************--> 23cdf0e10cSrcweir<script:module xmlns:script="http://openoffice.org/2000/script" script:name="Language" script:language="StarBasic">Option Explicit 24cdf0e10cSrcweir 25cdf0e10cSrcweirPublic sMSTemplateCheckbox(2) As String 26cdf0e10cSrcweirPublic sMSDocumentCheckbox(2) As String 27cdf0e10cSrcweirPublic sSODocumentCheckbox(4) As String 28cdf0e10cSrcweirPublic sSOHelperdocuments(1,1) As String 29cdf0e10cSrcweirPublic sTemplateCheckbox(SBMAXAPPLCOUNT-1) As String 30cdf0e10cSrcweirPublic sDocumentCheckbox(SBMAXAPPLCOUNT-1) As String 31cdf0e10cSrcweirPublic sTemplateGroupName As String 32cdf0e10cSrcweirPublic sSearchInSubDir as String 33cdf0e10cSrcweirPublic sPathErrorTemplates(SBMAXAPPLCOUNT-1) As String 34cdf0e10cSrcweirPublic sPathErrorDocument(SBMAXAPPLCOUNT-1) As String 35cdf0e10cSrcweirPublic sPathErrorStarDoc(SBMAXAPPLCOUNT-1) As String 36cdf0e10cSrcweirPublic sStarDocLabel(SBMAXAPPLCOUNT-1) As String 37cdf0e10cSrcweirPublic sImportLabel As String, sExportLabel As String 38cdf0e10cSrcweirPublic SOApplicationName(5) As String 39cdf0e10cSrcweirPublic sHelpButton As String, sCancelButton As String, sBackButton As String, sNextButton As String 40cdf0e10cSrcweirPublic sSumInclusiveSubDir As String, sSumSaveDocuments As String 41cdf0e10cSrcweirPublic sSummaryHeader As String 42*48978db4SMatthias SeidelPublic sWelcometextLabel1 As String, sWelcometextLabel2 As String, sWelcometextLabel3 As String 43cdf0e10cSrcweirPublic sBeginButton As String, sMsgDirNotThere As String 44cdf0e10cSrcweirPublic sQueryForNewCreation As String, sPathError3 As String 45cdf0e10cSrcweirPublic sNoDirCreation As String 46cdf0e10cSrcweirPublic sProgressMoreDocs As String, sProgressMoreTemplates as String 47cdf0e10cSrcweirPublic sFileExists As String, sMorePathsError3 As String 48cdf0e10cSrcweirPublic sConvertError1 As String, sConvertError2 As String, sPathDialogMessage As String 49cdf0e10cSrcweirPublic sRTErrorDesc As String, sRTErrorHeader As String 50cdf0e10cSrcweirPublic sProgressPage_1 As String, sProgressPage_2 As String, sProgressPage_3 as String 51cdf0e10cSrcweirPublic sProgressFound as String, sProgresspage_5 as String 52cdf0e10cSrcweirPublic sContainerName(1) as String 53cdf0e10cSrcweirPublic sReady as String, sTitle as String 54cdf0e10cSrcweirPublic sCloseButton as String 55cdf0e10cSrcweirPublic sSourceDocuments as String 56cdf0e10cSrcweirPublic sTargetDocuments as String 57cdf0e10cSrcweirPublic sSumSODocuments(4) as String 58cdf0e10cSrcweirPublic sSumSOTemplates(4) as String 59cdf0e10cSrcweirPublic sSumMSDocuments(3) as String 60cdf0e10cSrcweirPublic sSumMSTemplates(3) as String 61cdf0e10cSrcweirPublic ModuleList(3) as String 62cdf0e10cSrcweirPublic sLogSummary as String 63cdf0e10cSrcweirPublic sReeditMacro as String 64cdf0e10cSrcweirPublic sOverwriteallFiles as String 65cdf0e10cSrcweirPublic scouldnotopenDocument as String 66cdf0e10cSrcweirPublic sCurcouldnotopenDocument as String 67cdf0e10cSrcweirPublic scouldnotsaveDocument as String 68cdf0e10cSrcweirPublic sCurcouldnotsaveDocument as String 69cdf0e10cSrcweir 70cdf0e10cSrcweir 71cdf0e10cSrcweirSub LoadLanguage() 72cdf0e10cSrcweir If InitResources("ImportWizard","imp") then 73cdf0e10cSrcweir sHelpButton = GetResText(1000) 74cdf0e10cSrcweir sCancelButton = GetResText(1001) 75cdf0e10cSrcweir sBackButton = GetResText(1002) 76cdf0e10cSrcweir sNextButton = GetResText(1003) 77cdf0e10cSrcweir sBeginButton = GetResText(1004) 78cdf0e10cSrcweir sCloseButton = GetResText(1005) 79*48978db4SMatthias Seidel 80cdf0e10cSrcweir sWelcometextLabel1 = ReplaceString(GetResText(1006), GetProductName(),"%PRODUCTNAME") 81cdf0e10cSrcweir sWelcometextLabel2 = GetResText(1007) 82cdf0e10cSrcweir sWelcometextLabel3 = GetResText(1008) 83cdf0e10cSrcweir 84cdf0e10cSrcweir ' Microsoft Documents 85cdf0e10cSrcweir GetApplResourceArray(1009, 3, sMSTemplateCheckBox()) 86cdf0e10cSrcweir 87cdf0e10cSrcweir ' DocumentCheckbox- Captions 88cdf0e10cSrcweir GetApplResourceArray(1012, 3, sMSDocumentCheckBox()) 89cdf0e10cSrcweir 90cdf0e10cSrcweir ' DocumentCheckbox- Captions 91cdf0e10cSrcweir GetApplResourceArray(2013, 5, sSODocumentCheckBox()) 92cdf0e10cSrcweir 93*48978db4SMatthias Seidel ' OpenOffice Applicationnames 94cdf0e10cSrcweir 95cdf0e10cSrcweir sSOHelperDocuments(0,0) = GetResText(2017) 96cdf0e10cSrcweir sSOHelperDocuments(0,1) = "com.sun.star.text.GlobalDocument" 97cdf0e10cSrcweir sSOHelperDocuments(1,0) = GetResText(2018) 98cdf0e10cSrcweir sSOHelperDocuments(1,1) = "com.sun.star.formula.FormulaProperties" 99*48978db4SMatthias Seidel 100*48978db4SMatthias Seidel GetApplResourceArray(2017,2, sSOHelperDocuments()) 101*48978db4SMatthias Seidel 102cdf0e10cSrcweir sContainerName(0) = GetResText(1030) 103cdf0e10cSrcweir ' Note: for the version 5.2 there was no Productname "StarSuite" 104*48978db4SMatthias Seidel sContainerName(1) = "OpenOffice" 105*48978db4SMatthias Seidel 106cdf0e10cSrcweir sSummaryHeader = GetResText(1031) 107cdf0e10cSrcweir 108cdf0e10cSrcweir sTemplateGroupName = GetResText(1036) 109cdf0e10cSrcweir 110cdf0e10cSrcweir sProgressMoreDocs = GetResText(1041) 111cdf0e10cSrcweir sProgressMoreTemplates = GetResText(1042) 112cdf0e10cSrcweir sNoDirCreation = GetResText(1050) 113cdf0e10cSrcweir sMsgDirNotThere = GetResText(1051) 114cdf0e10cSrcweir sQueryForNewCreation = GetResText(1052) 115cdf0e10cSrcweir sFileExists = GetResText(1053) 116cdf0e10cSrcweir sMorePathsError3 = GetResText(1054) 117cdf0e10cSrcweir sConvertError1 = GetResText(1055) 118cdf0e10cSrcweir sConvertError2 = GetResText(1056) 119cdf0e10cSrcweir sRTErrorDesc = GetResText(1057) 120cdf0e10cSrcweir sRTErrorHeader = GetResText(1058) 121cdf0e10cSrcweir sOverwriteallFiles = GetResText(1070) 122cdf0e10cSrcweir sReeditMacro = GetResText(1071) 123*48978db4SMatthias Seidel scouldnotsaveDocument = GetResText(1072) 124cdf0e10cSrcweir scouldnotopenDocument = GetResText(1073) 125cdf0e10cSrcweir sPathDialogMessage = GetResText(1080) 126cdf0e10cSrcweir sTitle = GetResText(1081) 127cdf0e10cSrcweir 128cdf0e10cSrcweir sProgressPage_1 = GetResText(1090) 129cdf0e10cSrcweir sProgressPage_2 = GetResText(1091) 130cdf0e10cSrcweir sProgressPage_3 = GetResText(1092) 131cdf0e10cSrcweir sProgressFound = GetResText(1093) 132cdf0e10cSrcweir sProgressPage_5 = GetResText(1094) 133cdf0e10cSrcweir sReady = GetResText(1100) 134cdf0e10cSrcweir sSourceDocuments = GetResText(2030) 135cdf0e10cSrcweir sTargetDocuments = GetResText(2031) 136cdf0e10cSrcweir sLogSummary = GetResText(2034) 137cdf0e10cSrcweir sSumInclusiveSubDir = GetResText(3000) 138cdf0e10cSrcweir sSumSaveDocuments = GetResText(3001) 139*48978db4SMatthias Seidel 'OpenOffice Applicationnames 140cdf0e10cSrcweir GetApplResourceArray(3100, 4, sSumSODocuments()) 141cdf0e10cSrcweir GetApplResourceArray(3110, 4, sSumSOTemplates()) 142cdf0e10cSrcweir GetApplResourceArray(3200, 3, sSumMSDocuments()) 143cdf0e10cSrcweir GetApplResourceArray(3210, 3, sSumMSTemplates()) 144cdf0e10cSrcweir With ImportDialog 145cdf0e10cSrcweir sImportLabel = GetResText(1033) 146cdf0e10cSrcweir sExportLabel = GetResText(1034) 147cdf0e10cSrcweir sSearchInSubDir = GetResText(1022) 148cdf0e10cSrcweir .chkTemplateSearchSubDir.Label = sSearchInSubDir 149cdf0e10cSrcweir .lblDocumentImport.Label = sImportLabel 150cdf0e10cSrcweir .lblDocumentExport.Label = sExportLabel 151cdf0e10cSrcweir .chkDocumentSearchSubDir.Label = sSearchInSubDir 152cdf0e10cSrcweir .lblTemplateImport.Label = sImportLabel 153cdf0e10cSrcweir .lblTemplateExport.Label = sExportLabel 154cdf0e10cSrcweir .chkLogfile.Label = GetResText(2032) 155cdf0e10cSrcweir .chkLogfile.Helptext = GetResText(2033) 156cdf0e10cSrcweir Dim Blabla as String 157cdf0e10cSrcweir blabla = GetResText(1072) 158cdf0e10cSrcweir .cmdShowLogFile.Label = GetResText(2035) 159cdf0e10cSrcweir End With 160cdf0e10cSrcweir ModuleList(0) = "com.sun.star.text.TextDocument" 161cdf0e10cSrcweir ModuleList(1) = "com.sun.star.sheet.SpreadsheetDocument" 162cdf0e10cSrcweir ModuleList(2) = "com.sun.star.drawing.DrawingDocument/com.sun.star.presentation.PresentationDocument" 163cdf0e10cSrcweir ModuleList(3) = "com.sun.star.formula.FormulaProperties/com.sun.star.text.GlobalDocument" 164cdf0e10cSrcweir End If 165cdf0e10cSrcweirEnd Sub 166cdf0e10cSrcweir 167cdf0e10cSrcweir 168cdf0e10cSrcweirSub GetApplResourceArray(StartResIndex as Integer, Count as Integer, BigArray()) 169cdf0e10cSrcweirDim i as Integer 170cdf0e10cSrcweirDim a as Integer 171cdf0e10cSrcweir a = 0 172cdf0e10cSrcweir For i = StartResIndex To StartResIndex + Count-1 173cdf0e10cSrcweir BigArray(a) = GetResText(i) 174cdf0e10cSrcweir a = a + 1 175*48978db4SMatthias Seidel Next 176cdf0e10cSrcweirEnd Sub 1773e02b54dSAndrew Rist</script:module> 178