Help translating Newscoop & problem accessing to a category
  • Hi!
    recently I have installed Newscoop in my organisation website, but I try to translate the user dashboard page but I cannot find any way to translate it! ;(
    Other problem that I have it's that when I acces to a category, appears the front-page template...
    What can I do?

    *Sorry for my bad English, I'm learning
    Post edited by Louis at 2012-12-30 07:16:43
  • 9 Comments sorted by
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    On Sun, Dec 30, 2012 at 3:15 PM, Louis <<br />newscoop-support@lists.sourcefabric.org> wrote:

    > Hi!
    > recently I have installed Newscoop in my organisation website, but I try
    > to translate the user dashboard page but I cannot find any way to translate
    > it! ;(
    >

    http://en.flossmanuals.net/newscoop-4-journalists-en-4-0/languages/
    http://en.flossmanuals.net/newscoop-4-journalists-en-4-0/the-localizer/
  • Vote Up0Vote Down Claudia CruzClaudia Cruz
    Posts: 67Member, Sourcefabric Team
    what language are you looking for? We have several already localized and you can configure Newscoop in order to use them right after installing.

    Let us know if you need more help.
    Claudia L. Cruz
    @ccruz
  • I want to translate it into Valencian, a variatiin of Catalan.
  • What I want to translate is dashboard_index.tpl form no admin dashboard, I want to translate user front-dashboard
  • hi, you can copy the file in your theme (themes/publication_x/theme_y) and do the translation there.
  • Hi Louis,

    What do you mean exactly by a Category? is that a section or a topic in Newscoop? If a section, you must select in the section configuration the corresponding template file you want to use when rendering, by default Newscoop looks for section.tpl.
  • Hi!
    This is my configuration:
    Template settings

    The dashboard_index.tpl file has this content:

    {{extends file="layout.tpl"}}

    {{block content}}

    {{ assign var="userindex" value=1 }}

    <script>
    function afterRegistration() {
        location.reload();
    }
    </script>


    <h3>Welcome {{ $user->name }}</h3>

    <figure class="user-image threecol">
        <img src="{{ include file="_tpl/user-image.tpl" user=$user width=156 height=156 }}" style="max-width: 100%" rel="resizable" />
    </figure>



    <div class="user-data ninecol last">
    {{ $form }}
    </div>
    {{/block}}

    so, how can I translate it?
  • How can I do it?
  • Hi Louis,

    There is not a direct way to do it. We are not supporting localization for template forms at this point. That {{ $form }} you can see there comes from a pre-defined Zend form that you can find in application/forms/Profile.php. You could do the translation of the labels right there, but we don't recommend to do so as your changes will be lost next time you will upgrade Newscoop.

    What you can do is to check the html code generated by {{ $form }}, then copy and paste that code into the template, and then you don't need to use {{ $form }} anymore. Right there in your template you will be able to change the labels.