From 27df903f6dda540e17d94b0c5ce00f25fa03e5bf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Benoi=CC=82t=20Pin?= <benoit.pin@gmail.com> Date: Thu, 27 Jun 2013 00:14:48 +0200 Subject: [PATCH 1/1] =?utf8?q?Preview=20dans=20ckeditor=C2=A0:=20y'a=20une?= =?utf8?q?=20couille=20avec=20la=20locasization.=20On=20met=20=C3=A7a=20en?= =?utf8?q?=20stand-by=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- skins/content/content_info.pt | 11 +++++------ skins/content/file_info.pt | 12 ++++++------ 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/skins/content/content_info.pt b/skins/content/content_info.pt index 36e5924..314da1f 100644 --- a/skins/content/content_info.pt +++ b/skins/content/content_info.pt @@ -1,27 +1,26 @@ -<div i18n:domain="plinn" - tal:define="locale_date_fmt here/locale_date_fmt; +<div tal:define="locale_date_fmt string:%m/%d/%Y %Hh%M; portal_url here/portal_url; ti here/getTypeInfo; icon ti/getIcon"> <table class="finder_preview"> <tr> <td colspan="2"> - <div i18n:translate="">Preview:</div> + <div>Preview:</div> <div class="thumbnail"> <img tal:attributes="src python:portal_url + '/' + icon.replace('.gif', '.thumb.gif'); alt here/title_or_id" width="128" height="128"/> </div> </td> </tr> <tr> - <th i18n:translate="">Title</th> + <th>Title</th> <td tal:content="here/title_or_id">File title</td> </tr> <tr> - <th i18n:translate="">Created</th> + <th>Created</th> <td tal:content="python:here.created().strftime(locale_date_fmt)">creation date</td> </tr> <tr> - <th i18n:translate="">Modified</th> + <th>Modified</th> <td tal:content="python:here.modified().strftime(locale_date_fmt)">modification date</td> </tr> </table> diff --git a/skins/content/file_info.pt b/skins/content/file_info.pt index 07ee911..cb35365 100644 --- a/skins/content/file_info.pt +++ b/skins/content/file_info.pt @@ -1,27 +1,27 @@ -<div i18n:domain="plinn" tal:define="locale_date_fmt here/locale_date_fmt; portal_url here/portal_url"> +<div tal:define="locale_date_fmt string:%m/%d/%Y %Hh%M; portal_url here/portal_url"> <table class="finder_preview"> <tr> <td colspan="2"> - <div i18n:translate="">Preview:</div> + <div>Preview:</div> <div class="thumbnail"> <img tal:attributes="src string:$portal_url/application.thumb.gif; alt here/title_or_id" width="128" height="128"/> </div> </td> </tr> <tr> - <th i18n:translate="">Title</th> + <th>Title</th> <td tal:content="here/title_or_id">File title</td> </tr> <tr> - <th i18n:translate="">Type</th> + <th>Type</th> <td tal:content="here/content_type">text/plain</td> </tr> <tr> - <th i18n:translate="">Created</th> + <th>Created</th> <td tal:content="python:here.created().strftime(locale_date_fmt)">creation date</td> </tr> <tr> - <th i18n:translate="">Modified</th> + <th>Modified</th> <td tal:content="python:here.modified().strftime(locale_date_fmt)">modification date</td> </tr> </table> -- 2.20.1