asp.net和阿拉伯语.语言切换时如何更改布局 [英] asp.net and arabic language. How to change the layout when language switches

查看:91
本文介绍了asp.net和阿拉伯语.语言切换时如何更改布局的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在开发一个asp.net应用程序,它是一个在线文章收集应用程序,允许用户上传和搜索文章.

该网站应支持两种语言,阿拉伯语和英语.
我开发了支持多种语言的网站,但是所有这些网站都是从左到右编写的.
这里是阿拉伯语的问题,因为它是从右到左书写的.

用户应该可以选择将语言从阿拉伯语切换为英语,反之亦然,布局也应从右向左更改,反之亦然.

为了解决上述问题,我尝试了以下步骤.

1-我创建了两个主题,一个主题为英语,一个主题为阿拉伯语.当用户选择阿拉伯语时,我将应用RTL(arabic)主题,如果它是英语,则相反.

如何动态更改布局?

正如我们在google中看到的那样,整个页面和控件应从右到左.

这是一种可靠的方法吗?我没有足够的信心继续执行上述方法并遇到一些问题.
有人对此有任何建议吗?

对不起,我的英语不好..

任何答复都将被接受..

谢谢...

Hi All,

I am developing an asp.net application which is an online article collection application which allows the users to upload and search for articles.

The website should support two langauges, Arabic and English.
I have developed websites which supports multiple languages but all those were Left to Right written.
Here the problem is with Arabic as it is written from Right to Left.

The user should have an option to switch language from Arabic to English and vice versa, along with that the layout also should change from right to left style and vice versa.

To solve the above issue I have tried these steps.

1- I have created two themes one for English and one for Arabic. And when the user select arabic, I will apply RTL(arabic) theme and if it is English I do the opposite.

How can we change the layout dynamically?

As we can see in google, the entire page and controls should be from RIGHT TO LEFT.

Is it a reliable method? I am not enough confident to go ahead with the above method and facing some probles.
Anybody have any suggestions on this??

Sorry for my Bad English..

Any reply will be accepted..

Thanks...

推荐答案

您可以看到这里 [^ ] .Net 3.0及更高版本具有双向支持.因此,如果您使用的是3.0或更高版本,则应该没问题.
As you can see here[^] .Net 3.0 and above have bidirectional support. Thus if you are using 3.0 or above, you should be ok.


这篇关于asp.net和阿拉伯语.语言切换时如何更改布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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