Permalink
Browse files

Added Arabic translation for interface

(RTL) Right-to-Left Language Support
  • Loading branch information...
1 parent 7f6f48b commit a9a935d40521d42e98e17d534e3fbe75e003ffa0 badr el ghailani committed Jan 3, 2017
@@ -242,6 +242,13 @@ private function addDesignSection(ArrayNodeDefinition $rootNode)
->treatNullLike('dark')
->end()
+ ->enumNode('rtl')
+ ->values(array(true, false))
+ ->info('Enable RTL direction (values: "true" or "false").')
+ ->defaultValue(false)
+ ->treatNullLike(false)
+ ->end()
+
->scalarNode('brand_color')
->info('The color used in the backend design to highlight important elements.')
->defaultValue('#205081')
@@ -156,6 +156,20 @@ easy_admin:
# ...
```
+Activate RTL direction
+----------------------
+
+Adding support for language written in a Right-To-Left (RTL) direction is easy.
+By default, RTL direction is disabled to activate just turn rtl to true:
+
+```yaml
+easy_admin:
+ design:
+ # 'false' is the default value
+ rtl: true
+ # ...
+```
+
-------------------------------------------------------------------------------
← [Chapter 1. Basic Configuration](1-basic-configuration.md) | [Chapter 3. List, Search and Show Views Configuration](3-list-search-show-configuration.md) →
Oops, something went wrong.
Oops, something went wrong.
@@ -0,0 +1,152 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
+ <file source-language="en" target-language="fr" datatype="plaintext" original="file.ext">
+ <body>
+ <!-- page titles -->
+ <trans-unit id="new.page_title">
+ <source>new.page_title</source>
+ <target>"%entity_name%" جديد</target>
+ </trans-unit>
+ <trans-unit id="show.page_title">
+ <source>show.page_title</source>
+ <target>(#%entity_id%) %entity_name%</target>
+ </trans-unit>
+ <trans-unit id="edit.page_title">
+ <source>edit.page_title</source>
+ <target>(#%entity_id%) %entity_name% تعديل</target>
+ </trans-unit>
+ <trans-unit id="list.page_title">
+ <source>list.page_title</source>
+ <target>%entity_name%</target>
+ </trans-unit>
+ <trans-unit id="search.page_title">
+ <source>search.page_title</source>
+ <target><![CDATA[{0} لا توجد اي نتائج |{1} العثور على نتيجة وحيدة|]1,Inf] العثور على <strong>%count%</strong> نتيجة ]]></target>
+ </trans-unit>
+
+ <!-- 'search' view -->
+ <trans-unit id="search.no_results">
+ <source>search.no_results</source>
+ <target>لا توجد اي نتائج</target>
+ </trans-unit>
+
+ <!-- 'list' view -->
+ <trans-unit id="list.row_actions">
+ <source>list.row_actions</source>
+ <target>إجراءات</target>
+ </trans-unit>
+
+ <!-- paginator -->
+ <trans-unit id="paginator.first">
+ <source>paginator.first</source>
+ <target>الأول</target>
+ </trans-unit>
+ <trans-unit id="paginator.previous">
+ <source>paginator.previous</source>
+ <target>السابق</target>
+ </trans-unit>
+ <trans-unit id="paginator.next">
+ <source>paginator.next</source>
+ <target>التالي</target>
+ </trans-unit>
+ <trans-unit id="paginator.last">
+ <source>paginator.last</source>
+ <target>الأخير</target>
+ </trans-unit>
+ <trans-unit id="paginator.counter">
+ <source>paginator.counter</source>
+ <target><![CDATA[<strong>%results%</strong> / <strong>%end%</strong> - <strong>%start%</strong>]]></target>
+ </trans-unit>
+
+ <!-- labels -->
+ <trans-unit id="label.true">
+ <source>label.true</source>
+ <target>نعم</target>
+ </trans-unit>
+ <trans-unit id="label.false">
+ <source>label.false</source>
+ <target>لا</target>
+ </trans-unit>
+ <trans-unit id="label.empty">
+ <source>label.empty</source>
+ <target>فارغ</target>
+ </trans-unit>
+ <trans-unit id="label.null">
+ <source>label.null</source>
+ <target>لا شيء</target>
+ </trans-unit>
+ <trans-unit id="label.nullable_field">
+ <source>label.nullable_field</source>
+ <target>اتركه فارغ</target>
+ </trans-unit>
+ <trans-unit id="label.object">
+ <source>label.object</source>
+ <target>Objet PHP</target>
+ </trans-unit>
+ <trans-unit id="label.inaccessible">
+ <source>label.inaccessible</source>
+ <target>لا يمكن الوصول إليها</target>
+ </trans-unit>
+ <trans-unit id="label.inaccessible.explanation">
+ <source>label.inaccessible.explanation</source>
+ <target>لا يوجد وصف الوصول لهذه الخاصية أو أنها ليست عامة.</target>
+ </trans-unit>
+
+ <!-- user -->
+ <trans-unit id="user.logged_in_as">
+ <source>user.logged_in_as</source>
+ <target>تسجيل الدخول باسم</target>
+ </trans-unit>
+ <trans-unit id="user.unnamed">
+ <source>user.unnamed</source>
+ <target>مستخدم بدون اسم</target>
+ </trans-unit>
+ <trans-unit id="user.anonymous">
+ <source>user.anonymous</source>
+ <target>مستخدم مجهول</target>
+ </trans-unit>
+
+ <!-- misc. elements -->
+ <trans-unit id="toggle_navigation">
+ <source>toggle_navigation</source>
+ <target>اتاحة أو تعطيل التصفح</target>
+ </trans-unit>
+ <trans-unit id="delete_modal.title">
+ <source>delete_modal.title</source>
+ <target>هل تريد حذف هذا العنصر؟</target>
+ </trans-unit>
+ <trans-unit id="delete_modal.content">
+ <source>delete_modal.content</source>
+ <target>هذا الإجراء غير قابل للالغاء.</target>
+ </trans-unit>
+ <trans-unit id="delete_modal.action">
+ <source>delete_modal.action</source>
+ <target>حذف</target>
+ </trans-unit>
+ <trans-unit id="action.add_new_item">
+ <source>action.add_new_item</source>
+ <target>إضافة عنصر جديد</target>
+ </trans-unit>
+ <trans-unit id="action.add_another_item">
+ <source>action.add_another_item</source>
+ <target>إضافة عنصر آخر</target>
+ </trans-unit>
+ <trans-unit id="action.remove_item">
+ <source>action.remove_item</source>
+ <target>حذف العنصر</target>
+ </trans-unit>
+ <trans-unit id="errors">
+ <source>errors</source>
+ <target>خطأ | أخطاء</target>
+ </trans-unit>
+ <trans-unit id="form.are_you_sure">
+ <source>form.are_you_sure</source>
+ <target>لم يتم حفظه التغييرات.</target>
+ </trans-unit>
+ <trans-unit id="show.remaining_items">
+ <source>show.remaining_items</source>
+ <target><![CDATA[{1} هناك عنصر آخر لم يتم عرضه في هذه القائمة|]1,Inf] عنصر آخر لم يتم عرضه في هذه القائمة %count% ]]></target>
+ </trans-unit>
+ </body>
+ </file>
+</xliff>
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
+ <file source-language="en" target-language="fr" datatype="plaintext" original="file.ext">
+ <body>
+ <!-- generic actions displayed on buttons and links -->
+ <trans-unit id="action.new">
+ <source>action.new</source>
+ <target>%entity_name% جديد</target>
+ </trans-unit>
+ <trans-unit id="action.show">
+ <source>action.show</source>
+ <target>إطلاع</target>
+ </trans-unit>
+ <trans-unit id="action.edit">
+ <source>action.edit</source>
+ <target>تعديل</target>
+ </trans-unit>
+ <trans-unit id="action.search">
+ <source>action.search</source>
+ <target>بحث</target>
+ </trans-unit>
+ <trans-unit id="action.delete">
+ <source>action.delete</source>
+ <target>حذف</target>
+ </trans-unit>
+ <trans-unit id="action.save">
+ <source>action.save</source>
+ <target>حفظ</target>
+ </trans-unit>
+ <trans-unit id="action.cancel">
+ <source>action.cancel</source>
+ <target>الغاء</target>
+ </trans-unit>
+ <trans-unit id="action.list">
+ <source>action.list</source>
+ <target>رجوع إلى القائمة</target>
+ </trans-unit>
+ <trans-unit id="label.form.empty_value">
+ <source>label.form.empty_value</source>
+ <target>لا شيء</target>
+ </trans-unit>
+
+ <!-- forms -->
+ <trans-unit id="form.label.collections">
+ <!-- don't change this "translation" -->
+ <source>__name__label__</source>
+ <target>__name__label__</target>
+ </trans-unit>
+ </body>
+ </file>
+</xliff>
@@ -42,6 +42,12 @@
<script src="{{ asset('bundles/easyadmin/javascript/easyadmin-all.min.js') }}"></script>
{% endblock head_javascript %}
+ {% if easyadmin_config('design.rtl') %}
+ <!-- Load RTL stylesheet -->
+ <link rel="stylesheet" href="{{ asset('bundles/easyadmin/stylesheet/bootstrap-rtl.min.css') }}">
+ <link rel="stylesheet" href="{{ asset('bundles/easyadmin/stylesheet/adminlte-rtl.min.css') }}">
+ {% endif %}
+
<!--[if lt IE 9]>
<script src="{{ asset('bundles/easyadmin/stylesheet/html5shiv.min.css') }}"></script>
<script src="{{ asset('bundles/easyadmin/stylesheet/respond.min.css') }}"></script>

0 comments on commit a9a935d

Please sign in to comment.