瀏覽代碼

Added in beginnings of translations and added placeholders for footer menu translations

Jonathan Ingram 13 年之前
父節點
當前提交
7faa1e9430

+ 8 - 0
src/Packagist/WebBundle/Resources/translations/messages.en.yml

@@ -0,0 +1,8 @@
+menu:
+  about_packagist: About Packagist
+  about_composer: About Composer
+  home: Home
+  profile: Profile
+  logout: Logout
+  login: Login
+  register: Register

+ 7 - 7
src/Packagist/WebBundle/Resources/views/layout.html.twig

@@ -77,17 +77,17 @@
 
             <footer>
                 <ul>
-                    <li><a href="{{ path('about') }}">About Packagist</a></li>
-                    <li><a href="{{ path('about.composer') }}">About Composer</a></li>
-                    <li><a href="{{ path('home') }}">Home</a></li>
+                    <li><a href="{{ path('about') }}">{{ 'menu.about_packagist' | trans }}</a></li>
+                    <li><a href="{{ path('about.composer') }}">{{ 'menu.about_composer' | trans }}</a></li>
+                    <li><a href="{{ path('home') }}">{{ 'menu.home' | trans }}</a></li>
                 </ul>
                 <ul>
                     {% if app.user %}
-                        <li><a href="{{ path('fos_user_profile_show') }}">Profile</a></li>
-                        <li><a href="{{ path('fos_user_security_logout') }}">Logout</a></li>
+                        <li><a href="{{ path('fos_user_profile_show') }}">{{ 'menu.profile' | trans }}</a></li>
+                        <li><a href="{{ path('fos_user_security_logout') }}">{{ 'menu.Logout' | trans }}</a></li>
                     {% else %}
-                        <li><a href="{{ path('fos_user_registration_register') }}">Register</a></li>
-                        <li><a href="{{ path('fos_user_security_login') }}">Login</a></li>
+                        <li><a href="{{ path('fos_user_registration_register') }}">{{ 'menu.Register' | trans }}</a></li>
+                        <li><a href="{{ path('fos_user_security_login') }}">{{ 'menu.Login' | trans }}</a></li>
                     {% endif %}
                 </ul>
                 <div class="clearfix"></div>