template auto detect when language english to arabic

Started on the old forum in September 2012 · view the original in the archive · old links redirect here

5 replies · 536 views · started 14 years ago · 1 min read

3 participants
waptrickir Newbie · 6 posts #1

i need code when i select arabic language template auto detect to change or a written change direction from left to right are

Or if you know CMS that has the capability to introduce

Attachments: rtl.jpg
arnage Lead · 811 posts #4

This?

<div style="text-align: right;"> ... </div>

... or something like

echo '<div style="text-align: '.($is_arabic === true ? 'right' : 'left').';"> ... </div>';
<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
waptrickir Newbie · 6 posts #5

arnage wrote: something like

echo '<div style="text-align: '.($is_arabic === true ? 'right' : 'left').';"> ... </div>';
echo '<div style="text-align: '.($is_arabic === true ? 'right' : 'left').';"> ... </div>';

I need something like this. How do I use it?

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close