Switch between two resources ...

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
10/11/2006 11:15:54 AM
Gravatar
Total Posts 550

Switch between two resources ...

Hi All

Please tell me who I can you use  my resources (Resource.fa.rex) intested of

Resource.

Thanks.

A.Samarian

10/11/2006 11:33:04 AM
Gravatar
Total Posts 18439

Re: Switch between two resources ...

In the web.config you will see this:

<globalization
            culture="auto:en-US"
            uiCulture="auto:en"
            requestEncoding="utf-8"
            responseEncoding="utf-8"
            fileEncoding="iso-8859-15" />

I think if you change it to be like this:

<globalization
    culture="fa-IR"
    uiCulture="fa"
    requestEncoding="utf-8"
    responseEncoding="utf-8"
    fileEncoding="iso-8859-15" />

it will force it to always use fa

or you could do this:

<globalization
    culture="auto:fa-IR"
    uiCulture="auto:fa"
    requestEncoding="utf-8"
    responseEncoding="utf-8"
    fileEncoding="iso-8859-15" />

which will make it try to use the language specified in the browser settings but it will fall back to fa if the user's chosen language is not available.

You should make sure there are no missing keys in your Resource.fa.resx file or it will throw an exception on a page that tries to use a missing key.

Best Regards,

Joe
10/11/2006 9:29:11 PM
Gravatar
Total Posts 550

Re: Switch between two resources ...

Hi Joe

I Do your answer and find and error in HomeLink.ascx.cs  as line 40.

I Think that my resource can not be found by GetGlobalResourceObject method.

thanks

 

10/12/2006 3:42:41 AM
Gravatar
Total Posts 18439

Re: Switch between two resources ...

I think you are missing the key for "HomePageLink" in your resource file. Add a key for this and the error should go away.

If you continue to have trouble with it, please send me your resource file and I will try and test it.

Hope it helps,

Joe
You must sign in to post in the forums. This thread is closed to new posts.