1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!DOCTYPE script:module PUBLIC
"-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
3 <script:module xmlns:
script=
"http://openoffice.org/2000/script" script:
name=
"L10N" script:
language=
"StarBasic">REM =======================================================================================================================
4 REM === The Access2Base library is a part of the LibreOffice project. ===
5 REM === Full documentation is available on http://www.access2base.com ===
6 REM =======================================================================================================================
10 REM -----------------------------------------------------------------------------------------------------------------------
11 REM --- PRIVATE FUNCTIONS ---
12 REM -----------------------------------------------------------------------------------------------------------------------
14 Public Function _GetLabel(ByVal psShortlabel As String, Optional ByVal psLocale As String) As String
15 ' Return the localized label corresponding with ShortLabel
17 If IsMissing(psLocale) Then psLocale = UCase(Left(_GetLocale(),
2)) Else psLocale = UCase(psLocale)
18 On Local Error Goto Error_Function
19 If Not Utils._InList(psLocale, Array( _
20 "EN
",
"FR
" _
21 )) Then psLocale =
"DEFAULT
" ' If list incomplete a recursive call will be provided anyway
26 Case
"EN
",
"DEFAULT
"
27 Select Case UCase(psShortlabel)
28 Case
"ERR
" & ERRDBNOTCONNECTED : sLocal =
"No active connection to a database found
"
29 Case
"ERR
" & ERRMISSINGARGUMENTS : sLocal =
"Arguments are missing or are not initialized
"
30 Case
"ERR
" & ERRWRONGARGUMENT : sLocal =
"Argument nr. %
0 [Value =
'%
1'] is invalid
"
31 Case
"ERR
" & ERRMAINFORM : sLocal =
"Document
'%
0' does not contain any form
"
32 Case
"ERR
" & ERRFORMNOTIDENTIFIED : sLocal =
"Form
'%
0' not identified in database Forms set
"
33 Case
"ERR
" & ERRFORMNOTFOUND : sLocal =
"Form
'%
0' not found
"
34 Case
"ERR
" & ERRFORMNOTOPEN : sLocal =
"Form
'%
0' is currently not open
"
35 Case
"ERR
" & ERRDFUNCTION : sLocal =
"DFunction execution failed, SQL=%
0"
36 Case
"ERR
" & ERROPENFORM : sLocal =
"Form
'%
0' could not be opened
"
37 Case
"ERR
" & ERRPROPERTY : sLocal =
"Property
'%
0' not applicable in this context
"
38 Case
"ERR
" & ERRPROPERTYVALUE : sLocal =
"Value
'%
0' is invalid for property
'%
1'"
39 Case
"ERR
" & ERRINDEXVALUE : sLocal =
"Out of array range or incorrect array size for property
'%
0'"
40 Case
"ERR
" & ERRCOLLECTION : sLocal =
"Out of array range
"
41 Case
"ERR
" & ERRPROPERTYNOTARRAY : sLocal =
"Argument nr.%
0 should be an array
"
42 Case
"ERR
" & ERRCONTROLNOTFOUND : sLocal =
"Control
'%
0' not found in parent (form, grid or dialog)
'%
1'"
43 Case
"ERR
" & ERRNOACTIVEFORM : sLocal =
"No active form or control found
"
44 Case
"ERR
" & ERRDATABASEFORM : sLocal =
"Form
'%
0' has no underlying dataset
"
45 Case
"ERR
" & ERRFOCUSINGRID : sLocal =
"Control
'%
0' not found in gridcontrol
'%
1'"
46 Case
"ERR
" & ERRNOGRIDINFORM : sLocal =
"No gridcontrol found in form
'%
0'"
47 Case
"ERR
" & ERRFINDRECORD : sLocal =
"FindNext() must be preceded by a successful FindRecord(...) call
"
48 Case
"ERR
" & ERRSQLSTATEMENT : sLocal =
"SQL Error, SQL statement =
'%
0'"
49 Case
"ERR
" & ERROBJECTNOTFOUND : sLocal =
"%
0 '%
1' not found
"
50 Case
"ERR
" & ERROPENOBJECT : sLocal =
"%
0 '%
1' could not be opened
"
51 Case
"ERR
" & ERRCLOSEOBJECT : sLocal =
"%
0 '%
1' could not be closed
"
52 Case
"ERR
" & ERRACTION : sLocal =
"Action not applicable in this context
"
53 Case
"ERR
" & ERRSENDMAIL : sLocal =
"Mail service could not be activated
"
54 Case
"ERR
" & ERRFORMYETOPEN : sLocal =
"Form %
0 is already open
"
55 Case
"ERR
" & ERRMETHOD : sLocal =
"Method
'%
0' not applicable in this context
"
56 Case
"ERR
" & ERRPROPERTYINIT : sLocal =
"Property
'%
0' applicable but not initialized
"
57 Case
"ERR
" & ERRFILENOTCREATED : sLocal =
"File
'%
0' could not be created
"
58 Case
"ERR
" & ERRDIALOGNOTFOUND : sLocal =
"Dialog
'%
0' not found in the currently loaded libraries
"
59 Case
"ERR
" & ERRDIALOGUNDEFINED : sLocal =
"Dialog unknown
"
60 Case
"ERR
" & ERRDIALOGSTARTED : sLocal =
"Dialog already started
"
61 Case
"ERR
" & ERRDIALOGNOTSTARTED : sLocal =
"Dialog
'%
0' not active
"
62 Case
"ERR
" & ERRRECORDSETNODATA : sLocal =
"Recordset delivered no data. Action on current record rejected
"
63 Case
"ERR
" & ERRRECORDSETCLOSED : sLocal =
"Recordset has been closed. Recordset action rejected
"
64 Case
"ERR
" & ERRRECORDSETRANGE : sLocal =
"Current record out of range
"
65 Case
"ERR
" & ERRRECORDSETFORWARD : sLocal =
"Action rejected in a forward-only or not bookmarkable recordset
"
66 Case
"ERR
" & ERRFIELDNULL : sLocal =
"Field is null or empty. Action rejected
"
67 Case
"ERR
" & ERRFILEACCESS : sLocal =
"File access error on file
'%
0'"
68 Case
"ERR
" & ERRMEMOLENGTH : sLocal =
"Field length (%
0) exceeds maximum length. Use WriteAllText instead
"
69 Case
"ERR
" & ERRNOTACTIONQUERY : sLocal =
"Query
'%
0' is not an action query
"
70 Case
"ERR
" & ERRNOTUPDATABLE : sLocal =
"Database, recordset or field is read only
"
71 Case
"ERR
" & ERRUPDATESEQUENCE : sLocal =
"Recordset update sequence error
"
72 Case
"ERR
" & ERRNOTNULLABLE : sLocal =
"Field
'%
0' must not contain a NULL value
"
73 Case
"ERR
" & ERRROWDELETED : sLocal =
"Current row has been deleted by another process or user
"
74 Case
"ERR
" & ERRRECORDSETCLONE : sLocal =
"Cloning a cloned Recordset is forbidden
"
75 Case
"ERR
" & ERRQUERYDEFDELETED : sLocal =
"Pre-existing query
'%
0' has been deleted
"
76 Case
"ERR
" & ERRTABLEDEFDELETED : sLocal =
"Pre-existing table
'%
0' has been deleted
"
77 Case
"ERR
" & ERRTABLECREATION : sLocal =
"Table
'%
0' could not be created
"
78 Case
"ERR
" & ERRFIELDCREATION : sLocal =
"Field
'%
0' could not be created
"
79 Case
"ERR
" & ERRSUBFORMNOTFOUND : sLocal =
"Subform
'%
0' not found in parent form
'%
1'"
80 Case
"ERR
" & ERRWINDOW : sLocal =
"Current window is not a document
"
81 '----------------------------------------------------------------------------------------------------------------------
82 Case
"OBJECT
" : sLocal =
"Object
"
83 Case
"TABLE
" : sLocal =
"Table
"
84 Case
"QUERY
" : slocal =
"Query
"
85 Case
"FORM
" : sLocal =
"Form
"
86 Case
"REPORT
" : sLocal =
"Report
"
87 Case
"RECORDSET
" : sLocal =
"Recordset
"
88 Case
"FIELD
" : sLocal =
"Field
"
89 Case
"TEMPVAR
" : sLocal =
"Temporary variable
"
90 Case
"COMAMANDBAR
" : sLocal =
"Command bar
"
91 Case
"COMMANDBARCONTROL
" : sLocal =
"Command bar control
"
92 '----------------------------------------------------------------------------------------------------------------------
93 Case
"ERR#
" : sLocal =
"Error #
"
94 Case
"ERROCCUR
" : sLocal =
"occurred
"
95 Case
"ERRLINE
" : sLocal =
"at line
"
96 Case
"ERRIN
" : sLocal =
"in
"
97 Case
"CALLTO
" : sLocal =
"a call to function
"
98 Case
"SAVECONSOLE
" : sLocal =
"Save console
"
99 Case
"SAVECONSOLEENTRIES
" : sLocal =
"The console entries have been saved successfully.
"
100 Case
"QUITSHORT
" : sLocal =
"Quit
"
101 Case
"QUIT
" : sLocal =
"Do you really want to quit the application ? Changed data will be saved.
"
102 Case
"ENTERING
" : sLocal =
"Entering
"
103 Case
"EXITING
" : sLocal =
"Exiting
"
104 '----------------------------------------------------------------------------------------------------------------------
105 Case
"DLGTRACE_HELP
" : sLocal =
"Manage the console buffer and its entries
"
106 Case
"DLGTRACE_TITLE
" : sLocal =
"Console
"
107 Case
"DLGTRACE_LBLENTRIES_HELP
" : sLocal =
"Clear the list and resize the circular buffer
"
108 Case
"DLGTRACE_LBLENTRIES_LABEL
" : sLocal =
"Set max number of entries
"
109 Case
"DLGTRACE_TXTTRACELOG_HELP
" : sLocal =
"Text can be selected, copied, ...
"
110 Case
"DLGTRACE_TXTTRACELOG_TEXT
" : sLocal =
"--- Log file is empty ---
"
111 Case
"DLGTRACE_CMDCANCEL_HELP
" : sLocal =
"Cancel and close the dialog
"
112 Case
"DLGTRACE_CMDCANCEL_LABEL
" : sLocal =
"Cancel
"
113 Case
"DLGTRACE_LBLCLEAR_HELP
" : sLocal =
"Clear the list
"
114 Case
"DLGTRACE_LBLCLEAR_LABEL
" : sLocal =
"Clear the list
"
115 Case
"DLGTRACE_LBLMINLEVEL_HELP
" : sLocal =
"Register only logging requests above given level
"
116 Case
"DLGTRACE_LBLMINLEVEL_LABEL
" : sLocal =
"Set minimal trace level
"
117 Case
"DLGTRACE_CMDOK_HELP
" : sLocal =
"Validate
"
118 Case
"DLGTRACE_CMDOK_LABEL
" : sLocal =
"OK
"
119 Case
"DLGTRACE_CMDDUMP_HELP
" : sLocal =
"Choose a file and dump the actual list content in it
"
120 Case
"DLGTRACE_CMDDUMP_LABEL
" : sLocal =
"Dump to file
"
121 Case
"DLGTRACE_LBLNBENTRIES_HELP
" : sLocal =
"Actual size of list
"
122 Case
"DLGTRACE_LBLNBENTRIES_LABEL
" : sLocal =
"Actual number of entries:
"
123 '----------------------------------------------------------------------------------------------------------------------
124 Case
"DLGFORMAT_HELP
" : sLocal =
"Export the form
"
125 Case
"DLGFORMAT_TITLE
" : sLocal =
"OutputTo
"
126 Case
"DLGFORMAT_LBLFORMAT_HELP
" : sLocal =
"Format in which the form should be exported
"
127 Case
"DLGFORMAT_LBLFORMAT_LABEL
" : sLocal =
"Select the output format
"
128 Case
"DLGFORMAT_CMDOK_HELP
" : sLocal =
"Validate your choice
"
129 Case
"DLGFORMAT_CMDOK_LABEL
" : sLocal =
"OK
"
130 Case
"DLGFORMAT_CMDCANCEL_HELP
" : sLocal =
"Cancel and close the dialog
"
131 Case
"DLGFORMAT_CMDCANCEL_LABEL
" : sLocal =
"Cancel
"
132 '----------------------------------------------------------------------------------------------------------------------
133 Case Else : sLocal =
""
136 Select Case UCase(psShortlabel)
137 Case
"ERR
" & ERRDBNOTCONNECTED : sLocal =
"Pas de connexion active trouvée à une banque de données
"
138 Case
"ERR
" & ERRMISSINGARGUMENTS : sLocal =
"Des arguments sont manquants ou non initialisés
"
139 Case
"ERR
" & ERRWRONGARGUMENT : sLocal =
"L
'argument n° %
0 [Valeur =
'%
1'] n
'est pas valable
"
140 Case
"ERR
" & ERRMAINFORM : sLocal =
"Le document
'%
0' ne contient aucun formulaire
"
141 Case
"ERR
" & ERRFORMNOTIDENTIFIED : sLocal =
"Le formulaire
'%
0' n
'a pas pu être identifié parmi l
'ensemble des formulaires de la Database
"
142 Case
"ERR
" & ERRFORMNOTFOUND : sLocal =
"Formulaire
'%
0' non trouvé
"
143 Case
"ERR
" & ERRFORMNOTOPEN : sLocal =
"Le formulaire
'%
0' n
'est actuellement pas ouvert
"
144 Case
"ERR
" & ERRDFUNCTION : sLocal =
"L
'exécution de la
""fonction database
"" a échoué, SQL=%
0"
145 Case
"ERR
" & ERROPENFORM : sLocal =
"Le formulaire
'%
0' n
'a pas pu être ouvert
"
146 Case
"ERR
" & ERRPROPERTY : sLocal =
"La propriété
'%
0' n
'est pas applicable dans ce contexte
"
147 Case
"ERR
" & ERRPROPERTYVALUE : sLocal =
"La valeur
'%
0' est invalide pour la propriété
'%
1'"
148 Case
"ERR
" & ERRINDEXVALUE : sLocal =
"Indice invalide ou dimension erronée du tableau pour la propriété
'%
0'"
149 Case
"ERR
" & ERRCOLLECTION : sLocal =
"Indice de tableau invalide
"
150 Case
"ERR
" & ERRPROPERTYNOTARRAY : sLocal =
"L
'argument n°%
0 doit être un tableau
"
151 Case
"ERR
" & ERRCONTROLNOTFOUND : sLocal =
"Contrôle
'%
0' non trouvé dans le parent (formulaire, contrôle de table ou dialogue)
'%
1'"
152 Case
"ERR
" & ERRNOACTIVEFORM : sLocal =
"Pas de formulaire ou de contrôle actif
"
153 Case
"ERR
" & ERRDATABASEFORM : sLocal =
"Le formulaire
'%
0' n
'a pas de données sous-jacentes
"
154 Case
"ERR
" & ERRFOCUSINGRID : sLocal =
"Contrôle
'%
0' non trouvé dans le contrôle de table
'%
1'"
155 Case
"ERR
" & ERRNOGRIDINFORM : sLocal =
"Aucun contrôle de table trouvé dans le formulaire
'%
0'"
156 Case
"ERR
" & ERRFINDRECORD : sLocal =
"FindNext() doit être précédé par un appel réussi à FindRecord(...)
"
157 Case
"ERR
" & ERRSQLSTATEMENT : sLocal =
"Erreur SQL, instruction SQL =
'%
0'"
158 Case
"ERR
" & ERROBJECTNOTFOUND : sLocal =
"%
0 '%
1' non trouvé(e)
"
159 Case
"ERR
" & ERROPENOBJECT : sLocal =
"%
0 '%
1': ouverture en échec
"
160 Case
"ERR
" & ERRCLOSEOBJECT : sLocal =
"%
0 '%
1': fermeture en échec
"
161 Case
"ERR
" & ERRACTION : sLocal =
"Action non applicable dans ce contexte
"
162 Case
"ERR
" & ERRSENDMAIL : sLocal =
"Le service de messagerie n
'a pas pu être activé
"
163 Case
"ERR
" & ERRFORMYETOPEN : sLocal =
"Le formulaire %
0 est déjà ouvert
"
164 Case
"ERR
" & ERRMETHOD : sLocal =
"La méthode
'%
0' n
'est pas applicable dans ce contexte
"
165 Case
"ERR
" & ERRPROPERTYINIT : sLocal =
"Propriété
'%
0' applicable mais non initialisée
"
166 Case
"ERR
" & ERRFILENOTCREATED : sLocal =
"Erreur de création du fichier
'%
0'"
167 Case
"ERR
" & ERRDIALOGNOTFOUND : sLocal =
"Dialogue
'%
0' introuvable dans les librairies chargées actuellement
"
168 Case
"ERR
" & ERRDIALOGUNDEFINED : sLocal =
"Boîte de dialogue inconnue
"
169 Case
"ERR
" & ERRDIALOGSTARTED : sLocal =
"Dialogue déjà initialisé précédemment
"
170 Case
"ERR
" & ERRDIALOGNOTSTARTED : sLocal =
"Dialogue
'%
0' non initialisé
"
171 Case
"ERR
" & ERRRECORDSETNODATA : sLocal =
"Recordset n
'a pas fourni de données. Toute action sur les enregistrements est rejetée
"
172 Case
"ERR
" & ERRRECORDSETCLOSED : sLocal =
"Recordset a été clôturé. Action sur l
'enregistrement courant est rejetée
"
173 Case
"ERR
" & ERRRECORDSETRANGE : sLocal =
"L
'enregistrement courant est hors cadre
"
174 Case
"ERR
" & ERRRECORDSETFORWARD : sLocal =
"Action rejetée car recordset lisible seulement vers l
'avant ou n
'acceptant pas de signets
"
175 Case
"ERR
" & ERRFIELDNULL : sLocal =
"Champ nul ou vide. Action rejetée
"
176 Case
"ERR
" & ERRFILEACCESS : sLocal =
"Erreur d
'accès au fichier
'%
0'"
177 Case
"ERR
" & ERRMEMOLENGTH : sLocal =
"La longueur du champ (%
0) dépasse la taille maximale autorisée.. Remplacer par WriteAllText
"
178 Case
"ERR
" & ERRNOTACTIONQUERY : sLocal =
"La requête
'%
0' n
'est pas une requête d
'action
"
179 Case
"ERR
" & ERRNOTUPDATABLE : sLocal =
"La banque de données, le recordset ou le champ sont en lecture seulement
"
180 Case
"ERR
" & ERRUPDATESEQUENCE : sLocal =
"Erreur de séquence lors de la mise à jour d
'un Recordset
"
181 Case
"ERR
" & ERRNOTNULLABLE : sLocal =
"Le champ
'%
0' ne peut pas recevoir une valeur NULLe
"
182 Case
"ERR
" & ERRROWDELETED : sLocal =
"L
'enregistrement courant a été effacé par un autre processus ou un autre utilisateur
"
183 Case
"ERR
" & ERRRECORDSETCLONE : sLocal =
"Le clonage d
'un Recordset cloné est interdit
"
184 Case
"ERR
" & ERRQUERYDEFDELETED : sLocal =
"La requête existante
'%
0' a été supprimée
"
185 Case
"ERR
" & ERRTABLEDEFDELETED : sLocal =
"La table existante
'%
0' a été supprimée
"
186 Case
"ERR
" & ERRTABLECREATION : sLocal =
"La table
'%
0' n
'a pas pu être créée
"
187 Case
"ERR
" & ERRFIELDCREATION : sLocal =
"Le champ
'%
0' n
'a pas pu être créé
"
188 Case
"ERR
" & ERRSUBFORMNOTFOUND : sLocal =
"Sous-formulaire
'%
0' non trouvé dans le formulaire parent
'%
1'"
189 Case
"ERR
" & ERRWINDOW : sLocal =
"La fenêtre courante n
'est pas un document
"
190 '----------------------------------------------------------------------------------------------------------------------
191 Case
"OBJECT
" : sLocal =
"Objet
"
192 Case
"TABLE
" : sLocal =
"Table
"
193 Case
"QUERY
" : slocal =
"Requête
"
194 Case
"FORM
" : sLocal =
"Formulaire
"
195 Case
"REPORT
" : sLocal =
"Rapport
"
196 Case
"RECORDSET
" : sLocal =
"Recordset
"
197 Case
"FIELD
" : sLocal =
"Champ
"
198 Case
"TEMPVAR
" : sLocal =
"Variable temporaire
"
199 Case
"COMAMANDBAR
" : sLocal =
"Barre de commande
"
200 Case
"COMMANDBARCONTROL
" : sLocal =
"Elément de barre de commande
"
201 '----------------------------------------------------------------------------------------------------------------------
202 Case
"ERR#
" : sLocal =
"L
'erreur #
"
203 Case
"ERROCCUR
" : sLocal =
"s
'est produite
"
204 Case
"ERRLINE
" : sLocal =
"à la ligne
"
205 Case
"ERRIN
" : sLocal =
"dans
"
206 Case
"CALLTO
" : sLocal =
"un appel à la fonction
"
207 Case
"SAVECONSOLE
" : sLocal =
"Sauver console
"
208 Case
"SAVECONSOLEENTRIES
" : sLocal =
"Les entrées de la console ont été sauvées avec succès.
"
209 Case
"QUITSHORT
" : sLocal =
"Quitter
"
210 Case
"QUIT
" : sLocal =
"Voulez-vous réellement quitter l
'application ? Les données modifiées seront sauvées.
"
211 Case
"ENTERING
" : sLocal =
"Entrée dans
"
212 Case
"EXITING
" : sLocal =
"Sortie de
"
213 '----------------------------------------------------------------------------------------------------------------------
214 Case
"DLGTRACE_HELP
" : sLocal =
"Gestion du tampon de la console et toutes ses entrées
"
215 Case
"DLGTRACE_TITLE
" : sLocal =
"Console
"
216 Case
"DLGTRACE_LBLENTRIES_HELP
" : sLocal =
"Effacer la liste et redimensionner le tampon circulaire
"
217 Case
"DLGTRACE_LBLENTRIES_LABEL
" : sLocal =
"Définir le nombre maximum d
'entrées
"
218 Case
"DLGTRACE_TXTTRACELOG_HELP
" : sLocal =
"Le texte peut être sélectionné, copié, ...
"
219 Case
"DLGTRACE_TXTTRACELOG_TEXT
" : sLocal =
"--- Le fichier journal est vide ---
"
220 Case
"DLGTRACE_CMDCANCEL_HELP
" : sLocal =
"Annuler et fermer la boîte de dialogue
"
221 Case
"DLGTRACE_CMDCANCEL_LABEL
" : sLocal =
"Annuler
"
222 Case
"DLGTRACE_LBLCLEAR_HELP
" : sLocal =
"Effacer la liste
"
223 Case
"DLGTRACE_LBLCLEAR_LABEL
" : sLocal =
"Effacer la liste
"
224 Case
"DLGTRACE_LBLMINLEVEL_HELP
" : sLocal =
"N
'enregistrer que les demandes de journalisation à partir du niveau indiqué
"
225 Case
"DLGTRACE_LBLMINLEVEL_LABEL
" : sLocal =
"Définir le niveau minimal d
'enregistrement
"
226 Case
"DLGTRACE_CMDOK_HELP
" : sLocal =
"Valider
"
227 Case
"DLGTRACE_CMDOK_LABEL
" : sLocal =
"OK
"
228 Case
"DLGTRACE_CMDDUMP_HELP
" : sLocal =
"Sélectionner un fichier et y vider le contenu actuel des traces enregistrées
"
229 Case
"DLGTRACE_CMDDUMP_LABEL
" : sLocal =
"Vider dans fichier
"
230 Case
"DLGTRACE_LBLNBENTRIES_HELP
" : sLocal =
"Taille actuelle de la liste
"
231 Case
"DLGTRACE_LBLNBENTRIES_LABEL
" : sLocal =
"Nombre actuel d
'entrées:
"
232 '----------------------------------------------------------------------------------------------------------------------
233 Case
"DLGFORMAT_HELP
" : sLocal =
"Exporter le formulaire
"
234 Case
"DLGFORMAT_TITLE
" : sLocal =
"OutputTo
"
235 Case
"DLGFORMAT_LBLFORMAT_HELP
" : sLocal =
"Format dans lequel le formulaire sera exporté
"
236 Case
"DLGFORMAT_LBLFORMAT_LABEL
" : sLocal =
"Selectionner le format de sortie
"
237 Case
"DLGFORMAT_CMDOK_HELP
" : sLocal =
"Valider votre choix
"
238 Case
"DLGFORMAT_CMDOK_LABEL
" : sLocal =
"OK
"
239 Case
"DLGFORMAT_CMDCANCEL_HELP
" : sLocal =
"Annuler et fermer la boîte de dialogue
"
240 Case
"DLGFORMAT_CMDCANCEL_LABEL
" : sLocal =
"Annuler
"
241 '----------------------------------------------------------------------------------------------------------------------
242 Case Else : sLocal = _Getlabel(psShortLabel,
"DEFAULT
")
244 REM *******************************************************************************************************************************************
246 REM *** ANY OTHER LANGUAGE TO BE INSERTED HERE ***
248 REM *******************************************************************************************************************************************
250 sLocal = _Getlabel(psShortLabel,
"DEFAULT
")
257 sLocal = psShortLabel
259 End Function
' GetLabel V0.8
.9
261 REM -----------------------------------------------------------------------------------------------------------------------
262 Public Function _GetLabelArray(ByVal pvShortlabel As Variant, Optional ByVal psLocale As String) As Variant
263 ' Return the localized label corresponding with the ShortLabel array of strings
265 If IsMissing(psLocale) Then psLocale = UCase(Left(_GetLocale(),
2)) Else psLocale = UCase(psLocale)
266 On Local Error Goto Error_Function
268 Dim vLocal() As Variant, i As integer
271 If Not IsArray(pvShortLabel) Then
272 vLocal = _GetLabel(pvShortLabel, psLocale)
276 ReDim vLocal(LBound(pvShortLabel) To UBound(pvShortlabel))
277 For i = LBound(pvShortLabel) To UBound(pvShortlabel)
278 vLocal(i) = _GetLabel(pvShortLabel(i), psLocale)
282 _GetlabelArray = vLocal()
287 End Function
' GetLabelArray V0.8
.9
289 REM -----------------------------------------------------------------------------------------------------------------------
290 Public Function _GetLocale() as String
291 'Return OO localization
292 'Derived from Tools library
294 Dim oLocale as Object
295 oLocale = _GetRegistryKeyContent(
"org.openoffice.Setup/L10N
")
296 _GetLocale = oLocale.getByName(
"ooLocale
")
297 End Function
' GetLocale V0.8
.9