summaryrefslogtreecommitdiff
path: root/wizards/source/tools/Misc.xba
diff options
context:
space:
mode:
authorTom Verbeek <tv@openoffice.org>2001-07-30 13:35:45 +0000
committerTom Verbeek <tv@openoffice.org>2001-07-30 13:35:45 +0000
commit652eefba21035b7688e7c4c9808b5e63d3649104 (patch)
tree02d780a53b2d9832909222a1931603302f297714 /wizards/source/tools/Misc.xba
parent6244c55206d64f73d9bbe8dfde238fe371d22789 (diff)
#89978# adapted to new registry settings
Diffstat (limited to 'wizards/source/tools/Misc.xba')
-rw-r--r--wizards/source/tools/Misc.xba9
1 files changed, 5 insertions, 4 deletions
diff --git a/wizards/source/tools/Misc.xba b/wizards/source/tools/Misc.xba
index 2b60febc3b42..9ceb5d637706 100644
--- a/wizards/source/tools/Misc.xba
+++ b/wizards/source/tools/Misc.xba
@@ -78,8 +78,8 @@ Dim aLocLocale As New com.sun.star.lang.Locale
Dim sLocale as String
Dim sLocaleList(1)
Dim oMasterKey
- oMasterKey = GetRegistryKeyContent(&quot;org.openoffice.UserProfile/International/&quot;)
- sLocale = oMasterKey.getByName(&quot;Locale&quot;)
+ oMasterKey = GetRegistryKeyContent(&quot;org.openoffice.Setup/L10N/&quot;)
+ sLocale = oMasterKey.getByName(&quot;ooLocale&quot;)
sLocaleList() = ArrayoutofString(sLocale, &quot;-&quot;)
aLocLocale.Language = sLocaleList(0)
If Ubound(sLocaleList()) &gt; 0 Then
@@ -101,11 +101,12 @@ End Function
Function GetProductname() as String
Dim oProdNameAccess as Object
+Dim omyNames(100) as Object
Dim sVersion as String
Dim sProdName as String
oProdNameAccess = GetRegistryKeyContent(&quot;org.openoffice.Setup/Product&quot;)
- sProdName = oProdNameAccess.getByName(&quot;Name&quot;)
- sVersion = oProdNameAccess.getByName(&quot;Version&quot;)
+ sProdName = oProdNameAccess.getByName(&quot;ooName&quot;)
+ sVersion = oProdNameAccess.getByName(&quot;ooSetupVersion&quot;)
GetProductName = sProdName &amp; &quot;.&quot; &amp; sVersion
End Function