Localized custom Tools

6 posts, 1 answers
  1. Nils
    Nils avatar
    46 posts
    Member since:
    Jul 2009

    Posted 22 Oct 2012 Link to this post

    Hi,
    I have modified ToolsFile.xml to enable a custom tool.
    Any advice on how to localize the text of the tool?
    Seems you have localized texts and unlocalized texts (or am I simply unable to find the localization of e.g. SPTemplateManager)

    Best,
    Nils
  2. Rumen
    Admin
    Rumen avatar
    12849 posts

    Posted 25 Oct 2012 Link to this post

    Hi Nils,

    If you want to localize the button text open the  \Program Files\Common Files\Microsoft Shared\Web Server Extensions\wpresources\RadEditorSharePoint\6.x.x.0__1f131a624888eeed\Resources\ToolsFile.xml / ListToolsFile.xml file and change the text of the text attribute:

    <tool name="SPTemplateManager" text="Insert Reusable Content" />

    All the best,
    Rumen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.

  3. Nils
    Nils avatar
    46 posts
    Member since:
    Jul 2009

    Posted 25 Oct 2012 Link to this post

    Hi Rumen,
    thanks for answering.
    So there is no way to have the text taken from a resource?
    i.e. I wanted to do something like
    <tool name="SPTemplateManager" text="$Resource:TemplateManagerToolName, myTelerikCore" />

    Best,
    Nils
  4. Answer
    Rumen
    Admin
    Rumen avatar
    12849 posts

    Posted 25 Oct 2012 Link to this post

    Hi,

    This syntax is not supported, but you can add the resx localization files of RadEditor in the \inetpub\wwwroot\wss\VirtualDirectories\80 folder, open the \Program Files\Common Files\Microsoft Shared\Web Server Extensions\wpresources\RadEditorSharePoint\6.3.0.0__1f131a624888eeed\Resources\App_GlobalResources\RadEditor.Tools.resx file and register the SPTemplateManager property in it with the desired localization text.

    You can find more information in this article: Using Global Resource Files. You should also remove the text attribute from the SPTemplateManager tool tag in the toolsfile.

    Kind regards,
    Rumen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  5. Nils
    Nils avatar
    46 posts
    Member since:
    Jul 2009

    Posted 28 Nov 2012 Link to this post

    However, for this approach I see three Implications (or I am having three further questions...):
     1. RadEditor uses it's own language-setting and ignores the language of the current SPWeb?
     2. I need to copy & modify the orgininal RadEditor.Tools.resx, no way to supply additional values?
     3. This is a per-webApplication modification. No way to do this on a SiteCollection?

    Best,
    Nils
  6. Rumen
    Admin
    Rumen avatar
    12849 posts

    Posted 30 Nov 2012 Link to this post

    Hello Nils,

    1) Yes, the RadEditor ignores the language of the current SPWeb and its localization can be set only through its Language property.
    2) You can add additional values in the RadEditor.Tools.resx only for custom tools.
    3) Using the solution provided in this help article Different configuration files for different webs, you can set the LocalizationPath property in such a global config file to point to a common localization folder for the whole SiteCollection.

    All the best,
    Rumen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top