I'm about to create a multilingual site where English will be used for the public pages then Arabic for the Admin. I've never worked on this before and am unsure where to begin. Maybe those who've done multilingual sites before can answer a few questions for me.
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
?Thanks in advance! I really am a bit lost on where to begin on this.
iso-8859-6
, so you'll need to change the charset attribute in the admin viewsbody { direction: rtl; }
in your css for the Arabic pagesYou might find these links useful:
When you want to validate form fields using Laravel's translation files (application/language/XX/validation.php
), you will find that the :attribute
placeholder uses the form field's name
attribute, resulting in a mostly-translated error message with the word "email" (or whatever) in English. You can work around this by using the Validation Attributes array to hook up the English field names with the Arabic equivalent. If you find you've already translated them in another language file, you can use the following code instead:
'attributes' => array_merge(
Lang::file('application', 'ar', 'filename_without_extension'),
Lang::file('application', 'ar', 'another_file')
),
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With