Drupal 7国际化/多语言:如果文章翻译错误,重定向到默认语言 [英] Drupal 7 Internationalization / Multi language : redirect to default language if translation missing for article

查看:203
本文介绍了Drupal 7国际化/多语言:如果文章翻译错误,重定向到默认语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Drupal 7国际化的新手,这里正是我想要做的。

I'm new to the Internationalization for Drupal 7 and here is what I'm trying to do.

我的网站有3种语言。英文,法文和荷兰文。我想要的是当一篇文章没有用特定的语言翻译,看到文章的英文版本。

Let's say i have 3 languages for my site. English, French and Dutch. What I want is when an article is not translated in a specific language, to see the English version of the article.

我可以用英文写我的文章,然后使用中文语言,以确保文章以每种语言出现,但后来我无法用法语或荷兰语翻译文章。

I could write my article in English, then use the neutral language to make sure the article appears in every language, but then I can't translate the article in just French or just Dutch.

示例:
I创建了一篇英文文章。
我翻译成法语。
我没有用荷兰语翻译,但我仍然希望文章的英文版本出现在该网站的荷兰语版本。

Example: I created an article in English. I translated it in French. I haven't translated it in Dutch, but I still want the English version of the article to appear in the Dutch version of the site.

如果有人有任何想法我会很感激。

If anyone has any idea I'd be grateful.

推荐答案

我正在使用选择翻译模块上述问题。
您可以在 https://drupal.org/node/1098708 找到模块。

I am using Select translation module for the above issue. you can find module at https://drupal.org/node/1098708.

在视图中添加过滤器:选择翻译
在选择翻译选择模式
使用当前语言;如果不可用使用默认语言;如果不能使用原始语言。

in views add filter : Select translation In Select translation selection mode Use current language ; if not available use default language ; if not available use original language.

这篇关于Drupal 7国际化/多语言:如果文章翻译错误,重定向到默认语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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