localization(LNG) file on htm page

Available localizations for PivotCube

Moderator: Alex Zencovich

localization(LNG) file on htm page

Postby Cedric » Mon Jan 14, 2008 8:18 am

Hello,

I want to use a different language on my cube (not english).
I use PivotCubeX on a html page.

When i change the texts of the localization file 'C:\Program Files\PivotCubeX\Runtime\PivotCube.lng', nothing happends.

so, the file isn't used.

i wrote :

Code: Select all
<script LANGUAGE="VBScript">
   Sub SubLoad()
      PCX.Width = 850
      PCX.LoadLngFile 'C:\Program Files\PivotCubeX\Runtime\PivotCube.lng'
   End Sub


on the demo file, but it doesn't work.

Could you help me to load this file, please ?

regards,
Cedric.
Cedric
Guest
 
Posts: 2
Joined: Fri Jan 11, 2008 1:17 pm

Postby AlexZencovich » Mon Jan 14, 2008 5:29 pm

For me next code works very well (you may try add this to demo.htm and check)

Sub btnActivate_onClick()
PCX.LoadLngFile "C:\PivotCube.lng"
PCX.CubeActive = True

of course you should check if file exists in specifed location

and you should use double " " instead of single ' '
Best regards,

Alex Zencovich
-------------------------------------------------------------------------------------------------------------------------------------------
www.pivotcube.com - OLAP solution for Delphi, C++ Builder and ActiveX environment
AlexZencovich
Site Admin
 
Posts: 580
Joined: Sun Jun 18, 2006 10:09 am

Postby Cedric » Wed Jan 16, 2008 1:55 pm

Hello,
Thank you, i work now, when i place PCX.LoadLngFile on the function Sub btnActivate_onClick().

So the language is set when i clic on the activate button,
But it doesn't work when i place PCX.LoadLngFile on the main function Sub SubLoad().

the goal is to have immediately the right language, but it's enough like that. :)

Cedric.
Cedric
Guest
 
Posts: 2
Joined: Fri Jan 11, 2008 1:17 pm

Postby AlexZencovich » Sat Jan 19, 2008 7:11 am

Please check if OLE object really exists when SubLoad called. There may be not and you should force it or use another event like OnActivate
Best regards,

Alex Zencovich
-------------------------------------------------------------------------------------------------------------------------------------------
www.pivotcube.com - OLAP solution for Delphi, C++ Builder and ActiveX environment
AlexZencovich
Site Admin
 
Posts: 580
Joined: Sun Jun 18, 2006 10:09 am


Return to Localization

Who is online

Users browsing this forum: No registered users and 1 guest

cron