1*cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?>
2*cdf0e10cSrcweir<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
3*cdf0e10cSrcweir<script:module xmlns:script="http://openoffice.org/2000/script" script:name="Language" script:language="StarBasic">Option Explicit
4*cdf0e10cSrcweir
5*cdf0e10cSrcweirPublic sMSTemplateCheckbox(2) As String
6*cdf0e10cSrcweirPublic sMSDocumentCheckbox(2) As String
7*cdf0e10cSrcweirPublic sSODocumentCheckbox(4) As String
8*cdf0e10cSrcweirPublic sSOHelperdocuments(1,1) As String
9*cdf0e10cSrcweirPublic sTemplateCheckbox(SBMAXAPPLCOUNT-1) As String
10*cdf0e10cSrcweirPublic sDocumentCheckbox(SBMAXAPPLCOUNT-1) As String
11*cdf0e10cSrcweirPublic sTemplateGroupName As String
12*cdf0e10cSrcweirPublic sSearchInSubDir as String
13*cdf0e10cSrcweirPublic sPathErrorTemplates(SBMAXAPPLCOUNT-1) As String
14*cdf0e10cSrcweirPublic sPathErrorDocument(SBMAXAPPLCOUNT-1) As String
15*cdf0e10cSrcweirPublic sPathErrorStarDoc(SBMAXAPPLCOUNT-1) As String
16*cdf0e10cSrcweirPublic sStarDocLabel(SBMAXAPPLCOUNT-1) As String
17*cdf0e10cSrcweirPublic sImportLabel As String, sExportLabel As String
18*cdf0e10cSrcweirPublic SOApplicationName(5) As String
19*cdf0e10cSrcweirPublic sHelpButton As String, sCancelButton As String, sBackButton As String, sNextButton As String
20*cdf0e10cSrcweirPublic sSumInclusiveSubDir As String, sSumSaveDocuments As String
21*cdf0e10cSrcweirPublic sSummaryHeader As String
22*cdf0e10cSrcweirPublic sWelcometextLabel1 As String, sWelcometextLabel2 As String,  sWelcometextLabel3 As String
23*cdf0e10cSrcweirPublic sBeginButton As String, sMsgDirNotThere As String
24*cdf0e10cSrcweirPublic sQueryForNewCreation As String, sPathError3 As String
25*cdf0e10cSrcweirPublic sNoDirCreation As String
26*cdf0e10cSrcweirPublic sProgressMoreDocs As String, sProgressMoreTemplates as String
27*cdf0e10cSrcweirPublic sFileExists As String, sMorePathsError3 As String
28*cdf0e10cSrcweirPublic sConvertError1 As String, sConvertError2 As String, sPathDialogMessage As String
29*cdf0e10cSrcweirPublic sRTErrorDesc As String, sRTErrorHeader As String
30*cdf0e10cSrcweirPublic sProgressPage_1 As String, sProgressPage_2 As String, sProgressPage_3 as String
31*cdf0e10cSrcweirPublic sProgressFound as String, sProgresspage_5 as String
32*cdf0e10cSrcweirPublic sContainerName(1) as String
33*cdf0e10cSrcweirPublic sReady as String, sTitle as String
34*cdf0e10cSrcweirPublic sCloseButton as String
35*cdf0e10cSrcweirPublic sSourceDocuments as String
36*cdf0e10cSrcweirPublic sTargetDocuments as String
37*cdf0e10cSrcweirPublic sSumSODocuments(4) as String
38*cdf0e10cSrcweirPublic sSumSOTemplates(4) as String
39*cdf0e10cSrcweirPublic sSumMSDocuments(3) as String
40*cdf0e10cSrcweirPublic sSumMSTemplates(3) as String
41*cdf0e10cSrcweirPublic ModuleList(3) as String
42*cdf0e10cSrcweirPublic sLogSummary as String
43*cdf0e10cSrcweirPublic sReeditMacro as String
44*cdf0e10cSrcweirPublic sOverwriteallFiles as String
45*cdf0e10cSrcweirPublic scouldnotopenDocument as String
46*cdf0e10cSrcweirPublic sCurcouldnotopenDocument as String
47*cdf0e10cSrcweirPublic scouldnotsaveDocument as String
48*cdf0e10cSrcweirPublic sCurcouldnotsaveDocument as String
49*cdf0e10cSrcweir
50*cdf0e10cSrcweir
51*cdf0e10cSrcweirSub LoadLanguage()
52*cdf0e10cSrcweir	If InitResources(&quot;ImportWizard&quot;,&quot;imp&quot;) then
53*cdf0e10cSrcweir		sHelpButton = GetResText(1000)
54*cdf0e10cSrcweir		sCancelButton = GetResText(1001)
55*cdf0e10cSrcweir		sBackButton = GetResText(1002)
56*cdf0e10cSrcweir		sNextButton = GetResText(1003)
57*cdf0e10cSrcweir		sBeginButton = GetResText(1004)
58*cdf0e10cSrcweir		sCloseButton = GetResText(1005)
59*cdf0e10cSrcweir
60*cdf0e10cSrcweir		sWelcometextLabel1 = ReplaceString(GetResText(1006), GetProductName(),&quot;%PRODUCTNAME&quot;)
61*cdf0e10cSrcweir		sWelcometextLabel2 = GetResText(1007)
62*cdf0e10cSrcweir		sWelcometextLabel3 = GetResText(1008)
63*cdf0e10cSrcweir
64*cdf0e10cSrcweir		&apos; Microsoft Documents
65*cdf0e10cSrcweir		GetApplResourceArray(1009, 3, sMSTemplateCheckBox())
66*cdf0e10cSrcweir
67*cdf0e10cSrcweir		&apos; DocumentCheckbox- Captions
68*cdf0e10cSrcweir		GetApplResourceArray(1012, 3, sMSDocumentCheckBox())
69*cdf0e10cSrcweir
70*cdf0e10cSrcweir		&apos; DocumentCheckbox- Captions
71*cdf0e10cSrcweir		GetApplResourceArray(2013, 5, sSODocumentCheckBox())
72*cdf0e10cSrcweir
73*cdf0e10cSrcweir		&apos;StarOffice Applicationnames
74*cdf0e10cSrcweir
75*cdf0e10cSrcweir		sSOHelperDocuments(0,0) = GetResText(2017)
76*cdf0e10cSrcweir		sSOHelperDocuments(0,1) = &quot;com.sun.star.text.GlobalDocument&quot;
77*cdf0e10cSrcweir		sSOHelperDocuments(1,0) = GetResText(2018)
78*cdf0e10cSrcweir		sSOHelperDocuments(1,1) = &quot;com.sun.star.formula.FormulaProperties&quot;
79*cdf0e10cSrcweir
80*cdf0e10cSrcweir		GetApplResourceArray(2017,2, sSOHelperDocuments())
81*cdf0e10cSrcweir
82*cdf0e10cSrcweir		sContainerName(0) = GetResText(1030)
83*cdf0e10cSrcweir		&apos; Note: for the version 5.2 there was no Productname &quot;StarSuite&quot;
84*cdf0e10cSrcweir		sContainerName(1) = &quot;StarOffice&quot;
85*cdf0e10cSrcweir
86*cdf0e10cSrcweir		sSummaryHeader = GetResText(1031)
87*cdf0e10cSrcweir
88*cdf0e10cSrcweir		sTemplateGroupName = GetResText(1036)
89*cdf0e10cSrcweir
90*cdf0e10cSrcweir		sProgressMoreDocs = GetResText(1041)
91*cdf0e10cSrcweir		sProgressMoreTemplates = GetResText(1042)
92*cdf0e10cSrcweir		sNoDirCreation = GetResText(1050)
93*cdf0e10cSrcweir		sMsgDirNotThere = GetResText(1051)
94*cdf0e10cSrcweir		sQueryForNewCreation = GetResText(1052)
95*cdf0e10cSrcweir		sFileExists = GetResText(1053)
96*cdf0e10cSrcweir		sMorePathsError3 = GetResText(1054)
97*cdf0e10cSrcweir		sConvertError1 = GetResText(1055)
98*cdf0e10cSrcweir		sConvertError2 = GetResText(1056)
99*cdf0e10cSrcweir		sRTErrorDesc = GetResText(1057)
100*cdf0e10cSrcweir		sRTErrorHeader = GetResText(1058)
101*cdf0e10cSrcweir		sOverwriteallFiles = GetResText(1070)
102*cdf0e10cSrcweir		sReeditMacro = GetResText(1071)
103*cdf0e10cSrcweir		scouldnotsaveDocument = GetResText(1072)
104*cdf0e10cSrcweir		scouldnotopenDocument = GetResText(1073)
105*cdf0e10cSrcweir		sPathDialogMessage = GetResText(1080)
106*cdf0e10cSrcweir		sTitle = GetResText(1081)
107*cdf0e10cSrcweir
108*cdf0e10cSrcweir		sProgressPage_1 = GetResText(1090)
109*cdf0e10cSrcweir		sProgressPage_2 = GetResText(1091)
110*cdf0e10cSrcweir		sProgressPage_3 = GetResText(1092)
111*cdf0e10cSrcweir		sProgressFound = GetResText(1093)
112*cdf0e10cSrcweir		sProgressPage_5 = GetResText(1094)
113*cdf0e10cSrcweir		sReady = GetResText(1100)
114*cdf0e10cSrcweir		sSourceDocuments = GetResText(2030)
115*cdf0e10cSrcweir		sTargetDocuments = GetResText(2031)
116*cdf0e10cSrcweir		sLogSummary = GetResText(2034)
117*cdf0e10cSrcweir		sSumInclusiveSubDir = GetResText(3000)
118*cdf0e10cSrcweir		sSumSaveDocuments = GetResText(3001)
119*cdf0e10cSrcweir		&apos;StarOffice Applicationnames
120*cdf0e10cSrcweir		GetApplResourceArray(3100, 4, sSumSODocuments())
121*cdf0e10cSrcweir		GetApplResourceArray(3110, 4, sSumSOTemplates())
122*cdf0e10cSrcweir		GetApplResourceArray(3200, 3, sSumMSDocuments())
123*cdf0e10cSrcweir		GetApplResourceArray(3210, 3, sSumMSTemplates())
124*cdf0e10cSrcweir		With ImportDialog
125*cdf0e10cSrcweir			sImportLabel = GetResText(1033)
126*cdf0e10cSrcweir			sExportLabel = GetResText(1034)
127*cdf0e10cSrcweir			sSearchInSubDir = GetResText(1022)
128*cdf0e10cSrcweir			.chkTemplateSearchSubDir.Label = sSearchInSubDir
129*cdf0e10cSrcweir			.lblDocumentImport.Label = sImportLabel
130*cdf0e10cSrcweir			.lblDocumentExport.Label = sExportLabel
131*cdf0e10cSrcweir			.chkDocumentSearchSubDir.Label = sSearchInSubDir
132*cdf0e10cSrcweir			.lblTemplateImport.Label = sImportLabel
133*cdf0e10cSrcweir			.lblTemplateExport.Label = sExportLabel
134*cdf0e10cSrcweir			.chkLogfile.Label = GetResText(2032)
135*cdf0e10cSrcweir			.chkLogfile.Helptext = GetResText(2033)
136*cdf0e10cSrcweir			Dim Blabla as String
137*cdf0e10cSrcweir			blabla = GetResText(1072)
138*cdf0e10cSrcweir			.cmdShowLogFile.Label = GetResText(2035)
139*cdf0e10cSrcweir		End With
140*cdf0e10cSrcweir		ModuleList(0) = &quot;com.sun.star.text.TextDocument&quot;
141*cdf0e10cSrcweir		ModuleList(1) = &quot;com.sun.star.sheet.SpreadsheetDocument&quot;
142*cdf0e10cSrcweir		ModuleList(2) = &quot;com.sun.star.drawing.DrawingDocument/com.sun.star.presentation.PresentationDocument&quot;
143*cdf0e10cSrcweir		ModuleList(3) = &quot;com.sun.star.formula.FormulaProperties/com.sun.star.text.GlobalDocument&quot;
144*cdf0e10cSrcweir	End If
145*cdf0e10cSrcweirEnd Sub
146*cdf0e10cSrcweir
147*cdf0e10cSrcweir
148*cdf0e10cSrcweirSub GetApplResourceArray(StartResIndex as Integer, Count as Integer, BigArray())
149*cdf0e10cSrcweirDim i as Integer
150*cdf0e10cSrcweirDim a as Integer
151*cdf0e10cSrcweir	a = 0
152*cdf0e10cSrcweir	For i = StartResIndex To StartResIndex + Count-1
153*cdf0e10cSrcweir		BigArray(a) = GetResText(i)
154*cdf0e10cSrcweir		a = a + 1
155*cdf0e10cSrcweir	Next
156*cdf0e10cSrcweirEnd Sub
157*cdf0e10cSrcweir</script:module>