Jump to:

1835 Posts in 1139 Topics by 554 members

Blog Module

SilverStripe Forums » Blog Module » [SOLVED] SS 3.03 - Blog module wont use some translations

Discuss the Blog Module.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 466 Views
  • borriej
    Avatar
    Community Member
    267 Posts

    [SOLVED] SS 3.03 - Blog module wont use some translations Link to this post

    Hi all,

    I'm using a custom translation file. nl.yml
    path: mysite/lang/nl.yml

    nl:
    ArchiveWidget.ss:
    FILTERDATE: "Filter op datum"
    Home.ss:
    READMORE: "LEES MEER"
    BlogHolder.ss:
    NEWSOLDER: "Oudere berichten"
    VIEWINGPOSTEDIN: "Berichten geplaatst in"
    VIEWINGTAGGED: "Berichten getagd met"
    BlogSummary.ss:
    VIEWFULL: "Lees dit bericht:"
    POSTEDBY: "Geplaatst door"
    POSTEDON: "Toegevoegd op:"
    VIEWFULL: "Bekijk het gehele post getitled"
    COMMENTS: "Reacties"
    VIEWCOMMENTS: "Bekijk reacties"
    VIEWTAGS: "Bekijk alle berichten met tag:"
    READMORE: "LEES MEER"
    BlogEntry.ss:
    POSTEDON: "Toegevoegd op:"

    but some translation don't get used, others do get used. So the file is found.

    example:
    ArchiveWidget - FILTERDATE - works
    Home - READMORE - works
    BlogSummary.ss - POSTEDON - works
    BlogSummary.ss - VIEWTAGS - works

    but:
    BlogEntry.ss - POSTEDON - doens't work
    BlogHolder.ss: - NEWSOLDER - doens't work
    BlogHolder.ss: - VIEWINGPOSTEDIN - doens't work
    BlogHolder.ss: - VIEWINGTAGGED - doens't work

    if it doesn't work, i mean it uses the default lang file in the blog module

    any idea's?
    i am using spaces instead of tabs off course, but i see the topic doens't show them.. see http://paste2.org/p/2629327

    UPDATE: guess my mark-up went wrong in the last sentence, only noticed it when i pasted the code on paste2.org, apparently it missed all the spaces although Espresso was showing them :s

    466 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.