Also in this section non traduit dans news/aggregator

1 message Options
Embed this post
Permalink
danielle

Also in this section non traduit dans news/aggregator

Reply Threaded More More options
Print post
Permalink
pour 3.1.4 on avait le Ticket #8383 (new Bug)
Contained Collections text is not translated
le template /ATContentTypes/skins/ATContentTypes/atct_topic_subtopics.pt
contient
<tal:subtopics define="full_view python:False;
                               view_title string:Also in this section;
                               batch
python:here.getFolderContents(batch=True, b_size=100)">
            <metal:list
metal:use-macro="here/old_folder_contents/macros/contents"/>
        </tal:subtopics>

old_folder_contents se trouve dans Products/CMFPlone/skins/plone_deprecated
on voit que le titre h1 vient de
        <h1 class="documentFirstHeading">
          <tal:block replace="structure python:getattr(here,
here.getIcon(1)).tag(alt=here.portal_type)"/>
          <span tal:content="python: view_title and
here.utranslate(view_title) or putils.pretty_title_or_id(here)"
tal:omit-tag="">Directory $
        </h1>

utranslate est un script qui a pour parametres
msgid, mapping={}, default=None, domain='plone', target_language=None,
escape_for_js=False
 ah  ca y est ! je calais et allais vous demandez de l'aide
 le domain pour n'est domain=plone mais domain="atcontenttypes" et
Also in this section n'est pas un msgid, le msgid  c'est
"heading_contained_collections"

si l'on definit    view_title comme
python:here.utranslate('heading_contained_collections',domain='atcontenttypes');

 ca marche ...
j'envoie le message quand meme car je ne peux me connecter sur dev.plone ...


_______________________________________________
Plone-FR mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/plone-fr