Toolbar localization

7 posts, 0 answers
  1. akohlbeck
    akohlbeck avatar
    8 posts
    Member since:
    Jan 2007

    Posted 19 May 2008 Link to this post

    Hello.

    I see from an old post (http://www.telerik.com/community/forums/thread/b311D-tateh.aspx) that it was stated the Telerik doesn't plan to add localization support to the toolbar.

    Does that still hold for the new Prometheus controls?  We are in the process of upgrading to the new version of the controls and we're also adding localization support at the same time.  Do we have to create separate content files for each language and switch on the fly to achieve this, or is there now some built in support for localization?

    If there is no built in support, are there some good examples of switching the content files on the fly out there?

    Thanks!
  2. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 20 May 2008 Link to this post

    Hi akohlbeck,

    We decided to stick to the default localization mechanism provided by ASP.NET 2.0: in Visual Studio design time you can choose Tools -> Generate Local Resource and you'll have an XML file generated, where you can set the Text and ToolTip properties for the RadToolBar items.

    I hope this helps.

    Kind regards,
    Erjan Gavalji
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. tjans
    tjans avatar
    27 posts
    Member since:
    Aug 2007

    Posted 20 May 2008 Link to this post

    Is there anything extra that you have to do to tie the Prometheus controls to the resource file generated from Visual Studio?  It doesn't seem to be replacing the text...

    We are in a DotNetNuke project, I know for DNN localization of standard ASP labels,  you have to specify the "resourcekey" attribute to get localization to work. Is there something similar for the Prometheus controls?
  5. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 20 May 2008 Link to this post

    Hi travis.jansen,

    Indeed, the meta:resourcekey attribute is the one, used by the ASP.NET localization to replace the localized property values. Please, find attached a simple page, demonstrating the local resource file usage.

    Kind regards,
    Erjan Gavalji
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. tjans
    tjans avatar
    27 posts
    Member since:
    Aug 2007

    Posted 20 May 2008 Link to this post

    Thank you for your quick response.  Your example did work out of the box, but we are unable to specify which resource file to use based on the locale.  No matter what locale is set for the user, your example still pulls the text from Default.aspx.resx. That's problem number one, and frankly the most important one.

    Also, in our project, we are getting some strange behavior.  I had an existing toolbar on my user control, and the project built and ran fine (althought it didn't localize).  I then copied the code from the example you provided into my user control, and it gave me the error stating that I would need an axd http handler.  I was able to get that in my web.config, but I wonder why your toolbar would need that and my existing one did not. After all that, the copied in code is still not localizing text. 

    Question two is why does the toolbar require a scriptmanager and an http handler?
  7. tjans
    tjans avatar
    27 posts
    Member since:
    Aug 2007

    Posted 20 May 2008 Link to this post

    After some more testing, I was able to get your code to work switching the different locales, but I am not able to get it to work in a DNN module.  Has the localization been confirmed to work in DNN modules?
  8. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 20 May 2008 Link to this post

    Hello travis.jansen,

    I think you would find the following forum thread helpful:
    http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/111/threadid/217612/scope/posts/Default.aspx

    Regards,
    Albert
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017