1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Resource files

Resource files

4 posts, 0 answered
  1. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    30 Jul 2007
    Link to this post
    Hello Telerik,

    I found the resource files inside the Sitefinity\ControlTemplates\News\LocalResources\...

    I copied this and created a new file for my 'nl' language. Works fine!

    But... there is one label that isn't inside the resource file and that is on the SingeNews page:

    <class="author"><em>by: <asp:Literal ID="Author" runat="server" /></em></p> 

    So, I'd like to translate the word 'by' also. Could this also be a server control and be added to the resource mechanism?

    Thanks,
    Daniel
  2. Pepi
    Pepi avatar
    981 posts
    Registered:
    31 Jan 2017
    31 Jul 2007
    Link to this post
    Hi Daniel,

    It’s not a problem to localize the “by:” string. You should just replace it with:

    <asp:Literal runat="server" Text="<%$Resources:By %>"></asp:Literal>

    After that you should add in ~/Sitefinity/ControlTemplates/News/App_LocalResources/SingleNews.ascx.resx a value with key By.

    Hope this helps.

    Best wishes,
    Pepi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    31 Jul 2007
    Link to this post
    Okay, thanks. I will do that.
    The only thing is that when there is an update, I'll have to manually bring on the changes I made inside the modules.

    Maybe this change could also be part of the next release?

    Thanks,
    Daniel
  4. Pepi
    Pepi avatar
    981 posts
    Registered:
    31 Jan 2017
    31 Jul 2007
    Link to this post
    Hi Daniel,

    This issue is already fixed and will be available in the next release. So it is not necessary to make these changes after every update.

    Thanks a lot for pointing this out.

    Regards,
    Pepi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Register for webinar
4 posts, 0 answered