Fix twig tags

This commit is contained in:
Romain Neutron
2013-11-21 14:17:12 +01:00
parent 2c9cee15a4
commit e7421e1fdd
230 changed files with 2060 additions and 2060 deletions

View File

@@ -40,19 +40,19 @@
<input type="hidden" name="{{key}}" value="{{value}}">
{% endfor %}
{% if errorMessage %}
<p class="login_error">{% trans 'Erreur de login / mot de passe' %}</p>
<p class="login_error">{{ 'Erreur de login / mot de passe' | trans }}</p>
{% endif %}
<p class="login_hello">
{% trans %}
Bonjour, veuillez vous identifier sur {{home_title}} :
{% endtrans %}
</p>
<input id="myLogin" name="login" class="span6" type="text" placeholder="{% trans 'admin::compte-utilisateur identifiant' %}" />
<input id="myPass" name="password" class="span6" type="password" placeholder="{% trans 'admin::compte-utilisateur mot de passe' %}" />
<input id="button_login" name="action_login" class="btn btn-inverse btn-large span6" type="submit" value="{% trans 'Se connecter' %}" />
<input id="myLogin" name="login" class="span6" type="text" placeholder="{{ 'admin::compte-utilisateur identifiant' | trans }}" />
<input id="myPass" name="password" class="span6" type="password" placeholder="{{ 'admin::compte-utilisateur mot de passe' | trans }}" />
<input id="button_login" name="action_login" class="btn btn-inverse btn-large span6" type="submit" value="{{ 'Se connecter' | trans }}" />
</form>
<p>
<a href="#">{% trans 'Probl&egrave;mes de connexion ?' %}</a>
<a href="#">{{ 'Probl&egrave;mes de connexion ?' | trans }}</a>
</p>
</div>
{% else %}
@@ -87,14 +87,14 @@
<input type="hidden" name="{{key}}" value="{{value}}">
{% endfor %}
<input type="hidden" name="action_accept" value="1">
<input id="button_access" class="btn btn-inverse btn-large span3" type="submit" value="{% trans 'Autoriser' %}" />
<input id="button_access" class="btn btn-inverse btn-large span3" type="submit" value="{{ 'Autoriser' | trans }}" />
</form>
<form method="post" class="access-deny">
{% for key,value in auth.getParams %}
<input type="hidden" name="{{key}}" value="{{value}}">
{% endfor %}
<input type="hidden" name="action_accept" value="0">
<input id="button_deny" class="btn btn-inverse btn-large span3" type="submit" value="{% trans 'Ne pas autoriser' %}" />
<input id="button_deny" class="btn btn-inverse btn-large span3" type="submit" value="{{ 'Ne pas autoriser' | trans }}" />
</form>
</div>
{% endif %}

View File

@@ -4,9 +4,9 @@
<meta charset="utf-8" />
<title>
{% if error is defined %}
{% trans 'Fail' %}
{{ 'Fail' | trans }}
{% else %}
{% trans 'Success' %}
{{ 'Success' | trans }}
{% endif %}
</title>
<meta name="author" content="Alchemy" />

View File

@@ -39,14 +39,14 @@
{% if basket_element.getBasket().getValidation().getParticipant(app['authentication'].getUser(), app).getCanAgree() %}
<fieldset data-role="controlgroup" data-type="horizontal" style="text-align:center;">
<input {% if basket_element.getUserValidationDatas(app['authentication'].getUser(), app).getAgreement() == true%}checked="checked"{% endif %} type="radio" name="radio-view" id="radio-view-yes_{{basket_element.getId()}}" value="yes" />
<label class="agreement_radio" style="width:130px;text-align:center;" for="radio-view-yes_{{basket_element.getId()}}">{% trans 'validation:: OUI' %}</label>
<label class="agreement_radio" style="width:130px;text-align:center;" for="radio-view-yes_{{basket_element.getId()}}">{{ 'validation:: OUI' | trans }}</label>
<input {% if basket_element.getUserValidationDatas(app['authentication'].getUser(), app).getAgreement() == false and basket_element.getUserValidationDatas(app['authentication'].getUser(), app).getAgreement() is not null %}checked="checked"{% endif %} type="radio" name="radio-view" id="radio-view-no_{{basket_element.getId()}}" value="no" />
<label class="agreement_radio" style="width:130px;text-align:center;" for="radio-view-no_{{basket_element.getId()}}">{% trans 'validation:: NON' %}</label>
<label class="agreement_radio" style="width:130px;text-align:center;" for="radio-view-no_{{basket_element.getId()}}">{{ 'validation:: NON' | trans }}</label>
</fieldset>
{% endif %}
<div style="text-align:center;margin:0 0 1em 0">
<a href="{{ path('lightbox_ajax_note_form', { 'sselcont_id' : basket_element.getId() }) }}" data-role="button" data-inline="true" data-rel="dialog" data-transition="slidedown">
{% trans 'validation:: editer ma note' %}
{{ 'validation:: editer ma note' | trans }}
</a>
</div>
<div>

View File

@@ -12,10 +12,10 @@
<h1>{{module_name}}</h1>
</div>
<div data-role="content">
<h2 style="font-weight:bold;font-size:20px;margin:40px 0;">{% trans 'Erreur !' %}</h2>
<p>{% trans 'Le panier demande nexiste plus' %}</p>
<h2 style="font-weight:bold;font-size:20px;margin:40px 0;">{{ 'Erreur !' | trans }}</h2>
<p>{{ 'Le panier demande nexiste plus' | trans }}</p>
<p>{{error}}</p>
<p><a style="color:black;" target="_self" href="{{ path('lightbox') }}">{% trans 'Retour a l\'accueil' %}</a></p>
<p><a style="color:black;" target="_self" href="{{ path('lightbox') }}">{{ 'Retour a l\'accueil' | trans }}</a></p>
</div>
<div data-role="footer">

View File

@@ -13,7 +13,7 @@
<div id="home" data-role="page">
<div data-role="header">
<h1>{{feed_entry.getTitle()}}</h1>
<a rel="external" href="{{ path('lightbox') }}" data-icon="home" data-iconpos="notext" data-direction="reverse" class="ui-btn-right jqm-home">{% trans 'Home' %}</a>
<a rel="external" href="{{ path('lightbox') }}" data-icon="home" data-iconpos="notext" data-direction="reverse" class="ui-btn-right jqm-home">{{ 'Home' | trans }}</a>
</div>
<div data-role="content">
<p>

View File

@@ -36,21 +36,21 @@
<div id="home" data-role="page">
<div data-role="header">
<h1>{{module_name}}</h1>
<a href="#about" class="ui-btn-right">{% trans 'a propos'%}</a>
<a href="#about" class="ui-btn-right">{{ 'a propos' | trans }}</a>
</div>
<div data-role="content">
<ul data-role="listview" style="width:100%;margin: 0;">
<li>
<a href="#validation">{% trans 'Validations'%}</a>
<a href="#validation">{{ 'Validations' | trans }}</a>
<span class="ui-li-count">{{_self.valid_baskets_length(baskets_collection)}}</span>
</li>
<li>
<a href="#baskets">{% trans 'Paniers'%}</a>
<a href="#baskets">{{ 'Paniers' | trans }}</a>
<span class="ui-li-count">{{_self.baskets_length(baskets_collection)}}</span>
</li>
</ul>
<div style="margin:2em 0 0 0">
<a href="{{ path ('logout') }}" data-role="button" rel="external">{% trans 'Deconnexion' %}</a>
<a href="{{ path ('logout') }}" data-role="button" rel="external">{{ 'Deconnexion' | trans }}</a>
</div>
</div>
<div data-role="footer">
@@ -60,7 +60,7 @@
<div id="about" data-role="page">
<div data-role="header">
<h1>{% trans 'a propos'%}</h1>
<h1>{{ 'a propos' | trans }}</h1>
</div>
<div data-role="content">
<p>Phraseanet Version {{ app['phraseanet.version'].getName() }} - {{ app['phraseanet.version'].getNumber() }}</p>
@@ -79,12 +79,12 @@
<div id="validation" data-role="page">
<div data-role="header">
<a href="#home" data-rel="back" data-icon="arrow-l">{% trans 'Back' %}</a>
<h1>{% trans 'Validations'%}</h1>
<a href="#home" data-rel="back" data-icon="arrow-l">{{ 'Back' | trans }}</a>
<h1>{{ 'Validations' | trans }}</h1>
</div>
<div data-role="content">
<p>
{% trans 'Voici vos validations en cours' %}
{{ 'Voici vos validations en cours' | trans }}
</p>
<ul data-role="listview" style="width:100%;margin: 0;">
{% for basket in baskets_collection %}
@@ -109,11 +109,11 @@
<div id="baskets" data-role="page">
<div data-role="header">
<h1>{% trans 'Paniers'%}</h1>
<h1>{{ 'Paniers' | trans }}</h1>
</div>
<div data-role="content">
<p>
{% trans 'Voici vos paniers' %}
{{ 'Voici vos paniers' | trans }}
</p>
<ul data-role="listview" style="width:100%;margin: 0;">
{% for basket in baskets_collection %}

View File

@@ -20,7 +20,7 @@
<textarea class="note_area"
id="note_area_{{basket_element.getId()}}"
{% if basket_element.getUserValidationDatas(app['authentication'].getUser(), app).getNote() == '' %}placeholder="Note"{% endif %}>{{basket_element.getUserValidationDatas(app['authentication'].getUser(), app).getNote()}}</textarea>
<button type="submit" class="note_area_validate">{% trans 'boutton::valider' %}</button>
<button type="submit" class="note_area_validate">{{ 'boutton::valider' | trans }}</button>
<input name="sselcont_id" value="{{basket_element.getId()}}" type="hidden"/>
</form>
</div>

View File

@@ -10,7 +10,7 @@
{{ validationDatas.getParticipant().getUser(app).get_display_name() }}
</h3>
{% if validationDatas.getNote() != '' %}
<p style="text-align:left;">{% trans 'validation:: note'%} : {{ validationDatas.getNote()|nl2br }}</p>
<p style="text-align:left;">{{ 'validation:: note' | trans }} : {{ validationDatas.getNote()|nl2br }}</p>
{% endif %}
</li>
{% endif %}

View File

@@ -4,7 +4,7 @@
{% block javascript %}
<script type="text/javascript">
{% if basket.getValidation() %}
var releasable = {% if basket.getValidation().getParticipant(app['authentication'].getUser(), app).isReleasable() %}"{% trans 'Do you want to send your report ?' %}"{% else %}false{% endif %}
var releasable = {% if basket.getValidation().getParticipant(app['authentication'].getUser(), app).isReleasable() %}"{{ 'Do you want to send your report ?' | trans }}"{% else %}false{% endif %}
{% endif %}
</script>
<script type="text/javascript" src="{{ path('minifier', { 'f' : 'skins/lightbox/jquery.validator.mobile.js' }) }}"></script>
@@ -17,9 +17,9 @@
{% block content %}
<div id="home" data-role="page">
<div data-role="header">
<a href="{{ path('lightbox') }}{% if basket.getValidation() %}#validation{% else %}#baskets{% endif %}" data-rel="back" data-icon="arrow-l">{% trans 'Back' %}</a>
<a href="{{ path('lightbox') }}{% if basket.getValidation() %}#validation{% else %}#baskets{% endif %}" data-rel="back" data-icon="arrow-l">{{ 'Back' | trans }}</a>
<h1>{{basket.getName()}}</h1>
<a rel="external" href="{{ path('lightbox') }}" data-icon="home" data-iconpos="notext" data-direction="reverse" class="ui-btn-right jqm-home">{% trans 'Home' %}</a>
<a rel="external" href="{{ path('lightbox') }}" data-icon="home" data-iconpos="notext" data-direction="reverse" class="ui-btn-right jqm-home">{{ 'Home' | trans }}</a>
</div>
<div data-role="content">
<input type="hidden" id="basket_validation_id" value="{{ basket.getId() }}">
@@ -44,8 +44,8 @@
</div>
<div data-role="footer">
{% if basket.getValidation() and basket.getValidation().getParticipant(app['authentication'].getUser(), app).getCanAgree() %}
<button class="confirm_report" style="width:100%;" title="{% trans 'validation::envoyer mon rapport'%}">
{% trans 'validation::envoyer mon rapport'%}
<button class="confirm_report" style="width:100%;" title="{{ 'validation::envoyer mon rapport' | trans }}">
{{ 'validation::envoyer mon rapport' | trans }}
<img src="/skins/icons/loader1F1E1B.gif" style="visibility:hidden;" class="loader"/>
</button>
{% endif %}