Search The ForumSearch   RegisterRegister  LoginLogin

General Issues

 AfterLogic Forum : General Issues
Subject Topic: translate? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
faisal
Newbie
Newbie


Joined: 13 June 2007
Location: Saudi Arabia
Online Status: Offline
Posts: 31
Posted: 13 June 2007 at 12:38am | IP Logged Quote faisal

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 View faisal's Profile Search for other posts by faisal
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 13 June 2007 at 5:20am | IP Logged Quote Andrew

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 View Andrew's Profile Search for other posts by Andrew
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 13 June 2007 at 6:24am | IP Logged Quote Alex

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 View Alex's Profile Search for other posts by Alex
 
faisal
Newbie
Newbie


Joined: 13 June 2007
Location: Saudi Arabia
Online Status: Offline
Posts: 31
Posted: 16 June 2007 at 7:08am | IP Logged Quote faisal

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 View faisal's Profile Search for other posts by faisal
 
faisal
Newbie
Newbie


Joined: 13 June 2007
Location: Saudi Arabia
Online Status: Offline
Posts: 31
Posted: 16 June 2007 at 7:17am | IP Logged Quote faisal

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 View faisal's Profile Search for other posts by faisal
 
faisal
Newbie
Newbie


Joined: 13 June 2007
Location: Saudi Arabia
Online Status: Offline
Posts: 31
Posted: 17 June 2007 at 2:46am | IP Logged Quote faisal

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 View faisal's Profile Search for other posts by faisal
 
faisal
Newbie
Newbie


Joined: 13 June 2007
Location: Saudi Arabia
Online Status: Offline
Posts: 31
Posted: 17 June 2007 at 3:42am | IP Logged Quote faisal

Ok I got it
Back to Top View faisal's Profile Search for other posts by faisal
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide