Jump to:

23487 Posts in 18996 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Problems with Silverstripe $Created.Ago – norwegian locale

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 1031 Views
  • Thomashv
    Community Member
    33 Posts

    Problems with Silverstripe $Created.Ago – norwegian locale Link to this post

    When using norwegian locale nb_NO, the $Created.Ago functionality did not output right format.
    I found the problem in the norwegian language file nb_NO.php in the lang folder under sapphire.
    This two lines seems to be wrong:
    $lang['nb_NO']['Date']['TIMEDIFFAGO'] = '%er siden';
    $lang['nb_NO']['Date']['TIMEDIFFAWAY'] = '%er til';

    So I changed it to:
    $lang['nb_NO']['Date']['TIMEDIFFAGO'] = '%s siden';
    $lang['nb_NO']['Date']['TIMEDIFFAWAY'] = '%s til';

    And no it works as it should.
    I've had this problem with SS version 2.3.3, 2.4.0 and 2.4.2. Truly it is a problem in all versions.

    Actually I have no questions, just wanted to share this with other norwegian developers if they experience the same problems.
    This probably qualify to open a ticket, but I'm not sure about how that's done...? (Well, that's a question)

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.