add-in en français

cancel
Showing results for 
Search instead for 
Did you mean: 
nnay
Member II

add-in en français

Bonjour,
existe -t-il une version francaise de l'add-in pour MS-Office, ou un moyen de franciser son interface ?

Cordialement

Yann
8 Replies
michaelh
Active Member

Re: add-in en français

Le plugin n'est pas traduit pour le moment. Mais c'est de nôtre faute (enfin celle d'Alfresco Smiley Wink ) … les chaines de caractères sont en dur dans le code des scripts (pas bien).

La liste des choses à faire inclut le fait de rendre l'ensemble facilement adaptable (et surtout facile à traduire) mais en attendant il faut le faire soi-même …

Les fichiers concernés se trouvent dans le dictionnaire de données, dans \webscripts\org\alfresco\office (fichier .ftl).

ou alfresco\WEB-INF\classes\alfresco\templates\webscripts\org\alfresco\office à la base.

Le bon coté, puisque la logique d'affichage est géré coté serveur : on a pas à modifier chaque poste client Smiley Happy

L'astuce pour tester sans lancer Office : appeler cette URL : http://localhost:8080/alfresco/wcs/office/myAlfresco

Contribution bienvenue Smiley Happy
nnay
Member II

Re: add-in en français

Merci pour cette réponse,
je vais faire le tour de ces fichiers et évaluer si je peux contribuer de façon satisfaisante. Existe-t-il un thésaurus spécifique à la traduction comme pour d'autres projets ?

Bon week-end

Yann
nnay
Member II

Re: add-in en français

Dans une autre vie j'ai vécu a Dublin, je serais donc -théoriquement- apte à traduire ces fichiers. Toutefois même si j'identifie le code HTML dans le fichier ftl , même si avec un petit script je pourrais extraire la majorité des chaines de caractère, existe-t-il des règles de "localisation" pour alfresco et ses fichiers ftl ?

Cordialement

Yann (un ex Ian)
nnay
Member II

Re: add-in en français

Bonsoir,
j'ai traduit tous les onglets à l'exception de celui des Tâches. Mais il  me reste quelques chaînes  de caractères qui ne semblent pas présentes dans les fichiers .ftl.  Comment diffuser ma contribution ?
Est-ce que certain message sont codés dans le client proprement dit et non pas du côté serveur ?

Cordialement

Yann
michaelh
Active Member

Re: add-in en français

Il n'y a aucun message coté client normalement (à nouveau on peut le vérifier en appelant directement l'URL http://localhost:8080/alfresco/wcs/office/myAlfresco dans un navigateur).

En ce qui concerne la proposition de mise à disposition (et un grand merci au passage), je pense qu'il serait intéressant de les partager sur les forums. Ce serait un bon moyen d'avoir éventuellement des commentaires d'autres personnes intéréssées.

Il suffit de coller le contenu de chaque fichier concerné (entre des balises "CODE" pour améliorer la lisibilité), et donner quelques exemples de chaines non traduites pour qu'on puisse regarder de nôtre coté.

exemple :

myTasksDetail.get.html.ftl
<#if !res.name?ends_with(".pdf")>
  <a href="#"onclick="OfficeMyTasks.runAction('${doc_actions} blablabla
  </a>
</#if>
nnay
Member II

Re: add-in en français

Voilà mes traductions rapides pour Alfresco 2.1:
Pèle-mèle et dans l'ordre chronologique de ma traduction.
documentDetails.get.html.ftl correspond à priori au quatrième onglet.


<#assign doc_actions="${url.serviceContext}/office/docActions">
<#if args.p?exists><#assign path=args.p><#else><#assign path=""></#if>
<#if args.e?exists><#assign extn=args.e><#else><#assign extn="doc"></#if>
<#if args.n?exists><#assign nav=args.n><#else><#assign nav=""></#if>
<#– resolve the path (from Company Home) into a node –>
<#if companyhome.childByNamePath[path]?exists>
   <#assign d=companyhome.childByNamePath[path]>
<#else>
   <#assign d=companyhome>
</#if>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
   <title>Informations sur le Document</title>
   <link rel="stylesheet" type="text/css" href="${url.context}/css/office.css" />
<!–[if IE 6]>
   <link rel="stylesheet" type="text/css" href="${url.context}/css/office_ie6.css" />
<![endif]–>
   <script type="text/javascript" src="${url.context}/scripts/ajax/mootools.v1.11.js"></script>
   <script type="text/javascript" src="${url.context}/scripts/office/office_addin.js"></script>
</head>
<body>

<div id="tabBar">
   <ul>
      <li><a title="Accueil" href="${url.serviceContext}/office/myAlfresco?p=${path?url}&amp;e=${extn}&amp;n=${nav}"><span><img src="${url.context}/images/office/my_alfresco.gif" alt="Accueil" /></span></a></li>
      <li><a title="Explorateur" href="${url.serviceContext}/office/navigation?p=${path?url}&amp;e=${extn}&amp;n=${nav}"><span><img src="${url.context}/images/office/navigator.gif" alt="Explorateur" /></span></a></li>
      <li><a title="Recherches" href="${url.serviceContext}/office/search?p=${path?url}&amp;e=${extn}&amp;n=${nav}"><span><img src="${url.context}/images/office/search.gif" alt="Recherches" /></span></a></li>
      <li id="current"><a title="D&eacute;tails" href="${url.serviceContext}/office/documentDetails?p=${path?url}&amp;e=${extn}&amp;n=${nav}"><span><img src="${url.context}/images/office/document_details.gif" alt="D&eacute;tails" /></span></a></li>
      <li><a title="T&acirc;ches" href="${url.serviceContext}/office/myTasks?p=${path?url}&amp;e=${extn}&amp;n=${nav}"><span><img src="${url.context}/images/office/my_tasks.gif" alt="T&acirc;ches" /></span></a></li>
   </ul>
</div>

<div class="header">Propri&eacute;t&eacute;s </div>

<div class="containerMedium">
   <table width="265">
      <tbody>
         <tr>
            <td valign="top">
<#if d.isDocument>
               <img src="${url.context}${d.icon32}" alt="${d.name}" />
            </td>
            <td style="padding-top: 4px;">
               <span style="font-weight:bold; vertical-align: top;">
   <#if d.isLocked >
                  <img src="${url.context}/images/office/lock.gif" alt="Verrouill&eacute;" title="Verrouill&eacute;" style="margin: -2px 0px;" />
   </#if>
                  ${d.name}
               </span>
               <br />
               <table style="margin-top: 4px;">
   <#if d.properties.title?exists>
                  <tr><td>Titre:</td><td>${d.properties.title}</td></tr>
   <#else>
                  <tr><td>Titre:</td><td> </td></tr>
   </#if>
   <#if d.properties.description?exists>
                  <tr><td>Description:</td><td>${d.properties.description}</td></tr>
   <#else>
                  <tr><td valign="top">Description:</td><td> </td></tr>
   </#if>
                  <tr><td>Auteur:</td><td>${d.properties.creator}</td></tr>
                  <tr><td>Cr&eacute;&eacute le:</td><td>${d.properties.created?datetime}</td></tr>
                  <tr><td>Editeur:</td><td>${d.properties.modifier}</td></tr>
                  <tr><td>Modifi&eacute; le :</td><td>${d.properties.modified?datetime}</td></tr>
                  <tr><td>Taille:</td><td>${d.size / 1024} Kb</td></tr>
                  <tr><td valign="top">Categories:</td>
                     <td>
   <#if d.hasAspect("cm:generalclassifiable")>
      <#list d.properties.categories as category>
                        ${companyhome.nodeByReference[category].name};
      </#list>
   <#else>
                        None.
   </#if>
                     </td>
                  </tr>
               </table>
<#else>
               Ce document n'est pas g&eacute;r&eacute par Alfresco.
</#if>
            </td>
         </tr>
      </tbody>
   </table>
</div>

<div class="header">Historique des Versions<#if d.isDocument> de ${d.name}</#if></div>

<div id="versionList" class="containerMedium">
   <table width="265">
<#if d.isDocument >
   <#if hasAspect(d, "cm:versionable") == 1>
      <#assign versionRow=0>
      <#list d.versionHistory?sort_by("versionLabel")?reverse as record>
         <#assign versionRow=versionRow+1>
      <tr class="${(versionRow % 2 = 0)?string("odd", "even")}">
         <td valign="top">
            <a title="Open ${record.versionLabel}" href="${url.context}${record.url}?ticket=${session.ticket}"><img src="${url.context}/images/office/document.gif" alt="Open ${record.versionLabel}" /></a>
         </td>
         <td>
            <a title="Open ${record.versionLabel}" href="${url.context}${record.url}?ticket=${session.ticket}"><span style="font-weight:bold;">${record.versionLabel}</span></a><br />
            Auteur: ${record.creator}<br />
            Date: ${record.createdDate?datetime}<br />
         <#if record.description?exists>
            Notes: ${record.description}<br />
         </#if>
         <#– Only Word supports document compare –>
         <#if extn = "doc">
            <a class="bold" href="#" onclick="window.external.compareDocument('${record.url}')" title="Compare with current">Comparer avec le document courant</a><br />
         </#if>
         </td>
      </tr>
      </#list>
   <#else>
      <tr>
         <td valign="top">
            Ce document ne possède pas d'historique des versions<br />
            <br />
            <ul>
               <li><a title="Cr&eacute;er une Version" href="#" onclick="OfficeAddin.runAction('${doc_actions}','makeversion','${d.id}', '');">
                  <img src="${url.context}/images/office/make_versionable.gif" alt="Activer la gestion des versions" /> Activer la gestion des versions
               </a></li>
            </ul>
         </td>
      </tr>
   </#if>
<#else>
      <tr>
         <td valign="top">
            Ce document n'est pas g&eacute;r&eacute par Alfresco.
         </td>
      </tr>
</#if>
   </table>
</div>

<div class="header">Actions</div>

<div id="documentActions">
   <div id="nonStatusText">
      <ul>
<#if d.isDocument>
   <#if d.isLocked >
   <#elseif hasAspect(d, "cm:workingcopy") == 1>
         <li>
            <a href="#" onclick="OfficeAddin.runAction('${doc_actions}','checkin','${d.id}', '');">
               <img src="${url.context}/images/office/checkin.gif" alt="Check In">
               Mettre A jour
            </a>
            <br />Mettre A jour le document.
         </li>
   <#else>
         <li>
            <a href="#" onclick="OfficeAddin.runAction('${doc_actions}','checkout','${d.id}', '');">
               <img src="${url.context}/images/office/checkout.gif" alt="Check Out">
                 Extraire
            </a>
            <br />Extraire une copie de travail.
         </li>
   </#if>
         <li>
            <a href="${url.serviceContext}/office/myTasks?p=${path?url}&amp;w=new">
               <img src="${url.context}/images/office/new_workflow.gif" alt="D&eacute;marrer un Workflow" />
               D&eacute;marrer un Workflow
            </a>
            <br />D&eacute;marrer un Workflow Avanc&eacute;
         </li>
   <#if d.name?ends_with(extn)>
         <li>
            <a href="#" onclick="OfficeAddin.runAction('${doc_actions}','makepdf','${d.id}', '');">
               <img src="${url.context}/images/office/makepdf.gif" alt="Convertir en PDF" />
               Convertir en PDF
            </a>
            <br />Convertir le document au format PDF.
         </li>
    </#if>
         <li>
            <a href="${url.context}/navigate/showDocDetails/workspace/SpacesStore/${d.id}?ticket=${session.ticket}" rel="_blank">
               <img src="${url.context}/images/office/document_details.gif" alt="Voir les d&eacute;tails" />
               Visualisation des d&eacute;tails sur le contenu
            </a>
            <br />Visualisation des d&eacute;tails du document dans votre Navigateur Web.
         </li>
<#else>
         <li>
            <a title="Save to Alfresco" href="${url.serviceContext}/office/navigation?p=${path?url}">
               <img src="${url.context}/images/office/save_to_alfresco.gif" alt="Save to Alfresco" />
               Sauvegarder dans Alfresco
            </a>
            <br />D&eacute;poser le document courant dans le d&eacute;pot Alfresco.
         </li>
</#if>
      </ul>
   </div>
  
   <div id="statusText"></div>

</div>


</body>
</html>


myAlfresco.get.html.ftl correspondant au 1er Onglet


<#assign doc_actions="${url.serviceContext}/office/docActions">
<#if args.p?exists><#assign path=args.p><#else><#assign path=""></#if>
<#if args.n?exists><#assign node=args.n><#else><#assign node=companyhome></#if>
<#if args.e?exists><#assign extn=args.e><#else><#assign extn="doc"></#if>
<#if args.n?exists><#assign nav=args.n><#else><#assign nav=""></#if>
<#– resolve the path (from Company Home) into a node –>
<#if companyhome.childByNamePath[path]?exists>
   <#assign d=companyhome.childByNamePath[path]>
<#else>
   <#assign d=companyhome>
</#if>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
   <title>Accueil</title>
   <link rel="stylesheet" type="text/css" href="${url.context}/css/office.css" />
<!–[if IE 6]>
   <link rel="stylesheet" type="text/css" href="${url.context}/css/office_ie6.css" />
<![endif]–>
   <script type="text/javascript" src="${url.context}/scripts/ajax/mootools.v1.11.js"></script>
   <script type="text/javascript" src="${url.context}/scripts/office/office_addin.js"></script>
   <script type="text/javascript" src="${url.context}/scripts/office/my_alfresco.js"></script>
</head>
<body>

<div id="tabBar">
   <ul>
      <li id="current"><a title="Accueil" href="${url.serviceContext}/office/myAlfresco?p=${path?url}&amp;e=${extn}&amp;n=${nav}"><span><img src="${url.context}/images/office/my_alfresco.gif" alt="Accueil" /></span></a></li>
      <li><a title="Explorateur" href="${url.serviceContext}/office/navigation?p=${path?url}&amp;e=${extn}&amp;n=${nav}"><span><img src="${url.context}/images/office/navigator.gif" alt="Explorateur" /></span></a></li>
      <li><a title="Recherche" href="${url.serviceContext}/office/search?p=${path?url}&amp;e=${extn}&amp;n=${nav}"><span><img src="${url.context}/images/office/search.gif" alt="Recherche" /></span></a></li>
      <li><a title="D&eacute;tails" href="${url.serviceContext}/office/documentDetails?p=${path?url}&amp;e=${extn}&amp;n=${nav}"><span><img src="${url.context}/images/office/document_details.gif" alt="D&eacute;tails" /></span></a></li>
      <li><a title="T&acirc;ches" href="${url.serviceContext}/office/myTasks?p=${path?url}&amp;e=${extn}&amp;n=${nav}"><span><img src="${url.context}/images/office/my_tasks.gif" alt="T&acirc;ches" /></span></a></li>
   </ul>
</div>

<div class="header">Documents Extraits<span class="headerExtra"><span class="toggle"> </span></span></div>

<div id="checkedoutList" class="containerMedium togglePanel">
<#assign rowNum=0>
<#assign query="@cm\\:workingCopyOwner:${person.properties.userName}">
   <#list companyhome.childrenByLuceneSearch[query] as child>
      <#if child.isDocument>
         <#assign rowNum=rowNum+1>
         <#assign relativePath = (child.displayPath?substring(companyhome.name?length+1) + '/' + child.name)?url?replace('%2F', '/')?replace('\'', '\\\'') />
   <div class="documentItem ${(rowNum % 2 = 0)?string("odd", "even")}">
         <span class="documentItemIcon">
            <img src="${url.context}${child.icon32}" alt="${child.name}" />
         </span>
         <span class="documentItemDetails">
         <#if child.name?ends_with(extn)>
            <a href="#" onclick="window.external.openDocument('${relativePath}')" title="Open ${child.name}" style="font-weight: bold;">${child.name}</a><br />
         <#else>
            <a href="${url.context}${child.url}?ticket=${session.ticket}" target="_blank" title="Open ${child.name}" style="font-weight: bold;">${child.name}</a><br />
         </#if>
         <#if child.properties.description?exists>
            <#if (child.properties.description?length > 0)>
               ${child.properties.description}<br />
            </#if>
         </#if>
            Modifi&eacute; le: ${child.properties.modified?datetime} (${(child.size / 1024)?int}Kb)<br />
            <a href="#" onclick="OfficeAddin.runAction('${doc_actions}','checkin','${child.id}', '');"><img src="${url.context}/images/office/checkin.gif" style="padding:3px 6px 2px 0px;" alt="Mettre &agrave; jour" title="Mettre &agrave; jour" /></a>
            <a href="${url.serviceContext}/office/myTasks?p=${path?url}&amp;w=new&amp;wd=${child.id}"><img src="${url.context}/images/office/new_workflow.gif" style="padding:3px 6px 2px 0px;" alt="D&eacute;marrer un Workflow…" title="D&eacute;marrer un Workflow…" /></a>
            <a href="#" onclick="window.external.insertDocument('${relativePath}')"><img src="${url.context}/images/office/insert_document.gif" style="padding:3px 6px 2px 0px;" alt="Ins&eacute;rer un fichier" title="Ins&eacute;rer un fichier" /></a>
         <#if !child.name?ends_with(".pdf")>
            <a href="#" onclick="OfficeAddin.runAction('${doc_actions}','makepdf','${child.id}', '');"><img src="${url.context}/images/office/makepdf.gif" style="padding:3px 6px 2px 0px;" alt="Convertir en PDF…" title="Convertir en PDF" /></a>
         </#if>
         </span>
      </div>
      </#if>
   </#list>
   <#if rowNum = 0>
      <div>
         <span class="noItems">(No documents)</span>
      </div>
   </#if>
</div>

<div class="header">T&acirc;ches<span class="headerExtra"><span class="taskKey"><img src="${url.context}/images/office/task_overdue.gif" alt="overdue" />=en retard, <img src="${url.context}/images/office/task_today.gif" alt="due today" />=aujourd'hui</span><span class="toggle"> </span></span></div>

<div id="taskList" class="containerMedium togglePanel">
<#assign taskNum=0>
<#list workflow.assignedTasks as t>
   <#assign taskNum=taskNum+1>
   <#assign hasDue=t.properties["bpm:dueDate"]?exists>
   <#if hasDue>
      <#assign due=t.properties["bpm:dueDate"]>
   </#if>
   <div id="${t.id?replace("$", ".")}" class="taskItem" rel="<#if hasDue>${due?date?string("yyyyMMddHHmmss")}<#else>99999999999999</#if>">
      <span class="taskIndicator">
   <#if hasDue>
      <#– items due today? –>
      <#if (dateCompare(date?date, due?date, 0, "==") == 1)>
         <img src="${url.context}/images/office/task_today.gif" alt="due today" />
      <#– items overdue? –>
      <#elseif (dateCompare(date?date, due?date) == 1)>
         <img src="${url.context}/images/office/task_overdue.gif" alt="overdue" />
      </#if>
   <#else>
          
   </#if>
      </span>
      <span class="taskItemDetails">
         <span style="font-weight: bold;">${t.description?html}</span> (${t.type?html})
   <#if hasDue>
            <br />Ech&eacute;ance: ${due?date}
   <#else>
            <br />(Pas d'&eacute;ch&eacute;ance)
   </#if>
      </span>
   </div>
</#list>
<#if taskNum = 0>
   <div>
      <span class="noItems">(Pas de t&acrir;ches)</span>
   </div>
</#if>
</div>

<div class="header">Actions</div>

<div id="documentActions">
   <div id="nonStatusText">
      <ul>
<#if d.isDocument>
         <li>
            <a title="Sauvegarder" href="${url.serviceContext}/office/navigation?p=${path?url}">
               <img src="${url.context}/images/office/save_to_alfresco.gif" alt="Sauvegarder" />
               Sauvegarder
            </a>
            <br />D&eacute;poser le document dans le d&eacute;pot Alfresco.
         </li>
</#if>
         <li>
            <a title="Cr&eacute;er un Espace" href="${url.serviceContext}/office/navigation?p=${path?url}&amp;n=${d.id}&amp;cc=true">
               <img src="${url.context}/images/office/create_space.gif" alt="Cr&aecute;er un Espace" />
               Cr&eacute;er un Espace
            </a>
            <br />Cr&eacute;er un espace dans le d&eacute;pot Alfreco
         </li>
         <li>
            <a title="Ouvrir Alfresco" href="${url.context}/navigate/browse?ticket=${session.ticket}" rel="_blank">
               <img src="${url.context}/images/logo/AlfrescoLogo16.gif" alt="Ouvrir Alfresco" />
               Acc&eacute;der au d&eacute;pot Alfresco
            </a>
            <br />Acc&eacute;der au d&eacute;pot Alfresco via le Web.
         </li>
      </ul>
   </div>

   <div id="statusText"></div>

</div>

</body>
</html>

navigation.get.html.ftl correspondant au 2ème onglet


<#assign doc_actions="${url.serviceContext}/office/docActions">
<#if args.e?exists><#assign extn=args.e><#else><#assign extn="doc"></#if>
<#if args.n?exists><#assign nav=args.n><#else><#assign nav=""></#if>
<#assign chLen=companyhome.name?length>
<#if node.isDocument>
   <#assign thisSpace = node.parent>
<#else>
   <#assign thisSpace = node>
</#if>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
   <title>Explorateur</title>
   <link rel="stylesheet" type="text/css" href="${url.context}/css/office.css" />
<!–[if IE 6]>
   <link rel="stylesheet" type="text/css" href="${url.context}/css/office_ie6.css" />
<![endif]–>
   <script type="text/javascript" src="${url.context}/scripts/ajax/mootools.v1.11.js"></script>
   <script type="text/javascript" src="${url.context}/scripts/office/office_addin.js"></script>
   <script type="text/javascript" src="${url.context}/scripts/office/navigation.js"></script>
</head>
<body>
<div id="overlayPanel"></div>
<div id="tabBar">
   <ul>
      <li><a title="Accueil" href="${url.serviceContext}/office/myAlfresco?p=${path?url}&amp;e=${extn}&amp;n=${nav}"><span><img src="${url.context}/images/office/my_alfresco.gif" alt="Accueil" /></span></a></li>
      <li id="current"><a title="Explorateur" href="${url.serviceContext}/office/navigation?p=${path?url}&amp;e=${extn}&amp;n=${nav}"><span><img src="${url.context}/images/office/navigator.gif" alt="Explorateur" /></span></a></li>
      <li><a title="Recherches" href="${url.serviceContext}/office/search?p=${path?url}&amp;e=${extn}&amp;n=${nav}"><span><img src="${url.context}/images/office/search.gif" alt="Recherches" /></span></a></li>
      <li ><a title="D&eacute;tails" href="${url.serviceContext}/office/documentDetails?p=${path?url}&amp;e=${extn}&amp;n=${nav}"><span><img src="${url.context}/images/office/document_details.gif" alt="D&eacute;tails" /></span></a></li>
      <li><a title="T&acirc;ches" href="${url.serviceContext}/office/myTasks?p=${path?url}&amp;e=${extn}&amp;n=${nav}"><span><img src="${url.context}/images/office/my_tasks.gif" alt="T&acirc;ches" /></span></a></li>
   </ul>
</div>
<div class="header">Espace courant</div>

<div id="currentSpaceInfo">
   <span style="float: left;">
      <span style="float: left;">
         <img src="${url.context}${thisSpace.icon16}" alt="${thisSpace.name}" />
      </span>
      <span style="float: left; padding-left: 6px;">
         <span class="bold">${thisSpace.name}</span><br />
<#if thisSpace.properties.description?exists>
         ${thisSpace.properties.description}
</#if>
      </span>
   </span>
<#if thisSpace=companyhome>
<#else>
   <span style="float: right;">
      <a title="Up to Parent Space" href="${url.serviceContext}/office/navigation?p=${path?url}&amp;n=${thisSpace.parent.id}">
      <img src="${url.context}/images/office/go_up.gif" alt="Espace Parent" />
      <span></span>
      </a>
   </span>
</#if>
</div>

<div class="header">Espaces dans ${thisSpace.name}<span class="headerExtra"><span class="toggle"> </span></span></div>

<div id="spaceList" class="containerMedium togglePanel">
   <div id="createSpaceContainer">
      <div id="createSpace" onclick="OfficeNavigation.showCreateSpace();">
         <img src="${url.context}/images/office/create_space.gif" alt="Cr&eacute;er un Espace" />
         <span style="vertical-align: top;">Cr&eacute;er un Espace<#if args.cc?exists>Collaboration </#if>…</span>
      </div>
      <div id="createSpacePanel">
         <div id="createSpaceParameters">
            <div class="spaceParam">Nom:</div>
            <div class="spaceValue">
               <input id="spaceName" type="text" value="" />
            </div>
            <div class="spaceParam">Titre:</div>
            <div class="spaceValue">
               <input id="spacetitle" type="text" value="" />
            </div>
            <div class="spaceParam">Description:</div>
            <div class="spaceValue">
               <input id="spaceDescription" type="text" value="" />
            </div>
<#assign xpath="app:dictionary/app:space_templates/*">
<#assign templates = companyhome.childrenByXPath[xpath]>
<#if (templates?size > 0)>
            <div class="spaceParam">Patron:</div>
            <div class="spaceValue">
               <select id="spaceTemplate" style="width: 172px;">
                  <option selected="selected" value="">(None)</option>
   <#list templates as template>
                  <option value="${template.id}">${template.name}</option>
   </#list>
               </select>
            </div>
</#if>
            <div class="spaceParam"> </div>
            <div class="spaceValue">
               <a class="spaceAction" href="#" onclick="OfficeNavigation.submitCreateSpace('${url.serviceContext}/office/docActions', '${thisSpace.id}');">
                  Soumettre
               </a>
               <a class="spaceAction" href="#" onclick="OfficeNavigation.hideCreateSpace();">
                  Annuler
               </a>
            </div>
         </div>
      </div>
   </div>
<#assign spacesFound = 0>
<#list thisSpace.children?sort_by('name') as child>
   <#if child.isContainer>
      <#assign spacesFound = spacesFound + 1>
      <div class="spaceItem ${(spacesFound % 2 = 0)?string("even", "odd")}">
         <span style="float: left; width: 36px;">
            <a href="${url.serviceContext}/office/navigation?p=${path?url}&amp;n=${child.id}"><img src="${url.context}${child.icon32}" alt="Open ${child.name}" /></a>
         </span>
         <span>
            <a href="${url.serviceContext}/office/navigation?p=${path?url}&amp;n=${child.id}" title="Open ${child.name}">
               <span class="bold">${child.name}</span>
            </a>
      <#if child.properties.description?exists>
            <br />${child.properties.description}
      </#if>
         </span>
      </div>
   </#if>
</#list>
<#if spacesFound = 0>
      <div class="noItems">(Pas d'espaces enfants)</div>
</#if>
</div>

<div class="header">Documents dans ${thisSpace.name}<span class="headerExtra"><span class="toggle"> </span></span></div>

<div id="documentList" class="containerMedium togglePanel">
<#assign documentsFound = 0>
<#list thisSpace.children?sort_by('name') as child>
   <#if child.isDocument>
      <#assign documentsFound = documentsFound + 1>
      <#assign relativePath = (child.displayPath?substring(chLen+1) + '/' + child.name)?url?replace('%2F', '/')?replace('\'', '\\\'') />
      <div class="documentItem ${(documentsFound % 2 = 0)?string("even", "odd")}">
         <span class="documentItemIcon">
      <#if child.name?ends_with(extn)>
            <a href="#" onclick="window.external.openDocument('${relativePath}')"><img src="${url.context}${child.icon32}" alt="Open ${child.name}" /></a>
      <#else>
            <a href="${url.context}${child.url}?ticket=${session.ticket}" rel="_blank"><img src="${url.context}${child.icon32}" alt="Open ${child.name}" /></a>
      </#if>
         </span>
         <span class="documentItemDetails">
      <#if child.name?ends_with(extn)>
            <a href="#" onclick="window.external.openDocument('${relativePath}')"><span class="bold">${child.name}</span></a>
      <#else>
            <a href="${url.context}${child.url}?ticket=${session.ticket}" rel="_blank"><span class="bold">${child.name}</span></a>
      </#if>
            <br />
      <#if child.properties.description?exists>
         <#if (child.properties.description?length > 0)>
            ${child.properties.description}<br />
         </#if>
      </#if>
            Modifi&eacute; le: ${child.properties.modified?datetime}, Taille: ${(child.size / 1024)?int}Kb<br />
      <#if child.isLocked >
            <img src="${url.context}/images/office/lock.gif" style="padding:3px 6px 2px 0px;" alt="Verrouill&eacute;" />
      <#elseif hasAspect(child, "cm:workingcopy") == 1>
            <a href="#" onclick="OfficeAddin.runAction('${doc_actions}','checkin','${child.id}', '');"><img src="${url.context}/images/office/checkin.gif" style="padding:3px 6px 2px 0px;" alt="Mettre &acute; jour" title="Mettre &acute; jour" /></a>
      <#else>
            <a href="#" onclick="OfficeAddin.runAction('${doc_actions}','checkout','${child.id}', '');"><img src="${url.context}/images/office/checkout.gif" style="padding:3px 6px 2px 0px;" alt="Extraire une copie" title="Extraire une copie" /></a>
      </#if>
            <a href="${url.serviceContext}/office/myTasks?p=${path?url}&amp;w=new&amp;wd=${child.id}"><img src="${url.context}/images/office/new_workflow.gif" style="padding:3px 6px 2px 0px;" alt="Cr&eacute;er un Workflow…" title="Cr&eacute;er un Workflow…" /></a>
            <a href="#" onclick="window.external.insertDocument('${relativePath}')"><img src="${url.context}/images/office/insert_document.gif" style="padding:3px 6px 2px 0px;" alt="Ins&eacute;rer un fichier" title="Ins&eacute;rer un fichier"/></a>
      <#if !child.name?ends_with(".pdf")>
            <a href="#" onclick="OfficeAddin.runAction('${doc_actions}','makepdf','${child.id}', '');"><img src="${url.context}/images/office/makepdf.gif" style="padding:3px 6px 2px 0px;" alt="Convertir en PDF…" title="Convertir en PDF" /></a>
      </#if>
      <#if !child.isLocked>
            <a href="#" onclick="OfficeAddin.runAction('${doc_actions}','delete','${child.id}', 'Etes-vous certain de vouloir supprimer ce document?');"><img src="${url.context}/images/office/delete.gif" style="padding:3px 6px 2px 0px;" alt="Supprimer…" title="Supprimer" /></a>
      </#if>
         </span>
      </div>
   </#if>
</#list>
<#if documentsFound = 0>
      <div class="noItems">(No documents)</div>
</#if>
</div>

<div class="header">Actions</div>

<#assign currentPath = thisSpace.displayPath  + '/' + thisSpace.name />
<#assign currentPath = currentPath?substring(chLen+1)?url?replace('%2F', '/')?replace('\'', '\\\'') />
<div id="documentActionsNavigation">
   <div id="saveDetailsPanel">
      Document filename:<br />
      <input class="saveDetailsItem" type="text" id="saveFilename" style="height: 18px; width: 168px;" />
      <a class="spaceAction" href="#" onclick="OfficeNavigation.saveOK(this);">OK</a>
      <a class="spaceAction" href="#" onclick="OfficeNavigation.saveCancel();">Cancel</a>
   </div>
   <div id="nonStatusText">
      <ul>
<#if !node.isDocument>
         <li>
            <a href="#" onclick="OfficeNavigation.saveToAlfresco('${currentPath}')">
               <img src="${url.context}/images/office/save_to_alfresco.gif" alt="Save to Alfresco" />
               Sauvegarder
            </a>
            <br />Sauvegarder dans le d&eacute;pot Alfreco.
         </li>
</#if>
<#if args.search?exists>
         <li>
            <a href="${url.serviceContext}/office/search?p=${path?url}&amp;e=$(extn}&amp;searchagain=${args.search?url}&amp;maxresults=${args.maxresults}">
               <img src="${url.context}/images/office/search_again.gif" alt="Back to results" />
               Retour aux r&eacute;sultats de la recherche
            </a>
            <br />Revenir &acute la recherche.
         </li>
</#if>
      </ul>
   </div>
  
   <div id="statusText"></div>
</div>

</body>
</html>

Puis finalement search.get.html.ftl correspondant au 3ème onglet
La traduction est partielle…

<#if args.p?exists><#assign path=args.p><#else><#assign path=""></#if>
<#if args.n?exists><#assign node=args.n><#else><#assign node=companyhome></#if>
<#if args.e?exists><#assign extn=args.e><#else><#assign extn="doc"></#if>
<#if args.n?exists><#assign nav=args.n><#else><#assign nav=""></#if>
<#assign searchCommand="OfficeSearch.runSearch('${url.serviceContext}/office/searchResults', '${path}&amp;e=${extn}')" >
<#if (args.searchagain?exists)><#assign searchText=args.searchagain><#else><#assign searchText=""></#if>
<#if (args.maxresults?exists)><#assign maxResults=args.maxresults><#else><#assign maxResults="5"></#if>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
   <title>Browse Spaces and Documents</title>
   <link rel="stylesheet" type="text/css" href="${url.context}/css/office.css" />
<!–[if IE 6]>
   <link rel="stylesheet" type="text/css" href="${url.context}/css/office_ie6.css" />
<![endif]–>
   <script type="text/javascript" src="${url.context}/scripts/ajax/mootools.v1.11.js"></script>
   <script type="text/javascript" src="${url.context}/scripts/office/office_addin.js"></script>
   <script type="text/javascript" src="${url.context}/scripts/office/search.js"></script>
</head>
<body>
<!– ${maxResults} –>
<div id="tabBar">
   <ul>
      <li><a title="Accueil" href="${url.serviceContext}/office/myAlfresco?p=${path?url}&amp;e=${extn}&amp;n=${nav}"><span><img src="${url.context}/images/office/my_alfresco.gif" alt="Accueil" /></span></a></li>
      <li><a title="Explorateur" href="${url.serviceContext}/office/navigation?p=${path?url}&amp;e=${extn}&amp;n=${nav}"><span><img src="${url.context}/images/office/navigator.gif" alt="Explorateur" /></span></a></li>
      <li id="current"><a title="Recherches" href="${url.serviceContext}/office/search?p=${path?url}&amp;e=${extn}&amp;n=${nav}"><span><img src="${url.context}/images/office/search.gif" alt="Recherches" /></span></a></li>
      <li ><a title="D&eacute;tails" href="${url.serviceContext}/office/documentDetails?p=${path?url}&amp;e=${extn}&amp;n=${nav}"><span><img src="${url.context}/images/office/document_details.gif" alt="D&eacute;tails" /></span></a></li>
      <li><a title="T&acirc;ches" href="${url.serviceContext}/office/myTasks?p=${path?url}&amp;e=${extn}&amp;n=${nav}"><span><img src="${url.context}/images/office/my_tasks.gif" alt="T&acirc;ches" /></span></a></li>
   </ul>
</div>

<div class="header">Recherche:</div>

<div class="containerSmall">
   <div id="nonStatusText">
      <div class="searchBox">
         <span class="searchParam">
          
            <input type="text" id="searchText" value="${searchText}" maxlength="512" />
         </span>
         <span>
            <a id="simpleSearchButton" class="taskAction" href="#" onclick="${searchCommand}">Rechercher</a>
         </span>
         <span class="searchParam">
            Nombre de r&eacute;ponses
            <select id="maxResults" name="maxResults" onchange="${searchCommand}">
               <option <#if maxResults="5">selected="selected" </#if>value="5">5</option>
               <option <#if maxResults="10">selected="selected" </#if>value="10">10</option>
               <option <#if maxResults="15">selected="selected" </#if>value="15">15</option>
               <option <#if maxResults="20">selected="selected" </#if>value="20">20</option>
               <option <#if maxResults="50">selected="selected" </#if>value="50">50</option>
            </select> &eacute;l&eacute;ments
         </span>
      </div>
   </div>
  
   <div id="statusText"></div>
  
</div>

<div class="header"><span id="itemsFound"> </span></div>

<div id="resultsList" class="containerSearchResults">
   <div id="searchResultsList"></div>
</div>

<#if (args.searchagain?exists)>
<script type="text/javascript">
   window.addEvent('domready', function(){${searchCommand}});
</script>
</#if>
</body>
</html>
michaelh
Active Member

Re: add-in en français

Merci beaucoup.

Je regarde tout ça quand j'aurai quelques minutes Smiley Happy
dranakan
Active Member

Re: add-in en français

Hello,

J'ai fait des recherches pour choisir les langues de ce plugin (All et Fr). J'ai été voir sur la page http://wiki.alfresco.com/wiki/Microsoft_Office, mais rien à propos I18N.

Doit-on faire ceci manuellement (en passant, merci NNAY pour la traduction) ?

Merci Smiley Happy