Author |
|
faisal Newbie
Joined: 13 June 2007 Location: Saudi Arabia
Online Status: Offline Posts: 31
|
Posted: 13 June 2007 at 12:38am | IP Logged
|
|
|
I have MailBee WebMail Pro
I need to make Arabic translation, is there any recommendation for that?
I need also to show the page layout from Right to Left in Arabic interface only
That can be made by adding simple code in <html> tag so it will be changed to:
<html dir="rtl">
But I need that in Arabic interface only
In other languages it must be <html> or <html dir="ltr">
So how can I add new variable in language code?
Thanks in advance.
|
Back to Top |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 13 June 2007 at 5:20am | IP Logged
|
|
|
All language dependent constants are moved into a single file language.inc.asp. You may add your own section with Arabic translation into that file.
Because MailBee WebMail Pro shipped with source code, you may easily change <html> to <html dir="rtl">.
Best regards,
Andrew
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 13 June 2007 at 6:24am | IP Logged
|
|
|
Actually, there is no need in rtl unless you need to get mirrored layout of the page (so that folder list would be on the right, for instance). Arabic text will be displayed correctly regardless if rtl is set or not.
If you, however, need to have <html dir=rtl> for arabic and <html> for other languages, you'll have to define new constant in language.inc.asp (such as strTextDirection, set it to "" and then redefine it to " dir=rtl" for arabic and then insert this constant in <html> declarations accross the code (such as <html<%=strTextDirection%>). Unfortunately, there is no single place where this should be done, so this would not be a quick and easy fix.
Regards,
Alex
|
Back to Top |
|
|
faisal Newbie
Joined: 13 June 2007 Location: Saudi Arabia
Online Status: Offline Posts: 31
|
Posted: 16 June 2007 at 7:08am | IP Logged
|
|
|
Thank you all for help
Can you add this in the next release?
I will have to do it this time, but as you say (this would not be a quick and easy fix)
So I may have to do it in every Version you release.
|
Back to Top |
|
|
faisal Newbie
Joined: 13 June 2007 Location: Saudi Arabia
Online Status: Offline Posts: 31
|
Posted: 16 June 2007 at 7:17am | IP Logged
|
|
|
Alex wrote:
Arabic text will be displayed correctly regardless if rtl is set or not.
|
|
|
No it will not
Even if make align to right there will be some bad layout
For example the final (dot) will be always in the beginning of the sentence
.Imagine this dot here in this English line, that if we use (rtl) for English
|
Back to Top |
|
|
faisal Newbie
Joined: 13 June 2007 Location: Saudi Arabia
Online Status: Offline Posts: 31
|
Posted: 17 June 2007 at 2:46am | IP Logged
|
|
|
OK
I finish about 50% of translation
added:
<option value="Arabic" <%If globalTxtDefaultLanguage = "Arabic" Then%> selected<%End If%>> Arabic
to functions_mailadm.inc.asp
and added:
<option <%If global_language = "Arabic" Then%> selected<%End If%> value="Arabic"> Arabic
to functions_user_settings.inc.asp
upload language.inc.asp to see my translation
But when I select Arabic it go back to English
what did I miss?
|
Back to Top |
|
|
faisal Newbie
Joined: 13 June 2007 Location: Saudi Arabia
Online Status: Offline Posts: 31
|
Posted: 17 June 2007 at 3:42am | IP Logged
|
|
|
Ok I got it
|
Back to Top |
|
|