Support forum of the software localization tool Sisulizer


.NET, Delphi, ... - Sisulizer Localization Tool Support Home

Get in contact with the makers of Sisulizer.
Our forum is open for all questions around Sisulizer from customers and prospects.
Don't hesitate to register and ask. The Sisulizer team will answer ASAP.

Search     Help Home Sisulizer Website Download
Search by username
Not logged in - Login | Register 

 Moderated by: Renate.Reinartz, Markus.Kreisel, Jaakko.Salmenius, Ilkka.Salmenius Page:  First Page Previous Page  1  2   
New Topic Reply Printer Friendly
Huge bug report when starting new project - Bugs and Quirks in Sisulizer - Technical Support (You need to be registered at the forum to write) - .NET, Delphi, ... - Sisulizer Localization Tool Support
AuthorPost
 Posted: Wed Jul 28th, 2010 09:19 am
PM Private Upload Quote Reply
Gonen
Member
 

Joined: Tue Jul 27th, 2010
Location:  
Posts: 39
Status: 
Offline
Jaako,

Oke I understand it.

Maybe you can advise me in the following.

I have a database with users. In this database the users are stored and also the language the want to use. After login in I know the language.

Should I use localized XAP files or should I use the project-method and bind all my text messages to a resource?

What is the best approach in this?

 

Back To Top PM Private Upload Quote Reply

 Posted: Wed Jul 28th, 2010 09:34 am
PM Private Upload Quote Reply
Markus.Kreisel
Administrator


Joined: Sat Apr 8th, 2006
Location: Bedburg, Germany
Posts: 1900
Status: 
Offline
Hi,

Take a look at the JavaScript sample we provide. Can't you write some web app that reads you the language from your user database and then invokes the main application with the needed language parameter like our JavaScript sample?

Please understand that Microsoft did not implement a solution for a runtime language change. All major platforms forget about runtime change, Delphi, .NET, C++, ...
For Delphi and .NET we have classes that overcome the limitations. But for some platforms there is nothing we can base on, e.g. Silverlight. E.g. there needs to be an enumeration of GUI elements at runtime where we can find the elements already loaded to memory with the wrong strings.

In Silverlight the language has to been chosen at startup. So far we did not find a way how to overcome that limitation.

I would go the Sisulizer way (which is the default way of Microsoft) and create a mechanism that calls the localized XAP with the language depending on your user settings. Leaving the official path will always be a source of sorrows.

Just my 2 cents

Markus



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Private Upload Quote Reply

 Posted: Wed Jul 28th, 2010 09:52 am
PM Private Upload Quote Reply
Gonen
Member
 

Joined: Tue Jul 27th, 2010
Location:  
Posts: 39
Status: 
Offline
Markus thanks I will follow your advise and I will use XAP files.

I have created StartPage.html which fires the application with (for the test) a fixed language. When I call this page, the Silverlight Circle appears on the screen but nothing happens? The programm itself is not started? Any ideas?

I upload my files so you can check it.

Back To Top PM Private Upload Quote Reply

 Posted: Wed Jul 28th, 2010 10:05 am
PM Private Upload Quote Reply
Markus.Kreisel
Administrator


Joined: Sat Apr 8th, 2006
Location: Bedburg, Germany
Posts: 1900
Status: 
Offline
Hi,

Please take a look at this JavaScript sample.

        // Language switch script for Silverlight
        function CultureChange (culture) {
            document.getElementById("sl1").settings.culture = culture;
            document.getElementById("sl1").settings.uiculture = culture;
            // Reloads the control with the new settings
            document.getElementById("sl1").Source = document.getElementById("sl1").Source;
        }

sl1 is the name of the object in HTML. The last line seems to be funny but actually forces the object to reload on an existing page.

Markus



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Private Upload Quote Reply

 Posted: Wed Jul 28th, 2010 10:35 am
PM Private Upload Quote Reply
Gonen
Member
 

Joined: Tue Jul 27th, 2010
Location:  
Posts: 39
Status: 
Offline
Markus thanks that is clear but I have uploaded my project and have created a StartPage.html. In this page is the combobox from your example included. When I select a language, the screen is updated but I don't see any changes on the screen?

Can you change my project so that it works?

Back To Top PM Private Upload Quote Reply

 Posted: Wed Jul 28th, 2010 12:10 pm
PM Private Upload Quote Reply
Markus.Kreisel
Administrator


Joined: Sat Apr 8th, 2006
Location: Bedburg, Germany
Posts: 1900
Status: 
Offline
Hi,

I tried to run your original files and they have the same issue.

It guess the application is missing files on my system. And I guess the folder where you create your localized version is in the same situation. It simply seems incomplete.

Markus



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Private Upload Quote Reply

 Posted: Wed Jul 28th, 2010 01:59 pm
PM Private Upload Quote Reply
Gonen
Member
 

Joined: Tue Jul 27th, 2010
Location:  
Posts: 39
Status: 
Offline
Hi Markus,

I think I solved it (at least it works :)).

Here is a little code snippet:

function CultureChange (culture)
    {
 //alert(culture);
 switch(culture)
 {
  case "de":
   document.getElementById("sl1").settings.culture = culture;
   document.getElementById("sl1").settings.uiculture = culture;
          document.getElementById("sl1").Source = "clientbin/de/GaSuite.xap"
    //alert(document.getElementById("sl1").Source);
     break;
  case "nl":
   document.getElementById("sl1").settings.culture = culture;
   document.getElementById("sl1").settings.uiculture = culture;
          document.getElementById("sl1").Source = "clientbin/nl/GaSuite.xap"
   alert(document.getElementById("sl1").Source);
     break;
  case "fi":
   document.getElementById("sl1").settings.culture = culture;
   document.getElementById("sl1").settings.uiculture = culture;
          document.getElementById("sl1").Source = "clientbin/fi/GaSuite.xap"
   //alert(document.getElementById("sl1").Source);
     break;
  default:
     document.getElementById("sl1").settings.culture = en;
   document.getElementById("sl1").settings.uiculture = en;
          document.getElementById("sl1").Source = "clientbin/GaSuite.xap"
    //alert(document.getElementById("sl1").Source);
 
 }
    
    }
  </script>
</head>

<body>
  <!-- Language switch form for Silverlight. Please adapt to your needs for a runtime switch -->
  <div name="cc" style="background-color: darkblue">
    <center>
    <br>
    <font face="Arial" color="white">Sisulizer language switch </font>
    <form name="cc_f1">
      <select name="cc_s1">
        <option value="nl">Dutch</option>
        <option value="en">English</option>
        <option selected value="de">German</option>
        <option value="fr">French</option>
        <option value="fi">Finish</option>
       </select>
       <!-- Call to JavaScript function -->
       <input type="button" name="change" value="Change" onClick="CultureChange(document.cc_f1.cc_s1.options[document.cc_f1.cc_s1.selectedIndex].value)">
      </form>
    </center>
    <br>
  </div>
  <!-- Runtime errors from Silverlight will be displayed here.
 This will contain debugging information and should be removed or hidden when debugging is completed -->
  <div id='errorLocation' style="font-size: small;color: Gray;"></div>

  <div id="silverlightControlHost">
  <object id="sl1" data="data:application/x-silverlight," type="application/x-silverlight-2" width="100%" height="100%">
   <param name="source" value="clientbin/GaSuite.xap"/>
   <param name="onerror" value="onSilverlightError" />
   <param name="background" value="white" />
    <param name="minRuntimeVersion" value="3.0.40624.0" />
          <param name="autoUpgrade" value="true" />
     <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40624.0" style="text-decoration:none">
      <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/>
   </a>
  </object>
  <iframe style='visibility:hidden;height:0;width:0;border:0px'></iframe>
  </div>
</body>


In fact in my clientbin directory I have several Xap files (for each language).

What is your opinion?

 

Back To Top PM Private Upload Quote Reply

 Posted: Wed Jul 28th, 2010 02:10 pm
PM Private Upload Quote Reply
Markus.Kreisel
Administrator


Joined: Sat Apr 8th, 2006
Location: Bedburg, Germany
Posts: 1900
Status: 
Offline
Good to hear that it now works on your system. It simply was missing stuff on my system. That makes it hard to reproduce and test.
After all is that language change something MS forgot to implement better and we are also still learning how to overcome the limitations.

Markus



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Private Upload Quote Reply

 Posted: Wed Jul 28th, 2010 02:24 pm
PM Private Upload Quote Reply
Gonen
Member
 

Joined: Tue Jul 27th, 2010
Location:  
Posts: 39
Status: 
Offline
Markus,

Ok thanks.

After such struggling there maybe a little discount for me :)

Back To Top PM Private Upload Quote Reply

 Posted: Wed Jul 28th, 2010 04:44 pm
PM Private Upload Quote Reply
Markus.Kreisel
Administrator


Joined: Sat Apr 8th, 2006
Location: Bedburg, Germany
Posts: 1900
Status: 
Offline
I write you some PM.

Markus



____________________
http://www.sisulizer.com - Three simple steps to localize
Back To Top PM Private Upload Quote Reply

Current time is 08:28 pm Page:  First Page Previous Page  1  2     
.NET, Delphi, ... - Sisulizer Localization Tool Support > Technical Support (You need to be registered at the forum to write) > Bugs and Quirks in Sisulizer > Huge bug report when starting new project



WowUltra modified by Sisulizer Copyright © 2007-09 by Jim Hale - Based on WowBB Copyright © 2003-2006 Aycan Gulez

Sisulizer software localization tool - Three simple steps to localize