Skip to content
Browse files

updated language.

  • Loading branch information...
1 parent fa9758f commit ed2313f8af00ab9058c72b7934a888da1b1d8088 thanhson1085 committed Aug 8, 2011
View
12 app/Resources/views/base.html.twig
@@ -16,13 +16,13 @@
<li>
<a class="my-account"
href="{{ path('cuteflow_my_account') }}">
- {% trans %}My account{% endtrans %}
+ {{ "basic.my_account" | trans }}
</a>
</li>
<li>
<a class="logout"
href="{{ path('cuteflow_logout') }}">
- {% trans %}Sign out{% endtrans %}
+ {{ "basic.sign_out" | trans }}
</a>
</li>
</ul>
@@ -31,16 +31,16 @@
{% if app.user %}
<div id="loggedas">
- {% trans %}Logged in as{% endtrans %} <a href="{{ path('cuteflow_user_show', {'username': app.user.username}) }}">{{ app.user.username }}</a>
+ {{ "basic.logged_in_as" | trans }} <a href="{{ path('cuteflow_user_show', {'username': app.user.username}) }}">{{ app.user.username }}</a>
</div>
{% endif %}
<ul>
- <li><a href="{{ path('cuteflow_dashboard') }}">{% trans %}Home{% endtrans %}</a></li>
+ <li><a href="{{ path('cuteflow_dashboard') }}">{{ "basic.home" | trans }}</a></li>
{% if app.user and is_granted('ROLE_CUTEFLOW_ADMIN') %}
- <li><a href="{{ path('cuteflow_admin_index') }}">{% trans %}Administration{% endtrans %}</a></li>
+ <li><a href="{{ path('cuteflow_admin_index') }}">{{ "basic.administration" | trans }}</a></li>
{% endif %}
- <li><a href="http://www.cuteflow.org/guide/v4">{% trans %}Help{% endtrans %}</a></li>
+ <li><a href="http://www.cuteflow.org/guide/v4">{{ "basic.help" | trans }}</a></li>
</ul>
</div>
<div id="header">
View
285 src/CuteFlow/CoreBundle/Resources/translations/messages.en.xliff
@@ -3,252 +3,289 @@
<file source-language="en" datatype="plaintext" original="file.ext">
<body>
<trans-unit id="1">
- <source>account.dashboard</source>
- <target>Dashboard</target>
+ <source>basic.my_account</source>
+ <target>My Account</target>
</trans-unit>
+
<trans-unit id="2">
- <source>account.worklows</source>
- <target>Workflows</target>
+ <source>basic.sign_out</source>
+ <target>Sign Out</target>
</trans-unit>
<trans-unit id="3">
- <source>account.reports</source>
- <target>Reports</target>
+ <source>basic.logged_in_as</source>
+ <target>Logged in as</target>
</trans-unit>
<trans-unit id="4">
- <source>account.workflow_management</source>
- <target>Workflow Management</target>
+ <source>basic.home</source>
+ <target>Home</target>
</trans-unit>
<trans-unit id="5">
- <source>account.my_account</source>
- <target>My Account</target>
+ <source>basic.administration</source>
+ <target>Administration</target>
</trans-unit>
<trans-unit id="6">
- <source>account.sign_out</source>
- <target>Sign Out</target>
+ <source>basic.help</source>
+ <target>Help</target>
</trans-unit>
<trans-unit id="7">
- <source>account.logged_in_as</source>
- <target>Logged in as</target>
+ <source>layout.dashboard</source>
+ <target>Dashboard</target>
</trans-unit>
<trans-unit id="8">
- <source>account.home</source>
- <target>Home</target>
+ <source>layout.workflows</source>
+ <target>Workflows</target>
</trans-unit>
<trans-unit id="9">
- <source>account.administration</source>
- <target>Administration</target>
+ <source>layout.reports</source>
+ <target>Reports</target>
</trans-unit>
<trans-unit id="10">
- <source>account.settings</source>
- <target>Settings</target>
+ <source>layout.workflow_management</source>
+ <target>Workflow Management</target>
</trans-unit>
<trans-unit id="11">
- <source>account.filter</source>
- <target>Filter</target>
+ <source>account.title.my_account</source>
+ <target>My Account</target>
</trans-unit>
<trans-unit id="12">
- <source>account.help</source>
- <target>Help</target>
+ <source>account.header.my_account</source>
+ <target>My Account</target>
</trans-unit>
<trans-unit id="13">
- <source>account.user</source>
- <target>User</target>
+ <source>account.message.account_successfully_saved</source>
+ <target>Account successfully saved</target>
</trans-unit>
<trans-unit id="14">
- <source>account.system_information</source>
- <target>System Information</target>
+ <source>account.label.username</source>
+ <target>Username</target>
</trans-unit>
<trans-unit id="15">
- <source>account.user_interface</source>
- <target>User Interface</target>
+ <source>account.button.save</source>
+ <target>Save</target>
</trans-unit>
<trans-unit id="16">
- <source>account.default_language</source>
- <target>Default language</target>
+ <source>account.header.information</source>
+ <target>Information</target>
</trans-unit>
<trans-unit id="17">
- <source>account.default_theme</source>
- <target>Default theme</target>
+ <source>account.label.registered_on</source>
+ <target>Registered on</target>
</trans-unit>
<trans-unit id="18">
- <source>account.user_format</source>
- <target>Userformat</target>
+ <source>account.label.last_login</source>
+ <target>Last Login</target>
</trans-unit>
<trans-unit id="19">
- <source>account.use_gravatar_user_icons</source>
- <target>Use Gravatar user icons</target>
+ <source>account.header.activity</source>
+ <target>Activity</target>
</trans-unit>
<trans-unit id="20">
- <source>account.email</source>
- <target>Email</target>
+ <source>admin.title.smtp_settings</source>
+ <target>SMTP Settings</target>
</trans-unit>
<trans-unit id="21">
- <source>account.workflow</source>
- <target>Workflow</target>
+ <source>admin.title.send_settings</source>
+ <target>Send Settings</target>
</trans-unit>
<trans-unit id="22">
- <source>account.authentication</source>
- <target>Authentication</target>
+ <source>admin.button.save</source>
+ <target>Save</target>
</trans-unit>
<trans-unit id="23">
- <source>account.general</source>
- <target>General</target>
+ <source>admin.title.settings</source>
+ <target>Settings</target>
</trans-unit>
<trans-unit id="24">
- <source>account.workflow_groups</source>
- <target>Workflow groups</target>
+ <source>admin.label.general</source>
+ <target>General</target>
</trans-unit>
<trans-unit id="25">
- <source>account.host</source>
- <target>Host</target>
+ <source>admin.label.email</source>
+ <target>Email</target>
</trans-unit>
<trans-unit id="26">
- <source>account.port</source>
- <target>Port</target>
+ <source>admin.label.workflow</source>
+ <target>Workflow</target>
</trans-unit>
<trans-unit id="27">
- <source>account.username</source>
- <target>Username</target>
+ <source>admin.message.settings_successfully_saved</source>
+ <target>Settings successfully saved</target>
</trans-unit>
<trans-unit id="28">
- <source>account.password</source>
- <target>Password</target>
+ <source>admin.title.system_information</source>
+ <target>System Information</target>
</trans-unit>
<trans-unit id="29">
- <source>account.emission_email_address</source>
- <target>Emission email address</target>
+ <source>admin.label.version</source>
+ <target>version</target>
</trans-unit>
<trans-unit id="30">
- <source>account.email_format</source>
- <target>Email format</target>
+ <source>admin.label.php</source>
+ <target>PHP</target>
</trans-unit>
<trans-unit id="31">
- <source>email_footer</source>
- <target>Email footer</target>
+ <source>admin.label.root_path</source>
+ <target>Root Path</target>
</trans-unit>
<trans-unit id="32">
- <source>account.plain</source>
- <target>Text</target>
+ <source>admin.label.database</source>
+ <target>Database</target>
</trans-unit>
<trans-unit id="33">
- <source>account.html</source>
- <target>HTML</target>
+ <source>admin.title.workflow</source>
+ <target>Workflow</target>
</trans-unit>
<trans-unit id="34">
- <source>account.smtp_settings</source>
- <target>SMTP-Settings</target>
+ <source>admin.system_information</source>
+ <target>System Information</target>
</trans-unit>
<trans-unit id="35">
- <source>account.send_settings</source>
- <target>Send-Settings</target>
+ <source>admin.user</source>
+ <target>User</target>
</trans-unit>
<trans-unit id="36">
- <source>account.edit_user</source>
- <target>Edit user</target>
+ <source>admin.workflow_groups</source>
+ <target>Workflow Groups</target>
</trans-unit>
<trans-unit id="37">
- <source>account.save</source>
- <target>Save</target>
+ <source>admin.settings</source>
+ <target>Settings</target>
</trans-unit>
<trans-unit id="38">
- <source>account.back_to_list</source>
- <target>Back to list</target>
+ <source>dashboard.title.dashboard"</source>
+ <target>Dashboard"</target>
</trans-unit>
<trans-unit id="39">
- <source>account.user_successfully_saved</source>
- <target>User successfully saved</target>
+ <source>dashboard.header.dashboard</source>
+ <target>Dashboard</target>
</trans-unit>
<trans-unit id="40">
- <source>account.edit</source>
- <target>Edit</target>
+ <source>mail.title.your_account_information</source>
+ <target>Your Account Information</target>
</trans-unit>
<trans-unit id="41">
- <source>account.delete</source>
- <target>Delete</target>
+ <source>mail.title.your_cuteflow_account_information</source>
+ <target>Your CuteFlow Accout Information</target>
</trans-unit>
<trans-unit id="42">
- <source>account.user_successfully_deleted</source>
- <target>User successfully deleted</target>
+ <source>mail.label.username</source>
+ <target>Username</target>
</trans-unit>
<trans-unit id="43">
- <source>account.do_you_really_want_to_delete_this_user?</source>
- <target>Do you really want to delete this user?</target>
+ <source>mail.label.password</source>
+ <target>Password</target>
</trans-unit>
<trans-unit id="44">
- <source>account.has_admin_rights</source>
- <target>Has Admin-Rights</target>
+ <source>mail.label.login</source>
+ <target>Login</target>
</trans-unit>
<trans-unit id="45">
- <source>account.firstname</source>
- <target>Firstname</target>
+ <source>reports.title.reports</source>
+ <target>Reports</target>
</trans-unit>
<trans-unit id="46">
- <source>account.lastname</source>
- <target>Lastname</target>
+ <source>reports.header.reports</source>
+ <target>Reports</target>
</trans-unit>
<trans-unit id="47">
- <source>account.last_login</source>
- <target>Last login</target>
+ <source>security.label.username</source>
+ <target>Username</target>
</trans-unit>
<trans-unit id="48">
- <source>account.new_user</source>
- <target>New user</target>
+ <source>security.label.password</source>
+ <target>Password</target>
</trans-unit>
<trans-unit id="49">
- <source>account.the_password_fields_must_match</source>
- <target>The password fields must match</target>
+ <source>security.label.remember_me</source>
+ <target>Remember me</target>
</trans-unit>
<trans-unit id="50">
- <source>account.activity</source>
- <target>Activity</target>
+ <source>security.label.lost_password</source>
+ <target>Lost password</target>
</trans-unit>
<trans-unit id="51">
- <source>account.registered_on</source>
- <target>Registered on</target>
+ <source>user.title.administration</source>
+ <target>Administration</target>
</trans-unit>
<trans-unit id="52">
- <source>account.information</source>
- <target>Information</target>
+ <source>user.header.edit_user</source>
+ <target>Edit User</target>
</trans-unit>
<trans-unit id="53">
- <source>account.root_path</source>
- <target>Root-Path</target>
+ <source>user.button.save</source>
+ <target>Save</target>
</trans-unit>
<trans-unit id="54">
- <source>account.database</source>
- <target>Database</target>
+ <source>user.label.back_to_list</source>
+ <target>Back to list</target>
</trans-unit>
<trans-unit id="55">
- <source>account.reset_filter</source>
- <target>Reset Filter</target>
+ <source>user.header.user</source>
+ <target>User</target>
</trans-unit>
<trans-unit id="56">
- <source>account.previous</source>
- <target>Previous</target>
+ <source>user.message.user_successfully_saved</source>
+ <target>User successfully saved</target>
</trans-unit>
<trans-unit id="57">
- <source>account.next</source>
- <target>Next</target>
+ <source>user.label.firstname</source>
+ <target>Firstname</target>
</trans-unit>
<trans-unit id="58">
- <source>account.encryption</source>
- <target>Encryption</target>
+ <source>user.label.lastname</source>
+ <target>Lastname</target>
</trans-unit>
<trans-unit id="59">
- <source>account.language</source>
- <target>Language</target>
+ <source>user.label.email</source>
+ <target>Email</target>
</trans-unit>
<trans-unit id="60">
- <source>account.theme</source>
- <target>Theme</target>
+ <source>user.label.username</source>
+ <target>Username</target>
</trans-unit>
<trans-unit id="61">
- <source>account.account_successfully_saved</source>
- <target>Account successfully saved</target>
+ <source>user.label.administrator</source>
+ <target>Administrator</target>
</trans-unit>
<trans-unit id="62">
- <source>account.my_account</source>
- <target>My Account</target>
+ <source>user.label..last_login</source>
+ <target>Last login</target>
+ </trans-unit>
+ <trans-unit id="63">
+ <source>user.label.edit</source>
+ <target>Edit</target>
+ </trans-unit>
+ <trans-unit id="64">
+ <source>user.message.do_you_really_want_to_delete_this_user?</source>
+ <target>Do you really want to delete this user?</target>
+ </trans-unit>
+ <trans-unit id="65">
+ <source>user.label.delete</source>
+ <target>Delete</target>
+ </trans-unit>
+ <trans-unit id="66">
+ <source>user.header.filter</source>
+ <target>Filter</target>
+ </trans-unit>
+ <trans-unit id="67">
+ <source>user.button.filter</source>
+ <target>Filter</target>
+ </trans-unit>
+ <trans-unit id="68">
+ <source>user.button.reset_filter</source>
+ <target>Reset filter</target>
+ </trans-unit>
+ <trans-unit id="69">
+ <source>account.label.email</source>
+ <target>Email</target>
+ </trans-unit>
+ <trans-unit id="70">
+ <source>user.label.new_user</source>
+ <target>Email</target>
+ </trans-unit>
+ <trans-unit id="71">
+ <source>admin.header.settings</source>
+ <target>Settings</target>
</trans-unit>
</body>
</file>
View
12 src/CuteFlow/CoreBundle/Resources/views/Account/edit.html.twig
@@ -1,9 +1,9 @@
{% extends 'CuteFlowCoreBundle::layout.html.twig' %}
-{% block title %}{{ parent() }} - {% trans %}My Account{% endtrans %}{% endblock %}
+{% block title %}{{ parent() }} - {{ "account.title.my_account" | trans }}{% endblock %}
{% block body %}
- <h2>{% trans %}My account{% endtrans %}</h2>
+ <h2>{{ "account.header.my_account" | trans }}</h2>
{% if form_errors(form) %}
<div class="flash error">
@@ -14,7 +14,7 @@
{% if (app.session.hasFlash('saved.successful')) %}
<div class="flash notice">
- {% trans %}Account successfully saved{% endtrans %}
+ {{ "account.message.account_successfully_saved" | trans }}
</div>
<br/>
{% endif %}
@@ -24,7 +24,7 @@
<div class="box tabular settings">
<p>
- <label>{% trans %}Username{% endtrans %}</label>
+ <label>{{ "account.label.username" | trans }}</label>
{{ user.username }}
</p>
@@ -51,10 +51,10 @@
</p>
</div>
- <input type="submit" value="{% trans %}Save{% endtrans %}" name="commit"/>
+ <input type="submit" value="{{ "account.button.save" | trans }}" name="commit"/>
{{ form_rest(form) }}
</form>
{% endblock %}
-{% block sidebarclass %}class="nosidebar"{% endblock %}
+{% block sidebarclass %}class="nosidebar"{% endblock %}
View
14 src/CuteFlow/CoreBundle/Resources/views/Account/show.html.twig
@@ -1,24 +1,24 @@
{% extends 'CuteFlowCoreBundle::layout.html.twig' %}
-{% block title %}{{ parent() }} - {% trans %}My Account{% endtrans %}{% endblock %}
+{% block title %}{{ parent() }} - {{ "account.title.my_account" | trans }}{% endblock %}
{% block body %}
<h2>
<img class="gravatar" width="50" height="50" src="{{ gravatar(user.email, 50) }}" />
{{ user.firstname }} {{ user.lastName }}
</h2>
<div class="splitcontentleft">
- <h3>{% trans %}Information{% endtrans %}</h3>
+ <h3>{{ "account.header.information" | trans }}</h3>
<ul>
- <li>{% trans %}Email{% endtrans %}: <a href="mailto:{{ user.email }}">{{ user.email }}</a></li>
- <li>{% trans %}Registered on{% endtrans %}: {{ user.createdAt|localedate }}</li>
- <li>{% trans %}Last login{% endtrans %}: {{ user.lastLogin|localedate }}</li>
+ <li>{{ "account.label.email" | trans }}: <a href="mailto:{{ user.email }}">{{ user.email }}</a></li>
+ <li>{{ "account.label.registered_on" | trans }}: {{ user.createdAt|localedate }}</li>
+ <li>{{ "account.label.last_login" | trans }}: {{ user.lastLogin|localedate }}</li>
</ul>
</div>
<div class="splitcontentright">
- <h3>{% trans %}Activity{% endtrans %}</h3>
+ <h3>{{ "account.header.activity" | trans }}</h3>
</div>
{% endblock %}
-{% block sidebarclass %}class="nosidebar"{% endblock %}
+{% block sidebarclass %}class="nosidebar"{% endblock %}
View
8 src/CuteFlow/CoreBundle/Resources/views/Admin/emailTab.html.twig
@@ -1,7 +1,7 @@
<div id="tab-content-email" class="tab-content" {% if formType!='email' %}style="display: none;"{% endif %}>
<form method="post" action="{{ path('cuteflow_admin_settings_save', {'formType': 'email'}) }}">
<fieldset class="box tabular settings">
- <legend>{% trans %}SMTP-Settings{% endtrans %}</legend>
+ <legend>{{ "admin.title.smtp_settings" | trans }}</legend>
<p>
{{ form_label(emailForm.smtpHost) }}
{{ form_widget(emailForm.smtpHost) }}
@@ -28,7 +28,7 @@
</p>
</fieldset>
<fieldset class="box tabular settings">
- <legend>{% trans %}Send-Settings{% endtrans %}</legend>
+ <legend>{{ "admin.title.send_settings" | trans }}</legend>
<p>
{{ form_label(emailForm.emissionMailAddress) }}
{{ form_widget(emailForm.emissionMailAddress) }}
@@ -45,6 +45,6 @@
{{ form_rest(emailForm) }}
- <input type="submit" value="{% trans %}Save{% endtrans %}" name="commit"/>
+ <input type="submit" value="{{ "admin.button.save" | trans }}" name="commit"/>
</form>
-</div>
+</div>
View
4 src/CuteFlow/CoreBundle/Resources/views/Admin/generalTab.html.twig
@@ -21,6 +21,6 @@
{{ form_rest(generalForm) }}
- <input type="submit" value="{% trans %}Save{% endtrans %}" name="commit"/>
+ <input type="submit" value="{{ "admin.button.save" | trans }}" name="commit"/>
</form>
-</div>
+</div>
View
12 src/CuteFlow/CoreBundle/Resources/views/Admin/settings.html.twig
@@ -1,21 +1,21 @@
{% extends 'CuteFlowCoreBundle::admin.html.twig' %}
-{% block title %}{{ parent() }} - {% trans %}Settings{% endtrans %}{% endblock %}
+{% block title %}{{ parent() }} - {{ "admin.title.settings" | trans }}{% endblock %}
{% block body %}
-<h2>{% trans %}Settings{% endtrans %}</h2>
+<h2>{{ "admin.header.settings" | trans }}</h2>
<!-- Tab-Navigation -->
<div class="tabs">
<ul>
- <li><a href="#" id="tab-general" {% if formType=='general' %}class="selected"{% endif %} onclick="showTab('general'); this.blur(); return false;">{% trans %}General{% endtrans %}</a></li>
- <li><a href="#" id="tab-email" {% if formType=='email' %}class="selected"{% endif %} onclick="showTab('email'); this.blur(); return false;">{% trans %}E-Mail{% endtrans %}</a></li>
- <li><a href="#" id="tab-workflow" {% if formType=='workflow' %}class="selected"{% endif %} onclick="showTab('workflow'); this.blur(); return false;">{% trans %}Workflow{% endtrans %}</a></li>
+ <li><a href="#" id="tab-general" {% if formType=='general' %}class="selected"{% endif %} onclick="showTab('general'); this.blur(); return false;">{{ "admin.label.general" | trans }}</a></li>
+ <li><a href="#" id="tab-email" {% if formType=='email' %}class="selected"{% endif %} onclick="showTab('email'); this.blur(); return false;">{{ "admin.label.email" | trans }}</a></li>
+ <li><a href="#" id="tab-workflow" {% if formType=='workflow' %}class="selected"{% endif %} onclick="showTab('workflow'); this.blur(); return false;">{{ "admin.label.workflow" | trans }}</a></li>
</ul>
</div>
{% if saveSuccess is defined and saveSuccess==true %}
<div class="flash notice">
- {% trans %}Settings successfully saved{% endtrans %}
+ {{ "admin.message.settings_successfully_saved" | trans }}
</div>
<br/>
{% endif %}
View
12 src/CuteFlow/CoreBundle/Resources/views/Admin/systemInfo.html.twig
@@ -1,25 +1,25 @@
{% extends 'CuteFlowCoreBundle::admin.html.twig' %}
-{% block title %}{{ parent() }} - {% trans %}System information{% endtrans %}{% endblock %}
+{% block title %}{{ parent() }} - {{ "admin.title.system_information" | trans }}{% endblock %}
{% block body %}
-<h2>{% trans %}System information{% endtrans %}</h2>
+<h2>{{ "admin.title.system_information" | trans }}</h2>
<table class="list">
<tr class="odd">
- <td>{% trans %}Version{% endtrans %}</td>
+ <td>{{ "admin.label.version" | trans }}</td>
<td>{{ version }}</td>
</tr>
<tr class="even">
- <td>{% trans %}PHP{% endtrans %}</td>
+ <td>{{ "admin.label.php" | trans }}</td>
<td>{{ phpVersion }}</td>
</tr>
<tr class="odd">
- <td>{% trans %}Root-Path{% endtrans %}</td>
+ <td>{{ "admin.label.root_path" | trans }}</td>
<td>{{ rootPath }}</td>
</tr>
<tr class="even">
- <td>{% trans %}Database{% endtrans %}</td>
+ <td>{{ "admin.label.database" | trans }}</td>
<td>{{ database }}</td>
</tr>
</table>
View
6 src/CuteFlow/CoreBundle/Resources/views/Admin/workflowTab.html.twig
@@ -1,9 +1,9 @@
<div id="tab-content-workflow" class="tab-content" {% if formType!='workflow' %}style="display: none;"{% endif %}>
<form method="post" action="{{ path('cuteflow_admin_settings_save', {'formType': 'workflow'}) }}">
<div class="box tabular settings">
- {% trans %}Workflow{% endtrans %}
+ {{ "admin.title.workflow" | trans }}
</div>
- <input type="submit" value="{% trans %}Save{% endtrans %}" name="commit"/>
+ <input type="submit" value="{{ "admin.button.save" | trans }}" name="commit"/>
</form>
-</div>
+</div>
View
6 src/CuteFlow/CoreBundle/Resources/views/Dashboard/index.html.twig
@@ -1,9 +1,9 @@
{% extends 'CuteFlowCoreBundle::layout.html.twig' %}
-{% block title %}{{ parent() }} - {% trans %}Dashboard{% endtrans %}{% endblock %}
+{% block title %}{{ parent() }} - {{ "dashboard.title.dashboard" | trans }}{% endblock %}
{% block body %}
-<h2>{% trans %}Dashboard{% endtrans %}</h2>
+<h2>{{ "dashboard.header.dashboard" | trans }}</h2>
{% endblock %}
-{% block sidebarclass %}class="nosidebar"{% endblock %}
+{% block sidebarclass %}class="nosidebar"{% endblock %}
View
10 src/CuteFlow/CoreBundle/Resources/views/Mail/welcome.html.twig
@@ -1,15 +1,15 @@
{% extends 'CuteFlowCoreBundle:Mail:mail_layout.html.twig' %}
-{% block cuteflow_email_subject %}[CuteFlow] - {% trans %}Your account information{% endtrans %}{% endblock %}
+{% block cuteflow_email_subject %}[CuteFlow] - {{ "mail.title.your_account_information" | trans }}{% endblock %}
{% block cuteflow_email_body %}
-<p>{% trans%}Your CuteFlow account information{% endtrans %}:</p>
+<p>{{ "mail.title.your_cuteflow_account_information" | trans }}:</p>
<ul>
- <li>{% trans%}Username{% endtrans %}: {{ user.username }}</li>
- <li>{% trans%}Password{% endtrans %}: {{ user.plainPassword }}</li>
+ <li>{{ "mail.label.username" | trans }}: {{ user.username }}</li>
+ <li>{{ "mail.label.password" | trans }}: {{ user.plainPassword }}</li>
</ul>
<br/>
-{% trans %}Login{% endtrans %}: <a href="{{ homepage }}">{{ homepage }}</a>
+{{ "mail.label.login" | trans }}: <a href="{{ homepage }}">{{ homepage }}</a>
{% endblock %}
View
10 src/CuteFlow/CoreBundle/Resources/views/Mail/welcome.text.twig
@@ -1,15 +1,15 @@
{% extends 'CuteFlowCoreBundle:Mail:mail_layout.text.twig' %}
-{% block cuteflow_email_subject %}[CuteFlow] - {% trans %}Your account information{% endtrans %}{% endblock %}
+{% block cuteflow_email_subject %}[CuteFlow] - {{ "mail.title.your_account_information" | trans }}{% endblock %}
{% block cuteflow_email_body %}
-{% trans%}Your CuteFlow account information{% endtrans %}:
+{{ "mail.title.your_cuteflow_account_information" | trans }}:
=============================================
-* {% trans%}Username{% endtrans %}: {{ user.username }}
-* {% trans%}Password{% endtrans %}: {{ user.plainPassword }}
+* {{ "mail.label.username" | trans }}: {{ user.username }}
+* {{ "mail.label.password" | trans }}: {{ user.plainPassword }}
-{% trans %}Login{% endtrans %}: {{ homepage }}
+{{ "mail.label.login" | trans }}: {{ homepage }}
{% endblock %}
View
6 src/CuteFlow/CoreBundle/Resources/views/Report/index.html.twig
@@ -1,9 +1,9 @@
{% extends 'CuteFlowCoreBundle::layout.html.twig' %}
-{% block title %}{{ parent() }} - {% trans %}Reports{% endtrans %}{% endblock %}
+{% block title %}{{ parent() }} - {{ "reports.title.reports" | trans }}{% endblock %}
{% block body %}
-<h2>{% trans %}Reports{% endtrans %}</h2>
+<h2>{{ "reports.header.reports" | trans }}</h2>
{% endblock %}
-{% block sidebarclass %}class="nosidebar"{% endblock %}
+{% block sidebarclass %}class="nosidebar"{% endblock %}
View
8 src/CuteFlow/CoreBundle/Resources/views/Security/login.html.twig
@@ -22,20 +22,20 @@
<form action="{{ path("_security_check") }}" method="post" id="login">
<table>
<tr>
- <td align="right"><label for="username">Username:</label></td>
+ <td align="right"><label for="username">{{ "security.label.username" | trans }}</label></td>
<td align="left"><p><input type="text" id="username" name="_username" size="40" value="{{ last_username }}" /></p></td>
</tr>
<tr>
- <td align="right"><label for="password">Password:</label></td>
+ <td align="right"><label for="password">{{ "security.label.password" | trans }}</label></td>
<td align="left"><p><input type="password" id="password" size="40" name="_password" /></p></td>
</tr>
<tr>
<td/>
<td align="left"><label for="remember_me"><input id="remember_me" type="checkbox" value="1" name="_remember_me"/>
- Remember me</label></td>
+ {{ "security.label.remember_me" | trans }}</label></td>
</tr>
<tr>
- <td align="left"><a href="#">Lost password</a></td>
+ <td align="left"><a href="#">{{ "security.label.lost_password" | trans }}</a></td>
<td align="right"><input type="submit" value="Login »"></td>
</tr>
</table>
View
10 src/CuteFlow/CoreBundle/Resources/views/User/edit.html.twig
@@ -1,11 +1,11 @@
{% extends 'CuteFlowCoreBundle::admin.html.twig' %}
-{% block title %}{{ parent() }} - {% trans %}Administration{% endtrans %}{% endblock %}
+{% block title %}{{ parent() }} - {{ "user.title.administration" | trans }}{% endblock %}
{% block sidebarclass %}class="nosidebar"{% endblock %}
{% block body %}
- <h2>{% trans %}Edit user{% endtrans %}</h2>
+ <h2>{{ "user.header.edit_user" | trans }}</h2>
{% if form_errors(form) %}
<div class="flash error">
@@ -41,7 +41,7 @@
</p>
</div>
- <input type="submit" value="{% trans %}Save{% endtrans %}" name="commit"/>
- &nbsp;&nbsp;&nbsp;<a href="{{ path('cuteflow_admin_user') }}">{% trans %}Back to list{% endtrans %}</a>
+ <input type="submit" value="{{ "user.button.save" | trans }}" name="commit"/>
+ &nbsp;&nbsp;&nbsp;<a href="{{ path('cuteflow_admin_user') }}">{{ "user.label.back_to_list" | trans }}</a>
</form>
-{% endblock %}
+{% endblock %}
View
32 src/CuteFlow/CoreBundle/Resources/views/User/list.html.twig
@@ -1,24 +1,24 @@
{% extends 'CuteFlowCoreBundle::admin.html.twig' %}
-{% block title %}{{ parent() }} - {% trans %}Administration{% endtrans %}{% endblock %}
+{% block title %}{{ parent() }} - {{ "user.title.administration" | trans }}{% endblock %}
{% block contextual %}
- <a class="icon icon-add" href="{{ path('cuteflow_admin_user_create') }}">{% trans %}New user{% endtrans %}</a>
+ <a class="icon icon-add" href="{{ path('cuteflow_admin_user_create') }}">{{ "user.label.new_user" | trans }}</a>
{% endblock %}
{% block body %}
- <h2>{% trans %}User{% endtrans %}</h2>
+ <h2>{{ "user.header.user" | trans }}</h2>
{% if (app.session.hasFlash('saved.successful')) %}
<div class="flash notice">
- {% trans %}User successfully saved{% endtrans %}
+ {{ "user.message.user_successfully_saved" | trans }}
</div>
<br/>
{% endif %}
{% if (app.session.hasFlash('deleted.successful')) %}
<div class="flash notice">
- {% trans %}User successfully deleted{% endtrans %}
+ {{ "user.message.user_successfully_saved" | trans }}
</div>
<br/>
{% endif %}
@@ -27,12 +27,12 @@
<thead>
<tr>
<th>&nbsp;</th>
- <th>{% trans %}Firstname{% endtrans %}</th>
- <th>{% trans %}Lastname{% endtrans %}</th>
- <th>{% trans %}Email{% endtrans %}</th>
- <th>{% trans %}Username{% endtrans %}</th>
- <th>{% trans %}Administrator{% endtrans %}</th>
- <th>{% trans %}Last login{% endtrans %}</th>
+ <th>{{ "user.label.firstname" | trans }}</th>
+ <th>{{ "user.label.lastname" | trans }}</th>
+ <th>{{ "user.label.email" | trans }}</th>
+ <th>{{ "user.label.username" | trans }}</th>
+ <th>{{ "user.label.administrator" | trans }}</th>
+ <th>{{ "user.label..last_login" | trans }}</th>
<th>&nbsp;</th>
</tr>
</thead>
@@ -51,8 +51,8 @@
</td>
<td>{{ user.lastLogin | localedate() }}</td>
<td>
- <small><a href="{{ path('cuteflow_admin_user_edit', {'id': user.id}) }}" class="icon icon-edit">{% trans %}Edit{% endtrans %}</a></small>
- <small><a href="{{ path('cuteflow_admin_user_delete', {'id': user.id}) }}" onclick="return confirm('{% trans %}Do you really want to delete this user?{% endtrans %}')" class="icon icon-del">{% trans %}Delete{% endtrans %}</a></small>
+ <small><a href="{{ path('cuteflow_admin_user_edit', {'id': user.id}) }}" class="icon icon-edit">{{ "user.label.edit" | trans }}</a></small>
+ <small><a href="{{ path('cuteflow_admin_user_delete', {'id': user.id}) }}" onclick="return confirm('{{ "user.message.do_you_really_want_to_delete_this_user?" | trans }}')" class="icon icon-del">{{ "user.label.delete" | trans }}</a></small>
</td>
</tr>
{% endfor %}
@@ -64,13 +64,13 @@
{% endblock %}
{% block sidebar %}
- <h3>{% trans %}Filter{% endtrans %}</h3>
+ <h3>{{ "user.header.filter" | trans }}</h3>
<div class="filter">
<form action="{{ path('cuteflow_admin_user', {'page': paginator.currentPage})}}" method="POST">
{{ form_widget(filterForm) }}
- <input type="submit" value="{% trans %}Filter{% endtrans %}"/>&nbsp;&nbsp;&nbsp;
- <input type="button" value="Reset Filter"/>
+ <input type="submit" value="{{ "user.button.filter" | trans }}"/>&nbsp;&nbsp;&nbsp;
+ <input type="button" value="{{ "user.button.reset_filter" | trans }}"/>
</form>
</div>
{% endblock %}
View
10 src/CuteFlow/CoreBundle/Resources/views/admin.html.twig
@@ -11,26 +11,26 @@
<li>
<a class="{{ app.request.attributes.get('_route') == 'cuteflow_admin_index' ? 'selected' : '' }}"
href="{{ path('cuteflow_admin_index') }}">
- {% trans %}System information{% endtrans %}
+ {{ "admin.system_information" | trans }}
</a>
</li>
<li>
<a class="{{ app.request.attributes.get('_route') == 'cuteflow_admin_user' ? 'selected' : '' }}"
href="{{ path('cuteflow_admin_user') }}">
- {% trans %}User{% endtrans %}
+ {{ "admin.user" | trans }}
</a>
</li>
<li>
<a class="{{ app.request.attributes.get('_route') == 'cuteflow_admin_groups' ? 'selected' : '' }}"
href="">
- {% trans %}Workflowgroups{% endtrans %}
+ {{ "admin.workflow_groups" | trans }}
</a>
</li>
<li>
<a class="{{ app.request.attributes.get('_route') == 'cuteflow_admin_settings' ? 'selected' : '' }}"
href="{{ path('cuteflow_admin_settings') }}">
- {% trans %}Settings{% endtrans %}
+ {{ "admin.settings" | trans }}
</a>
</li>
</ul>
-{% endblock %}
+{% endblock %}
View
10 src/CuteFlow/CoreBundle/Resources/views/layout.html.twig
@@ -5,25 +5,25 @@
<li>
<a class="{{ app.request.attributes.get('_route') == 'cuteflow_dashboard' ? 'selected' : '' }}"
href="{{ path('cuteflow_dashboard') }}">
- {% trans %}Dashboard{% endtrans %}
+ {{ "layout.dashboard" | trans }}
</a>
</li>
<li>
<a class="{{ app.request.attributes.get('_route') == 'cuteflow_workflows' ? 'selected' : '' }}"
href="">
- {% trans %}Workflows{% endtrans %}
+ {{ "layout.workflows" | trans }}
</a>
</li>
<li>
<a class="{{ app.request.attributes.get('_route') == 'cuteflow_reports_overview' ? 'selected' : '' }}"
href="{{ path('cuteflow_reports_overview') }}">
- {% trans %}Reports{% endtrans %}
+ {{ "layout.reports" | trans }}
</a>
</li>
<li>
<a class="{{ app.request.attributes.get('_route') == 'cuteflow_workflow_management' ? 'selected' : '' }}"
href="">
- {% trans %}Workflow Management{% endtrans %}
+ {{ "layout.workflow_management" | trans }}
</a>
</li>
</ul>
@@ -43,4 +43,4 @@
{% block javascripts %}
<script src="{{ asset('bundles/cuteflowcore/js/jquery-1.6.2.min.js') }}" type="text/javascript"></script>
<script src="{{ asset('bundles/cuteflowcore/js/tabs.js') }}" type="text/javascript"></script>
-{% endblock %}
+{% endblock %}

0 comments on commit ed2313f

Please sign in to comment.
Something went wrong with that request. Please try again.