Deploy built-in framework localization data


Author
Message
Chan
Chan
Advanced StrataFrame User (731 reputation)Advanced StrataFrame User (731 reputation)Advanced StrataFrame User (731 reputation)Advanced StrataFrame User (731 reputation)Advanced StrataFrame User (731 reputation)Advanced StrataFrame User (731 reputation)Advanced StrataFrame User (731 reputation)Advanced StrataFrame User (731 reputation)Advanced StrataFrame User (731 reputation)
Group: Forum Members
Posts: 533, Visits: 2K
Hi,

Thank you for reply.

I just re-try at home and also the same.

I think the confusing part is, where is the source? Ivan, you are right, I don't have any data in my project/table.

In my case, I just want to deploy the localization data shipped with SF framework ONLY, not include my project.

As I could see a lot of localization XML file stored under MicroFour folder. However, if I really want to use SQL Server as data source for localization data, how could I do so?



Thank you
Chan
Chan
Advanced StrataFrame User (731 reputation)Advanced StrataFrame User (731 reputation)Advanced StrataFrame User (731 reputation)Advanced StrataFrame User (731 reputation)Advanced StrataFrame User (731 reputation)Advanced StrataFrame User (731 reputation)Advanced StrataFrame User (731 reputation)Advanced StrataFrame User (731 reputation)Advanced StrataFrame User (731 reputation)
Group: Forum Members
Posts: 533, Visits: 2K
Hi,

One more thing is that, if SF only provide localization data in XML format, its fine. However, I prefer to have my project localization data in SQL Server. How to have two type of data source for localization?



Thank you
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
For the pre-localized SF components, it should be working already if you added different languages into your Localization project. Just create a way to change the current language and you should be fine. Do a search in the forum and you will find many posts about it.

Now, for you application texts and messages, you need to create the keys in the Localization project in order to be able to export them to your Deployment package, and use them thoughtout your solution.

Chan
Chan
Advanced StrataFrame User (731 reputation)Advanced StrataFrame User (731 reputation)Advanced StrataFrame User (731 reputation)Advanced StrataFrame User (731 reputation)Advanced StrataFrame User (731 reputation)Advanced StrataFrame User (731 reputation)Advanced StrataFrame User (731 reputation)Advanced StrataFrame User (731 reputation)Advanced StrataFrame User (731 reputation)
Group: Forum Members
Posts: 533, Visits: 2K
Hi,

I tried to add new language yo my localization project, add new entry to text values portion and try deploy package to server again. This time, I included my localization project and CommonRepository. The result is



Deploying data for MessagingItems complete: 1 records (Previously is 0)

Deploying data to MessagingLanguages complete: 3 records.



Seem like SF pre-localizaed component is not included.

Please advice.



Shall you show me something like video?

Thank you
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
The pre-localized keys for the components are embedded in the SF DLLs. You won't have them in your Message Items table.

And if you generate XML files for your project and embedd them into your projects, you won't need localization tables at all.

Chan
Chan
Advanced StrataFrame User (731 reputation)Advanced StrataFrame User (731 reputation)Advanced StrataFrame User (731 reputation)Advanced StrataFrame User (731 reputation)Advanced StrataFrame User (731 reputation)Advanced StrataFrame User (731 reputation)Advanced StrataFrame User (731 reputation)Advanced StrataFrame User (731 reputation)Advanced StrataFrame User (731 reputation)
Group: Forum Members
Posts: 533, Visits: 2K
Hi,

If SF localization XML is embedded in DLL, then what should I set for MicroFour.StrataFrame.UI.Localization.MessageKeyType? Currently I set as SqlServer and I hit error when using SFUsersBO - localization key is not found.



Please advice

Thank you
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Could you post the the Stack Trace, Chan?
Chan
Chan
Advanced StrataFrame User (731 reputation)Advanced StrataFrame User (731 reputation)Advanced StrataFrame User (731 reputation)Advanced StrataFrame User (731 reputation)Advanced StrataFrame User (731 reputation)Advanced StrataFrame User (731 reputation)Advanced StrataFrame User (731 reputation)Advanced StrataFrame User (731 reputation)Advanced StrataFrame User (731 reputation)
Group: Forum Members
Posts: 533, Visits: 2K
Hi,

Please find the attached screenshot.

Thank you
Attachments
localization error.JPG (147 views, 233.00 KB)
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Chan, I have no idea about what you are trying to do with SFSUsersBO, which is probably managed by the Role Based Security, which would have all the keys needed for localization.
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Chan,

I am confused at this point after reading through this post.  So let's back up and start over here.  Al pre-localized components are embedded in the SF assemblies.  If you are having issues with your localization records, then we can discuss options here as well.  But when and where are you getting a localization error.  If you believe this to be an SF pre-localized key, then which control do you believe is supposed to be getting pulled.  Off of the top of my head, I cannot think of any keys that would be getting pulled on the web side of things.  Most pre-localizations in the framework are for the WinForms controls.  So I would assume here that we are talking about YOUR keys, not the SF keys.  If so, confirm what I have said and we can start from here.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search