Launch of a multilingual website in Laravel

I am going to create a multilingual site where English will be used for public pages, and then Arabic for the administrator. I have never worked on this before and I don’t know where to start. Perhaps those who made multilingual sites can answer a few questions for me.

  • Is it possible to save English and Arabic in one table? If so, my collation has always been utf-8 Unicode, so I can no longer use utf8?
  • Will the Arabic parts of my site have their own table? If so, what sorting?
  • In my mind, what am I typing for a replacement <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />?
  • Is there anything I should know about starting a multilingual site?

Thanks in advance! I really lost a little where to start.

+5
source share
2 answers
  • Yes you can use utf8
  • No, you can use Arabic and English in one table
  • Arabic encoding iso-8859-6, so you will need to change the charset attribute in admin views
  • You probably want to use body { direction: rtl; }in your CSS for Arabic pages

You may find these links useful:

, Laravel (application/language/XX/validation.php), , placeholder :attribute name, " " ( - ) . , Validation Attributes, . , , :

'attributes' => array_merge(
    Lang::file('application', 'ar', 'filename_without_extension'),
    Lang::file('application', 'ar', 'another_file')
),
+5

Laravel . , LoginController:

public function username()
{
    return 'username';
}
0

All Articles