Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsLanguage PacksLanguage PacksLocalization for RTL languagesLocalization for RTL languages
Previous
 
Next
New Post
7/29/2005 7:03 AM
 

So, I'm the first to pickup Vicenç's invitation and make it here?

Anyway, I'd like to open for discussion the issue of lacking support for RTL languages (languages written from right-to-left, such as Arabic and Hebrew) - Currently DNN has no features to assist in proper localization of RTL strings/content and users need to resort to all sorts of tricks to get such content displayed correctly.

The way to get RTL content displayed correctly on an HTML page, is by using the "direction:rtl" CSS style rule on the containing element - this horizontally flips all of the element's content (including the ordering of table cells, etc.). the style is inherited by all containing elements, so only the top most element concerns us. of course, special care must be taken in cases where we have mixed RTL and LTR content or other special cases such as having tables which we don't want to flip, so it's not enough to just plaster "direction:rtl" on each tab.

I think perhaps a text-direction property should be added to the languages section of DNN, so that it would be possible to assign the writing direction of each language. Afterwards, we could use this property to conditionally assign CSS classes/style rules to have content properly displayed based on the selected language. Core user interface elements should include this conditional assignment of RTL styles.

Another area which requires special support for RTL languages is that of email notifications - emails need to be sent out in HTML, and there should be a way to mark the outgoing HTML as RTL. In addition to this, currently emails use the hosting machine's default language for encoding, which results in the recipient getting garbled characters in cases where a foreign language site is hosted on a machine with English as the default language (this issue affects all languages using special characters, not just RTL).

Well, that's all for now. I'll add anything else that comes to mind. If there are any other users of RTL languages with similar problems, please feel free to add your suggestions for possible solutions.

Opher.

 

 
New Post
7/30/2005 2:34 AM
 
Opher wrote

The way to get RTL content displayed correctly on an HTML page, is by using the "direction:rtl" CSS style rule on the containing element - this horizontally flips all of the element's content (including the ordering of table cells, etc.). the style is inherited by all containing elements, so only the top most element concerns us. of course, special care must be taken in cases where we have mixed RTL and LTR content or other special cases such as having tables which we don't want to flip, so it's not enough to just plaster "direction:rtl" on each tab.

I think the better way would be to add the style to the top most container (BODY?) and let all child elements inherit the style. Then for any given place where you need a different approach you could manually add the opposite style. I think this should cover the most common cases with a not so difficult implementation.

I think perhaps a text-direction property should be added to the languages section of DNN, so that it would be possible to assign the writing direction of each language. Afterwards, we could use this property to conditionally assign CSS classes/style rules to have content properly displayed based on the selected language. Core user interface elements should include this conditional assignment of RTL styles.

Yes, I think this is good idea. I also was thinking on the same line. A new option to the language definition that would allow you to define if a given locale is RTL.

Another area which requires special support for RTL languages is that of email notifications - emails need to be sent out in HTML, and there should be a way to mark the outgoing HTML as RTL. In addition to this, currently emails use the hosting machine's default language for encoding, which results in the recipient getting garbled characters in cases where a foreign language site is hosted on a machine with English as the default language (this issue affects all languages using special characters, not just RTL). 

This part needs a bit of attention, since I think there some logged issues currently regarding this area. With single person emails this is not that difficult, the problem is when you're emailing to people in a role. Then this will need a bit more processing since each person would need a different source for the mail. On the encoding, could you provide some examples of this behaviour, I think I know what you mean, but I've never experienced this. What would be the best solution in this case?


Vicenç Masanas
Banyoles, Girona - Spain

Disgrafic.com    PSD to DNN
 
New Post
8/5/2005 4:07 AM
 
vmasanas wrote

This part needs a bit of attention, since I think there some logged issues currently regarding this area. With single person emails this is not that difficult, the problem is when you're emailing to people in a role. Then this will need a bit more processing since each person would need a different source for the mail. On the encoding, could you provide some examples of this behaviour, I think I know what you mean, but I've never experienced this. What would be the best solution in this case?

The easiest solution would be to allow the admin to select the required encoding for the email (either by selecting one of the defined locales within DNN or by using the encoding setting in the web.config). Currently emails are encoded based on the server default language, and this is bad, since alot of localized sites are being hosted with North-American service providers.

 
New Post
12/15/2005 4:30 AM
 

Hi everybody,

    I'm trying to enhance DotNetNuke to support all aspects of Farsi (another right to left language!). There are at least two issues I couldn't find a proper (and automated) solution for them:

1- FTB (the html editor in dnn) doesn't support text alignment tag, and it's default text orientation is left-to-right. Besides, there should be some Paragraph Direction buttons in the toolbar (like MS-Word). I couldn't find a free replacement that supports the feartures (Cute Edit does, but it's not free and expensive!).

2- Date localization: I couldn't find a way to automatically change date components to use Jalali (Shamsi) calendar which is the one used in Iran. All the code uses DateTime instead of Calendar to convert between text and datetime values, so I couldn't find any proper method to automate the change process (by changing the Calendar of the thread, or other ways).

I'd be vary thankful if you provide me with some information to do these tasks.

Regards,
Farzad Khandan


Farzad Khandan
CEO
D.P. Simiagaran
---------------------------------
Happiness is made by you,
not the world around you...
 
New Post
1/4/2006 4:05 AM
 

Hi,

The best way (and most flexible) is to enable RTL LTR selection in FTB.
the issue is that I didn't find the way to do it yet.

in additional to that you should be able to control the direction of the container body from the Module Setting
currently I changed the container body direction (to RTL) in the css of specific containers that I use for RTL,

but this is not enough since the FTB is not effected and though the display IS RTL the editing is LTR, that make the editing very difficult (specially when tables involved) unless you add <div dir=rtl> in the HTML tab.

If FTB will support RTL LTR selection, and you'll be able to control container body from the setting screen (and not from css) the only issue that will remain is menu direction - which is minor.

Dan

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsLanguage PacksLanguage PacksLocalization for RTL languagesLocalization for RTL languages


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out