StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
WebForms (How do I?)
»
Localizations for different users
Localizations for different users
Post Reply
Like
1
Localizations for different users
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Jiri Brazda
Jiri Brazda
posted 13 Years Ago
ANSWER
Topic Details
Share Topic
Group: StrataFrame Users
Posts: 78,
Visits: 356
Hi,
Is there any possibility to have different language for different users? When I log to an application under User1 account from computer1 and User2 account from computer2 both of them have Czech localization. But when User1 changes his language to English (MicroFour.StrataFrame.UI.
Localization
.MessageLocaleID = 1029
User2 has English texts too after the postback.
Any solution, please?
Thanks
Jiri
Reply
Like
1
Jiri Brazda
Jiri Brazda
posted 13 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Users
Posts: 78,
Visits: 356
Hi,
can anybody give me a short answer, please? I hope that this scenario is not so unusual....
Thanks
Jiri
Reply
Like
1
Jiri Brazda
Jiri Brazda
posted 13 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Users
Posts: 78,
Visits: 356
Hi,
I'm really wondering - nobody can tell what to do?
Reply
Like
1
Keith Chisarik
Keith Chisarik
posted 13 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Users
Posts: 939,
Visits: 40K
I am sorry, I have not localized a web app to help you. I am sure a developer will be along....
Keith Chisarik
Sigma Data Systems
Reply
Like
1
Trent Taylor
Trent Taylor
posted 13 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 6.9K
This gets pulled from the MessageLocaleID set in the application start up. So generally, when using this, it applies to the application pool instead of the session. However, there are some things that you can do. The first, you will need to control the locale ID by using the "Retrieve..." methods to pull the localization messages:
MicroFour.StrataFrame.UI.Localization.RetrieveTextValue("yourKey")
You can then store the locale ID in a session variable instead of using the core application logic to pull this. One thing that I have done before is subclass a label, etc. and have it look at the session variable that stores the locale ID and the pulls it and sets the label. This allows you to use the localization engine, but takes the setting of the label out of the frameworks hands and lets you manipulate this to your needs. That is why these methods are exposed.
Hope this helps.
Reply
Like
1
Jiri Brazda
Jiri Brazda
posted 13 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Users
Posts: 78,
Visits: 356
Hi Trent,
thank You for the tip, I have done it as You proposed and it works fine.
Best regards
Jiri
Reply
Like
1
Trent Taylor
Trent Taylor
posted 13 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 6.9K
Glad it helped!
Reply
Like
1
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Like
1
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search