Просмотр исходного кода

Mise en place de la version anglaise sommaire.

bastien 13 лет назад
Родитель
Сommit
28281b6611

+ 9 - 0
app/Resources/translations/flash.en.yml Просмотреть файл

@@ -0,0 +1,9 @@
1
+
2
+# FOS
3
+group.flash.updated: Group has been updated
4
+group.flash.created: Group has been created
5
+group.flash.deleted: Group has been deleted
6
+profile.flash.updated: Profile updated
7
+change_password.flash.success: Password updated
8
+registration.flash.user_created: User created
9
+resetting.flash.success: Password has been initialized

+ 8 - 0
app/Resources/translations/navigationui.en.yml Просмотреть файл

@@ -0,0 +1,8 @@
1
+
2
+container_menu:
3
+  the_network:          The network
4
+  my_network:           My network
5
+  
6
+top_bar:
7
+  my_account:           My account
8
+  logout:              Logout

+ 8 - 0
app/Resources/translations/navigationui.fr.yml Просмотреть файл

@@ -0,0 +1,8 @@
1
+
2
+container_menu:
3
+  the_network:          Le réseau
4
+  my_network:           Mon réseau
5
+  
6
+top_bar:
7
+  my_account:           Mon compte
8
+  logout:               Déconnexion

+ 13 - 0
app/Resources/translations/network.en.yml Просмотреть файл

@@ -0,0 +1,13 @@
1
+
2
+search:
3
+  search:               Search
4
+  return:               Return
5
+  search_u_n_g:         Search users and groups
6
+  users:                Users
7
+  groups:               Groups
8
+  no_result:            No result
9
+  form:
10
+    submit_value:       Search
11
+users:                Users
12
+groups:               Groups
13
+followed_by:          You're followed by

+ 13 - 0
app/Resources/translations/network.fr.yml Просмотреть файл

@@ -0,0 +1,13 @@
1
+
2
+search:
3
+  search:               Rechercher
4
+  return:               Retour
5
+  search_u_n_g:         Rechercher des utilisateurs et des groupes
6
+  users:                 Utilisateurs
7
+  groups:               Groupes
8
+  no_result:            Il n'y a aucun résultat a votre recherche
9
+  form:
10
+    submit_value:       Rechercher
11
+users:                Utilisateurs
12
+groups:               Groupes
13
+followed_by:          Vous êtes suivis par

+ 4 - 0
app/Resources/translations/userform.en.yml Просмотреть файл

@@ -0,0 +1,4 @@
1
+
2
+password.actual: Actual
3
+password.new.first: New
4
+password.new.second: New (check)

+ 4 - 0
app/Resources/translations/userform.fr.yml Просмотреть файл

@@ -0,0 +1,4 @@
1
+
2
+password.actual: Actuel
3
+password.new.first: Nouveau
4
+password.new.second: Nouveau (vérification)

+ 11 - 0
app/Resources/translations/userui.en.yml Просмотреть файл

@@ -0,0 +1,11 @@
1
+
2
+my_account: 
3
+  title:          My account
4
+  username:         Username
5
+  email:            Email
6
+  favorite_tags:    Favorite tags
7
+  change_password:  Change my password
8
+  change_email:     Change my email
9
+  
10
+connexion:
11
+  password_lost:    Password lost ?

+ 11 - 0
app/Resources/translations/userui.fr.yml Просмотреть файл

@@ -0,0 +1,11 @@
1
+
2
+my_account: 
3
+  title:          Mon compte
4
+  username:         Nom d'utilisateur
5
+  email:            Adresse email
6
+  favorite_tags:    Vos tags préférés
7
+  change_password:  Changer mon mot de passe
8
+  change_email:     Changer mon adresse email
9
+  
10
+connection:
11
+  password_lost:    Mot de passe perdu ?

+ 2 - 2
src/Muzich/CoreBundle/Resources/views/Menu/containerMenu.html.twig Просмотреть файл

@@ -2,12 +2,12 @@
2 2
 <ul id="top-tabs">
3 3
   <li {% if active == 'public' %} class="active" {% endif %}>
4 4
     <a href="{{ path('home') }}">
5
-      Le réseau
5
+      {{ 'container_menu.the_network'|trans({}, 'navigationui') }}
6 6
     </a>
7 7
   </li>
8 8
   <li {% if active == 'private' %} class="active" {% endif %}>
9 9
     <a href="{{ path('mynetwork_index') }}">
10
-      Mon réseau
10
+      {{ 'container_menu.my_network'|trans({}, 'navigationui') }}
11 11
     </a>
12 12
   </li>
13 13
 </ul>

+ 1 - 0
src/Muzich/CoreBundle/Resources/views/SearchElement/form.html.twig Просмотреть файл

@@ -1,4 +1,5 @@
1 1
 <form action="{{ path('search_elements') }}" method="post" {{ form_enctype(search_form) }}>
2
+  
2 3
   {{ form_errors(search_form) }}
3 4
 
4 5
   {{ form_row(search_form.network) }}

+ 1 - 0
src/Muzich/CoreBundle/Resources/views/Tag/tagFavoritesForm.html.twig Просмотреть файл

@@ -1,4 +1,5 @@
1 1
 <form action="{{ path('update_tag_favorites', { 'redirect' : redirect }) }}" method="post" {{ form_enctype(form) }}>
2
+  
2 3
   {{ form_errors(form) }}
3 4
 
4 5
   {{ form_row(form.tags) }}

+ 4 - 4
src/Muzich/MynetworkBundle/Resources/views/Mynetwork/index.html.twig Просмотреть файл

@@ -5,11 +5,11 @@
5 5
 {% block content %}
6 6
 
7 7
   <a class="link_navigation" href="{{ path('mynetwork_search') }}" >
8
-    Rechercher
8
+    {{ 'search.search'|trans({}, 'network') }}
9 9
   </a>
10 10
   
11 11
   {% if followeds_users %}
12
-    <b>Utilisateurs</b>
12
+    <b>{{ 'users'|trans({}, 'network') }}</b>
13 13
     <ul class="inline">
14 14
     {% for user in followeds_users %} 
15 15
       <li>
@@ -20,7 +20,7 @@
20 20
   {% endif %}
21 21
   
22 22
   {% if followeds_groups %}
23
-    <b>Groupes</b>
23
+    <b>{{ 'groups'|trans({}, 'network') }}</b>
24 24
     <ul class="inline">
25 25
     {% for group in followeds_groups %} 
26 26
       <li>
@@ -31,7 +31,7 @@
31 31
   {% endif %}
32 32
   
33 33
   {% if followers_users %}
34
-    <b>Vous êtes suivis par</b>
34
+    <b>{{ 'followed_by'|trans({}, 'network') }}</b>
35 35
     <ul class="inline">
36 36
     {% for user in followers_users %} 
37 37
       <li>

+ 6 - 6
src/Muzich/MynetworkBundle/Resources/views/Mynetwork/search.html.twig Просмотреть файл

@@ -5,10 +5,10 @@
5 5
 {% block content %}
6 6
 
7 7
   <a class="link_navigation" href="{{ path('mynetwork_index') }}" >
8
-    Retour
8
+    {{ 'search.return'|trans({}, 'network') }}
9 9
   </a>
10 10
   
11
-  <b>Rechercher des utilisateurs et des groupes</b>
11
+  <b>{{ 'search.search_u_n_g'|trans({}, 'network') }}</b>
12 12
   
13 13
   <form action="{{ path('mynetwork_search') }}" method="post" {{ form_enctype(search_form) }}>
14 14
     
@@ -18,14 +18,14 @@
18 18
 
19 19
     {{ form_rest(search_form) }}
20 20
 
21
-    <input type="submit" />
21
+    <input type="submit" value="{{ 'search.form.submit_value'|trans({}, 'network') }}" />
22 22
   </form>
23 23
   
24 24
   {% if results.users|length or results.groups|length %}
25 25
   
26 26
     {% if results.users %}
27 27
 
28
-      <b>Utilisateurs</b>
28
+      <b>{{ 'search.users'|trans({}, 'network') }}</b>
29 29
       
30 30
       <ul class="inline">
31 31
       {% for user in results.users %} 
@@ -39,7 +39,7 @@
39 39
   
40 40
     {% if results.groups %}
41 41
 
42
-      <b>Groupes</b>
42
+      <b>{{ 'search.groups'|trans({}, 'network') }}</b>
43 43
       
44 44
       <ul class="inline">
45 45
       {% for group in results.groups %} 
@@ -53,7 +53,7 @@
53 53
   
54 54
   {% elseif search_done %}
55 55
       
56
-      <p>Il n'y a aucun résultat a votre recherche</p>
56
+      <p>{{ 'search.no_result'|trans({}, 'network') }}</p>
57 57
       
58 58
   {% endif %}
59 59
 

+ 10 - 23
src/Muzich/UserBundle/Resources/views/Account/topBar.html.twig Просмотреть файл

@@ -1,27 +1,14 @@
1 1
 
2 2
 {% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
3
-<div id="top_bar">
3
+  <div id="top_bar">
4 4
 
5
-  {#<ul>
6
-    <li>
7
-      <a href="{{ path('my_account') }}" >
8
-        Mon compte
9
-      </a>
10
-    </li>
11
-    <li>
12
-      <a href="{{ path('fos_user_security_logout') }}" >
13
-        Déconnexion
14
-      </a>
15
-    </li>
16
-  </ul>#}
17
-  
18
-  <a href="{{ path('my_account') }}" >
19
-    Mon compte
20
-  </a>
21
-  
22
-  <a href="{{ path('fos_user_security_logout') }}" >
23
-    Déconnexion
24
-  </a>
25
-  
26
-</div>
5
+    <a href="{{ path('my_account') }}" >
6
+      {{ 'top_bar.my_account'|trans({}, 'navigationui') }}
7
+    </a>
8
+
9
+    <a href="{{ path('fos_user_security_logout') }}" >
10
+      {{ 'top_bar.logout'|trans({}, 'navigationui') }}
11
+    </a>
12
+
13
+  </div>
27 14
 {% endif %}

+ 21 - 0
src/Muzich/UserBundle/Resources/views/Security/change_password_form.html.twig Просмотреть файл

@@ -0,0 +1,21 @@
1
+{{ form_errors(form) }}
2
+    
3
+  <div class="field">
4
+    {{ form_label(form.current, 'password.actual'|trans({}, 'userform')) }}
5
+    {{ form_errors(form.current) }}
6
+    {{ form_widget(form.current) }}
7
+  </div>
8
+
9
+  <div class="field">
10
+    {{ form_label(form.new.first, 'password.new.first'|trans({}, 'userform')) }}
11
+    {{ form_errors(form.new.first) }}
12
+    {{ form_widget(form.new.first) }}
13
+  </div>
14
+
15
+  <div class="field">
16
+    {{ form_label(form.new.second, 'password.new.second'|trans({}, 'userform')) }}
17
+    {{ form_errors(form.new.second) }}
18
+    {{ form_widget(form.new.second) }}
19
+  </div>
20
+
21
+{{ form_rest(form) }}

+ 3 - 1
src/Muzich/UserBundle/Resources/views/Security/login.html.twig Просмотреть файл

@@ -15,4 +15,6 @@
15 15
 
16 16
       <input type="submit" id="_submit" name="_submit" value="{{ 'security.login.submit'|trans({}, 'FOSUserBundle') }}" />
17 17
   </form>
18
-</div>
18
+</div>
19
+
20
+<a href="{{ path('fos_user_resetting_request') }}">{{ 'connexion.password_lost'|trans({}, 'userui') }}</a>

+ 10 - 15
src/Muzich/UserBundle/Resources/views/User/account.html.twig Просмотреть файл

@@ -4,40 +4,35 @@
4 4
 
5 5
 {% block content %}
6 6
 
7
-  <h2>Mon compte</h2>
7
+  <h2>{{ 'my_account.title'|trans({}, 'userui') }}</h2>
8 8
   
9 9
   <ul>
10 10
     <li>
11
-      <b>Nom d'utilisateur</b>: {{ user.name }}
11
+      <b>{{ 'my_account.username'|trans({}, 'userui') }}</b>: {{ user.name }}
12 12
     </li>
13 13
     <li>
14
-      <b>Adresse email</b>: {{ user.email }}
14
+      <b>{{ 'my_account.email'|trans({}, 'userui') }}</b>: {{ user.email }}
15 15
     </li>
16 16
   </ul>
17 17
   
18
-  <h3>Vos tags préférés</h3>
18
+  <h3>{{ 'my_account.favorite_tags'|trans({}, 'userui') }}</h3>
19 19
   
20 20
   {% include "MuzichCoreBundle:Tag:tagFavoritesForm.html.twig" with { 
21 21
     'form': form_tags_favorites,
22 22
     'redirect' : 'account'
23 23
   } %}
24 24
   
25
-  <h3>Changer mon mot de passe</h3>
25
+  <h3>{{ 'my_account.change_password'|trans({}, 'userui') }}</h3>
26 26
   
27 27
   <form action="{{ path('change_password') }}" method="post" {{ form_enctype(form_password) }}>
28
-    {{ form_errors(form_password) }}
29
-
30
-    {{ form_row(form_password.current) }}
31
-      
32
-    {{ form_row(form_password.new.first) }}
33
-      
34
-    {{ form_row(form_password.new.second) }}
35
-      
36
-    {{ form_rest(form_password) }}
28
+    
29
+    {% include "MuzichUserBundle:Security:change_password_form.html.twig" with { 
30
+      'form': form_password
31
+    } %}
37 32
 
38 33
     <input type="submit" />
39 34
   </form>
40 35
   
41
-  <h3>Changer mon adresse email</h3>
36
+  <h3>{{ 'my_account.change_email'|trans({}, 'userui') }}</h3>
42 37
     
43 38
 {% endblock %}