Localizations for different users


Author
Message
Jiri Brazda
Jiri Brazda
StrataFrame Novice (124 reputation)StrataFrame Novice (124 reputation)StrataFrame Novice (124 reputation)StrataFrame Novice (124 reputation)StrataFrame Novice (124 reputation)StrataFrame Novice (124 reputation)StrataFrame Novice (124 reputation)StrataFrame Novice (124 reputation)StrataFrame Novice (124 reputation)
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 = 1029Wink User2 has English texts too after the postback.

Any solution, please?

Thanks

Jiri
Jiri Brazda
Jiri Brazda
StrataFrame Novice (124 reputation)StrataFrame Novice (124 reputation)StrataFrame Novice (124 reputation)StrataFrame Novice (124 reputation)StrataFrame Novice (124 reputation)StrataFrame Novice (124 reputation)StrataFrame Novice (124 reputation)StrataFrame Novice (124 reputation)StrataFrame Novice (124 reputation)
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
Jiri Brazda
Jiri Brazda
StrataFrame Novice (124 reputation)StrataFrame Novice (124 reputation)StrataFrame Novice (124 reputation)StrataFrame Novice (124 reputation)StrataFrame Novice (124 reputation)StrataFrame Novice (124 reputation)StrataFrame Novice (124 reputation)StrataFrame Novice (124 reputation)StrataFrame Novice (124 reputation)
Group: StrataFrame Users
Posts: 78, Visits: 356
Hi,

I'm really wondering - nobody can tell what to do?

Unsure
Keith Chisarik
Keith Chisarik
StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)
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
Trent Taylor
Trent Taylor
StrataFrame Developer (8.5K reputation)StrataFrame Developer (8.5K reputation)StrataFrame Developer (8.5K reputation)StrataFrame Developer (8.5K reputation)StrataFrame Developer (8.5K reputation)StrataFrame Developer (8.5K reputation)StrataFrame Developer (8.5K reputation)StrataFrame Developer (8.5K reputation)StrataFrame Developer (8.5K reputation)
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.  Wink
Jiri Brazda
Jiri Brazda
StrataFrame Novice (124 reputation)StrataFrame Novice (124 reputation)StrataFrame Novice (124 reputation)StrataFrame Novice (124 reputation)StrataFrame Novice (124 reputation)StrataFrame Novice (124 reputation)StrataFrame Novice (124 reputation)StrataFrame Novice (124 reputation)StrataFrame Novice (124 reputation)
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
Trent Taylor
Trent Taylor
StrataFrame Developer (8.5K reputation)StrataFrame Developer (8.5K reputation)StrataFrame Developer (8.5K reputation)StrataFrame Developer (8.5K reputation)StrataFrame Developer (8.5K reputation)StrataFrame Developer (8.5K reputation)StrataFrame Developer (8.5K reputation)StrataFrame Developer (8.5K reputation)StrataFrame Developer (8.5K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Glad it helped! Smile
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