Localization with custom provider

5 posts, 0 answers
  1. Christian
    Christian avatar
    6 posts
    Member since:
    May 2009

    Posted 24 Mar 2011 Link to this post

    I work with a system that has a custom resource provider that uses a database to store values. 

    Would it be possible to leverage that provider with the reporting localization or can you only use .resx files?

    Thanks in advance!
  2. Peter
    Admin
    Peter avatar
    1651 posts

    Posted 30 Mar 2011 Link to this post

    Hi Christian,

    The only way for Localizing Telerik Reports is through a resx file. Telerik Reporting uses a similar methodology for localization as Visual Studio uses for Windows Forms. The designer lets you define static text for the report (e.g. column headings, titles) in each language that you specify. A resource file (resx) is automatically created for each language to store translated text.

    Greetings,
    Peter
    the Telerik team
  3. Hugo
    Hugo avatar
    1 posts
    Member since:
    Jan 2011

    Posted 14 Jun 2011 Link to this post


    I have the same problem as Christian. I want to use a custom resource provider based on a database. The large application, of which reports built with Telerik Reporting will be a small part, uses a system like that. Using two localization mechanisms (database and resx file) is a maintenance nightmare.
    In Visual Studio while programming for Windows Forms, you can use a custom resource provider (and its accompagnying custom designer resource provider).  So you can use a database instead of a resx file, and for the programmer they behave exactly the same.

    But there seems no way to set this for Telerik Reports  :-(
    You may put this on the wish list.

    Thanks

    Hugo Burm
    Yall


  4. Dan
    Dan avatar
    1 posts
    Member since:
    May 2008

    Posted 19 Nov 2014 in reply to Hugo Link to this post

    Any new developments related to this? We're in the same boat and have a large ASP.NET application that allows users to customize their own language settings via a custom provider. However they are not able to customize their report captions :(
    In most cases the report captions are a duplicate of screen captions and if we could leverage our existing database of captions it would be a huge benefit.
  5. Stef
    Admin
    Stef avatar
    3610 posts

    Posted 21 Nov 2014 Link to this post

    Hello Dan,

    You can use the suggested by my colleague localization approach with RESX files - Localizing Reports. If you want to use a custom resource provider, you can test using user functions, which return the localized strings in the report.
    Also note the report is data-driven, thus you can incorporate the localized strings with the actual data of the report and produce a localized data, that will be displayed in the report.


    I hope the above information helps you.

    Regards,
    Stef
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top