如何动态地将英语转换为阿拉伯语
我有一个英语网站..现在我想要阿拉伯语网站。那么谁能告诉我有没有一种方法可以将整个网站转换为阿拉伯语......而不用阿拉伯语编写整个内容??? 我想用英语动态编写,并希望如果用户单击例如阿拉伯语版本的网站按钮,它会自动转换。 问候
I have a web in English .. now I want it in arabic. So can any one tell me is there any way to convert whole site into Arabic ... without writting the whole contents in Arabic ???
I want to write dynamically in English and want it to automatically convert if user click on, for example, arabic version of site button ..
regards
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
没有合适的人类可读的文学自动翻译的方法。谷歌翻译已经尽力了,但是,如果您不想让阿拉伯语访问者嘲笑丑陋的翻译,您最好手动翻译所有内容,因此,创建整个网站的阿拉伯语版本。 GNU GetText 会很有帮助。如果您仍需要自动翻译,可以使用 Google Translate API
There is no way of appropriate human-readable literary automatic translation. Google Translate does its best, but still, if you don't want your Arabic-speaking visitors to laugh on ugly translation, you'd better translate everything manually and so, create Arabic version ofa whole website. GNU GetText would be helpful. In case if you still want an automatic translation, you can use Google Translate API
这是可以做到的,但没有什么可以取代由专业人士或您自己对内容进行实际、善意的翻译(如果您精通两种语言)。
作为临时解决方案,您可以做的是:动态地将“dir = rtl”属性附加到您的html标签(或任何包含要翻译的文本的标签),然后以某种方式重定向到该页面的谷歌翻译版本。但我个人强烈建议不要这样做。谷歌翻译简直太糟糕了,你不希望你的内容让你的用户望而却步,或者更糟糕的是,如果翻译失败,会冒犯他们......
It can be done, but nothing will replace an actual, bona fide translation of the content done by a professional, or yourself if you are fluent in both languages.
What you could do as a makeshift solution is this : dynamically append a "dir=rtl" attribute to your html tag (or whatever tag containing text to be translated) and then somehow redirect to a google translated version of that page. But I would personally strongly advise against doing this. The google translation is simply terrible, and you don't want your content to put off your users, or even worse offend them in case of a misfire in the translation...
我认为针对您的情况最好的方法是使用谷歌翻译。 此处了解相关内容
I think the best way in your case is to use Google Translate. Read about it here
PHP 让开发者的生活变得轻松,详细阅读I18N_Arabic
PHP make developer's life easy, read it in detail I18N_Arabic