Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Updating language of a module

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: 1148 Views
  • evren
    Avatar
    Community Member
    37 Posts

    Updating language of a module Link to this post

    I want to use some of the modules. Like forum but it's translation is uncomplete.
    Now I apply to translate service to complete it and others. But if I install it now, is there a possibility to update it's language after?

    (of course without making uninstall and install again to protect its contents)

    Ok ok sure there is a way

    But how?

    And thanks for all given reply in advance.

  • evren
    Avatar
    Community Member
    37 Posts

    Re: Updating language of a module Link to this post

    Weird

    Thats too bad for me if I'm the only one who needs a non-englih forum module.
    But although I'm sure that somebody knows it.

    Isn't there a way to update installed modules languages?

  • banal
    Avatar
    Community Member
    901 Posts

    Re: Updating language of a module Link to this post

    Usually the translatable strings of a module can be found in the "lang" directory of a module. There should be a php file for every language that's currently translated. If your language is missing, you can just translate the contents of en_US.php.
    You can do that even after the installation of the module, it shouldn't break anything.

  • evren
    Avatar
    Community Member
    37 Posts

    Re: Updating language of a module Link to this post

    Thanks banal.

    I also think like that but just worried about if SS reads lang files and dumps to database for using them.
    But seems lang resources read directly from files. The best way.

    I'll start to install.

  • Ingo
    Avatar
    Forum Moderator
    801 Posts

    Re: Updating language of a module Link to this post

    I'm not sure I understand your question - so you have untranslated text in the forum module, right? Does that mean its not translated into your language, or not translatable at all?

    You can sign up at http://translate.silverstripe.com to complete your specific language, and download the generated lang files "on the fly" - you don't need to wait for a release to do this. This is preferred to modifying language files directly, as other people won't benefit from your new translations.

    If you have stuff thats not translatable in the first place, have a look at http://doc.silverstripe.com/doku.php?id=translation and http://doc.silverstripe.com/doku.php?id=i18n#collecting_text

  • evren
    Avatar
    Community Member
    37 Posts

    Re: Updating language of a module Link to this post

    I was asking for,
    If I install the forum module now, with missing translation (in my lang). Is there a possibility to update the lang after install? Sure that without losing forum DB.

    Got my answer but dosent matter cos I removed the forum and blog module cos both of them are untolerable buggy.

    And the second part, I already submitted to the translation team but couldnt go far away cos of time matters.

    Thanks for your interest.
    Regards

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