Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Please developers assist, several problems, I'm trying to help.

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 1218 Views
  • x1250
    Avatar
    Community Member
    3 Posts

    Please developers assist, several problems, I'm trying to help. Link to this post

    Hi folks, I want to help with the multilingual support of silverstripe, since this is very important to me. I can do a lot of work with _t() functions and also finish the spanish translation. Now to the problems.

    In NewsletterAdmin_SiteTree.ss

    <% _t('DRAFTS','Drafts') %>
    <% _t('SENT','Sent Items') %>
    <% _t('MAILLIST','Mailing List') %>

    do not care about language files. I'm using es_ES locale, and this strings are not translated at all, and they are present in the language file. Even changing them in the en_US.php results in no change. The only way I can change them is changing them inside the .ss template. Why? I have the same problem with some strings in the svn version of the blog module.

    I'm trying to complete the multilingual support adding _t() functions, and adding the new translation array to en_US and es_ES.php, but this doesn't let me go further. This things unmotivate me. PLEASE HELP.

  • x1250
    Avatar
    Community Member
    3 Posts

    Re: Please developers assist, several problems, I'm trying to help. Link to this post

    Here are the language translations from es_ES.php and en_US.php inside cms/lang

    $lang['es_ES']['NewsletterAdmin_SiteTree.ss']['DRAFTS'] = 'Borradores';
    $lang['es_ES']['NewsletterAdmin_SiteTree.ss']['MAILLIST'] = 'Lista de correo';
    $lang['es_ES']['NewsletterAdmin_SiteTree.ss']['SENT'] = 'Elementos enviados';

    $lang['en_US']['NewsletterAdmin_SiteTree.ss']['DRAFTS'] = 'Drafts';
    $lang['en_US']['NewsletterAdmin_SiteTree.ss']['SENT'] = 'Sent Items';
    $lang['en_US']['NewsletterAdmin_SiteTree.ss']['MAILLIST'] = 'Mailing List';

    If you modify any of them, nothing happens even after a ?flush=1.

  • Ingo
    Avatar
    Forum Moderator
    801 Posts

    Re: Please developers assist, several problems, I'm trying to help. Link to this post

    SSViewer (the template parser) and the textcollector have different ideas on which namespace the entities should be found - an inconsistency in i18n core. i've created a ticket:
    http://open.silverstripe.com/ticket/2584

    this took me nearly two hours to debug, phew... sorry i can't help more right now, its a pretty tricky thing to fix.

    1218 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.