Search code examples
phphtmlarabicright-to-left

Recommendations for translating an app in arabic


For an upcoming project, one of the requirements is to translate the web application in a few languages, one of which is in Arabic.

I know plenty about dealing with multiple languages, and know plenty about unicode. What I'm wondering is if there's some basic tips and recommendations I can follow anticipating an Arabic translation for my HTML templates.

Edit: I'm mostly curious how to build an application that's easily translatable. With all LTR-languages it's often times a matter of string replacement (along with a few other things), what does it take to build an app, but make it relativaly easy to add arabic support later on. Are there things I can consider before starting?


Solution

  • Checkout the HTML dir attribute: http://www.w3.org/TR/html401/struct/dirlang.html

    
    <html xmlns="http://www.w3.org/1999/xhtml" dir="rtl" xml:lang="ar" lang="ar" >
    <head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    </head>
    <body>
    ...
    </body>
    </html>