Hello
I translated the script from English to Arabic ... but I could not make the texts align from right to left. how can I do that ?
thank you all
texts align from right to left
-
- Lead Developer
- Posts: 2637
- Joined: Tue Nov 05, 2019 6:02 pm
- Has thanked: 4 times
- Been thanked: 181 times
Re: texts align from right to left
If you look in template_top.php, you will see Then if you look in your main language file, you should have something like Change that to something like I linked to the English translation in core. The German translation might be a better example: So probably for Arabic: Note that all non-empty examples start with a space. That's important. Otherwise it will break the HTML tag.
Please realize that I don't actually know the correct values for Arabic, as I don't work in it. I think that my last example is correct, but you may find it better to ask someone who is familiar with Arabic in HTML for the correct values.
Also, CE PhoenixCart assumes that the text will be in UTF-8. You may have already done that, but mentioning just in case.
If you have a completed translation, you may upload it at app.php/addons/free/language-23
Code: Select all
<html<?php echo HTML_PARAMS; ?>>
Code: Select all
const HTML_PARAMS = '';
Code: Select all
const HTML_PARAMS = ' dir="rtl"';
Code: Select all
const HTML_PARAMS = ' dir="ltr" lang="de"';
Code: Select all
const HTML_PARAMS = ' dir="rtl" lang="ar"';
Please realize that I don't actually know the correct values for Arabic, as I don't work in it. I think that my last example is correct, but you may find it better to ask someone who is familiar with Arabic in HTML for the correct values.
Also, CE PhoenixCart assumes that the text will be in UTF-8. You may have already done that, but mentioning just in case.
If you have a completed translation, you may upload it at app.php/addons/free/language-23