Jump to:

21309 Posts in 5738 Topics by 2603 members

General Questions

SilverStripe Forums » General Questions » l18n - Install PHPUnit without PEAR or CLI

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

Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 210 Views
  • LePhil
    Avatar
    Community Member
    3 Posts

    l18n - Install PHPUnit without PEAR or CLI Link to this post

    Kia Ora, oh silverstriped ones!

    I just started working on a little page in SS. So far I'm very happy and excited about it, as it's (at least for me) a new way to develop websites.

    The problem is that the website should be in 3 languages. I enabled l18n

    i18n::enable();
    i18n::set_locale('de_CH');

    and translated most of my pages. Now there are of course elements, like text in a footer or header, that aren't really content and are hardcoded in the template. As it's stated on here I made variables out of them:

    <a href="http://www.silverstripe.com" title="<% _t('VISIT','Visit www.silverstripe.com') %>">

    Now I should be able to collect all these strings via PHPUnit, right?
    Unfortunately, I work on a hosted server and don't have access to a CLI or the core elements of the file system. There are ways, supposedly, to install PHPUnit without PEAR, but mostly require CLI access.

    So. Is there any way I can get the l18n variable overview without CLI or PEAR? How?

    And, almost as important: Will this give me a way to translate/change texts in different languages in the UI? Or do I have to change the text for each language in the database?

    Any advice would be welcome, really. Have been trying to get it to work for 3 hours now without success.

  • LePhil
    Avatar
    Community Member
    3 Posts

    Re: l18n - Install PHPUnit without PEAR or CLI Link to this post

    It was too much of a hassle with our hoster, so we did the list by hand. It's not that much work, anyway

    Closed, I'd say.

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