This is a migrated thread and some comments may be shown as answers.

radeditor for foreign languages

3 Answers 146 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Diane
Top achievements
Rank 1
Diane asked on 03 May 2019, 03:03 AM

I support a C#.net  2012 web form application. I am thinking of adding the radeditor to the application so users can edit letters like a word document on the web. There will be letters that are to be written in several languages like Spanish, Arabic, French, English and a few other languages. When the application is running a 'generic' template letter will be loaded and the user can edit the letter in the various languages. Almost all the users will only know English and Spanish and they do not know the other languages.

Thus my few questions are about the foreign languages are:

1. Can the radeditor handle the different languages? If so, do I need to change any radeditor settings to handle these different languages? If so, what would I need to change?

2. Can the radeditor format date/time that is applicable for the languages? If so, what would I need to do to format the date/time information?

 

 

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 03 May 2019, 09:08 AM
Hello,

RadEditor is powerful enough to be used in any language you like: English, Bulgarian, Russian, Hindi, Vietnamese, Chinese, Japanese, Korean and so on. Its content area is a standard editable HTML div/iframe element and the encoding of the text  depends on the one of the page and the browser. 

The Insert Date and Insert Time tools are based on the Date JavaScript object and its toLocaleDateString and toLocaleTimeString methods:

case "InsertDate":
    var currentDate = new Date();
    value = " " + currentDate.toLocaleDateString();
    break;
case "InsertTime":
    var currentTime = new Date();
    value = " " + currentTime.toLocaleTimeString();
    break;
 
If you'd like you can override the returned information by the InsertDate and InsertTime commands via the OnClientPasteHtml event of RadEditor.

Best regards,
Rumen
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Diane
Top achievements
Rank 1
answered on 03 May 2019, 03:25 PM

How about if there is a problem with phone numbers, addresses, and/or anything else that relates to the a specific language?

How about if someone that knows the language wants to write come kind of a message in Arabic? Would the radeditor be able to handle that? Does any special coding and/or any special setting need to be setup in the radeditor? Is do, what coding and/or setting would need to be changed in the radeditor?

0
Rumen
Telerik team
answered on 07 May 2019, 02:37 PM
Hello,

RadEditor is just an entity which consumes the browser settings, meta tags, CSS styles and so on. Think of RadEditor as an editable iframe/div element, which is exactly its content area - you can control its rendering via the ContentAreaMode property:

<div contenteditable="true" style="border: 1px solid red; width: 500px; height: 300px;">HTML content</div>

The encoding of the iframe/div is controlled by the one of the browser. For example, you'll need to set the proper encoding in the aspx files with the editor. You can use the following encoding: <?xml version="1.0" encoding="utf-8" ?>, which will make the editor compatible with Western Europe languages, Cyrillic, Greek, Asian, Arab, Chinese, Japanese, etc characters.



Regards,
Rumen
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
General Discussions
Asked by
Diane
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Diane
Top achievements
Rank 1
Share this question
or