如何实现多语言文本编辑器。 [英] How to implement a multilanguage text editor.

查看:271
本文介绍了如何实现多语言文本编辑器。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个需要多语言文本编辑器的项目(例如下载列表,其中包含英语,西班牙语等语言),就像我们在google blogger中看到的那样,所以如何获取这些API,我已经搜索了很多但是找不到它,请提供API。

(多语言文本编辑器只用于编写多种语言的文本,如英语,印地语,西班牙语,法语等...)请注意,我想在我的网站上使用多语言功能。



我尝试了什么:



我搜索了几乎整个互联网(在谷歌开发者代码中搜索,在jQuery网站上搜索多语言编辑器的文件源)但未能获得它的API。

I am working on a project which requires multi-languages text editor(e.g drop down list having languages like english,spanish,etc),like we see in google blogger, so how to get these API,I have searched a lot but couldnt find it ,kindly provide the API.
(Multi-language text editor is just used to write text in multiple languages as like english,hindi,spanish,french etc...) kindl note that i do not want multilingual features in my web site.

What I have tried:

I have searched on almost whole of internet (searched in google developer code,searched in jQuery website for source of file for multilanguage editor) but failed to get its API.

推荐答案

使用本地化& ASP.NET的全球化概念。

例如 - 按照以下链接



ASP.Net多语言网站:在ASP.Net中支持和显示多种语言(英语法语) [ ^ ]



C#Corner:错误显示 [ ^ ]



问候,

AARIF SHAIKH
Use Localization & Globalization concept of ASP.NET.
for example- follow below links

ASP.Net Multilingual website: Support and display Multiple Languages (English French) in ASP.Net[^]

C# Corner : Error Display[^]

Regards,
AARIF SHAIKH


根据定义,绝对任何用ASP.NET实现的编辑器都是多语言。同样代表HTML + JavaScript编辑器,同样代表任何.NET应用程序。



你真的不需要下载有语言的列表,因为你可以同时用多种语言写作;你甚至可以将任何语言甚至不同的书写系统组合在同一个字符串中。



也许你需要不同的东西:以不同的语言呈现你的UI,例如菜单等元素,通知区域等。但这个问题很容易(我重复:很容易,但对于熟悉所有目标语言的人或这样的人的团队)使用.NET和ASP.NET 全球化和本地化技术:

ASP.NET全球化和本地化 [ ^ ] ,

ASP.NET全球化架构 [ ^ ]。



还有一个方面:拼写检查和可能的语法检查。这取决于您要使用的技术,词典和语法数据库。通常,除了简单的拼写检查外,这是一个难题。对于ASP.NET,我最好的建议是:不要这样做。所有合理的Web浏览器都有一些嵌入式拼写检查程序;只是不要阻止浏览器使用它们。这个解决方案不是很完美,但它可以让你免于困难的工作。



我只是不知道你还需要什么帮助。如果您不知道如何创建编辑器本身,那么在您学习一些适当级别的编程之前,没有 Quick Answers 可以帮助您。我希望这不是你的问题,所以我只专注于多语言方面。



-SA
Absolutely any editor implemented with ASP.NET will be multilanguage, by definition. The same stands for HTML + JavaScript editor, the same stands for any .NET application.

You don't really need to "drop down list having languages", because you can write in many languages at the same time; you can even combine any languaes and even different writing systems in the same string.

Perhaps you need something different: to present your UI in different languages, such elements as menus, notification areas, etc. But this problem is easily (I repeat: easily, but for a person familiar with all the target languages or a team of such people) is solved using .NET and ASP.NET globalization and localization technology:
ASP.NET Globalization and Localization[^],
Globalization Architecture for ASP.NET[^].

There is one more aspect of it: spell check and possibly grammar check. It depends on what technology, dictionaries and grammar databases you want to use. Generally, it is a difficule problem, except simple spell check. For ASP.NET, my best advice would be: don't do it at all. All reasonable Web browsers have some embedded spell checkers; just don't prevent browsers from using them. This solution won't be really perfect, but it will save you from hell of difficult work.

I just don't know what else would you possibly need for help. If, by any chance, you just don't know how to create the editor itself, no Quick Answers could help you before you learn some programming to an adequate level. I hope it wasn't your question, so I focused only on "multilanguage" aspects.

—SA


这篇关于如何实现多语言文本编辑器。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆