title: Zend Framework - How can i translate and switch the language from right to left
body: <p>How can i regularise my right to left language where it is Arabic language. So it must start from right to left including all scroll bar, input box, upload whole layout is actually required to be shown as right to left.</p>
  
  <h1>This is my layout:</h1>
  
  <pre><code>&lt;?= $this-&gt;doctype();// xhtml = strict ?&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
      &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
      &lt;?php echo $this-&gt;headTitle(); ?&gt;
      &lt;?php echo $this-&gt;headMeta(); ?&gt;
      &lt;?php echo $this-&gt;headScript(); ?&gt;
      &lt;?php echo $this-&gt;headLink()-&gt;prependStylesheet('/css/production.css'); ?&gt;
      &lt;link rel="shortcut icon" href="/img/pageicon.png" type="image/x-icon" /&gt;
      &lt;link rel="alternate" type="application/rss+xml" title="We care Arab Page"      href="/rss.xml" /&gt;
  &lt;/head&gt;
  &lt;body&gt;
  !!!!!! everything need right to left, where default page is english (left to right).!!!!!
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Please advise ? :)</p>
  
  <p>Thanks &amp; Regards</p>
  
  <h1>Follow up:</h1>
  
  <ul>
  <li><p>$this->view->headMeta()->appendName('Language','en');<br>
  This is not related to DIR</p></li>
  <li><p><a href="http://www.w3.org/TR/REC-html40/struct/dirlang.html" rel="nofollow">http://www.w3.org/TR/REC-html40/struct/dirlang.html</a>
  This is a solution actually</p></li>
  <li><p>It works</p>
  
  <p>&lt; html xmlns="http://www.w3.org/1999/xhtml" lang="ar" dir="RTL" ></p></li>
  <li><p>ZF-> How do you assign it from MVC controller ?</p>
  
  <p>&lt; html xmlns="http://www.w3.org/1999/xhtml" lang="ar" dir=&lt; ?= $this->rtl; ? > > ???</p></li>
  <li><p>tried 2 suggestion</p>
  
  <p>&lt; body style="direction:rtl;" >
  OR
  &lt; html xmlns="http://www.w3.org/1999/xhtml" lang="ar" dir="RTL" ></p></li>
  </ul>
  
  <p>Dont see any differences for direction changing. Image does not flip, all the rest flip exactly.</p>