|
|||
|
.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
|
| Moderated by: Renate.Reinartz, Markus.Kreisel, Jaakko.Salmenius, Ilkka.Salmenius | Page: 1 2 |
|
|||||||||||||||
| 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 | |||||||||||||||||
| Author | Post | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|||||||||||||||||
|
Gonen Member
|
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?
|
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
Markus.Kreisel Administrator
|
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 |
||||||||||||||||
| |||||||||||||||||
|
|||||||||||||||||
|
Gonen Member
|
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.
|
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
Markus.Kreisel Administrator
|
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 |
||||||||||||||||
| |||||||||||||||||
|
|||||||||||||||||
|
Gonen Member
|
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?
|
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
Markus.Kreisel Administrator
|
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 |
||||||||||||||||
| |||||||||||||||||
|
|||||||||||||||||
|
Gonen Member
|
Hi Markus, I think I solved it (at least it works Here is a little code snippet:
In fact in my clientbin directory I have several Xap files (for each language). What is your opinion?
|
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
Markus.Kreisel Administrator
|
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 |
||||||||||||||||
| |||||||||||||||||
|
|||||||||||||||||
|
Gonen Member
|
Markus, Ok thanks. After such struggling there maybe a little discount for me
|
||||||||||||||||
| |||||||||||||||||
| |||||||||||||||||
|
Markus.Kreisel Administrator
|
I write you some PM. Markus
____________________ http://www.sisulizer.com - Three simple steps to localize |
||||||||||||||||
| |||||||||||||||||
| Current time is 08:08 pm | 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 | |
Sisulizer software localization tool - Three simple steps to localize