Drupal view - show translated content and language neutral in same view - drupal

Is there a way to configure a View to show the current language of a node if it exists alongside all language neutral nodes?
Basically, I have a list of press releases. Only some of them are going to be translated. When I am in the Japanese version of the site, I'd like the Japanese press releases to show if present, otherwise show English.

Sorted it out by adding a Filter to the node for Node translation. Set the filter options to Current language and No language.

Related

How do I serve the same language regardless of the selected one in Wordpress?

My client had me set up a language picker on his Wordpress website to let visitors choose where they come from (UK, US, France, Switzerland). Now he wants the content to be served in French no matter what language the visitor picks, with a content slightly different.
Example : if the visitor picks UK, then the page has to be in French with UK specific content (like some different texts).
I've set up WPML and added the countries to the language picker.
I've then duplicated the pages to have the same content no matter what language is picked, and that seems to work ok. The problem is, that built-in stuff like log-in buttons, account, etc are displayed in the selected language.
How should I proceed ?
I thought of "breaking" the existing translations and manually replace localized built in translations by the French equivalent, but that sounds like a tedious task.

Drupal 7 - multilingual comments

I have a multilingual Drupal 7 site with i18n and Entity translation enabled. Node fields translation works perfectly, but there is something wrong with comments.
I enabled translation of comment body field. The problem is that comments are only displayed on native language version of the node . When I switch to foreign language, the node fields are translated, but comments are not shown at all (even those, which language matches the foreign language). I checked 'comment' table and it seems to be okay, the language field is populated.
Why are comments hidden on translated versions of nodes? Anyone has a clue?
Thanks for help!
This worked for me:
admin/config/regional/i18n/select
And uncheck the "Content to filter by language" options.

Drupal pages translated, but both translated and untranslated pages showing up on view

I recently started working on adding translation to my Drupal 6 site.
I am using the modules
1)Translation Manager
2)i18n
3)Language Switcher Dropdown
It seemed pretty straight forward to me.
I read the multilingual drupal guide
http://drupal-translation.com/content/setup-multilingual-site
I sent all my content type/strings to one of my translators (using local translators).
My translator translated one of our pages for a certain content type, and finished the translation.
The only problem is that the content type she translated has both the english and the translated version showing up on the same page.
Here is the page
http://caribbeanenvirolaw.org/ngos
The duplicated page is "Jamaica Environment Trust (JET)
I notice when I go to the french JET page the Language dropbox shows "Francais",
and when I go to the english JET page the language dropbox shows "English".
I would like the french translated pages to only show up if the language select box
shows French, and have the English pages be the only ones that show up if the language selectbox is set to English.
The NGO page that is showing both french/english JET pages is a view, but I couldn't
find anything in the views section regarding translation and only showing the current languages pages.
Little help?
***Update****
The page in the picture is a drupal "view". The content type "Belize - ....."
is in English, and has been translated to spanish/french. Those spanish and french
translations show up as separate content type's on the drupal page (the view).
Since the language dropbox is set to "English" you would think that it would hide the spanish/french versions, but it is not.
For each of the "Belize - ...." content types (english, french, spanish), I tried multiple configurations to get drupal to leave out language content that is not for the language currently selected.
In the last image you see I'm setting the url to be "belize".
I used this same value for each of the translated contents.
Scrolling over the links for each translated "Belize - ...." content shows
1)English url = caribbeanenvirolaw.org/belize
2)Spanish url = caribbeanenvirolaw.org/es/belize
3)French url = caribbeanenvirolaw.org/fr/belize
When I open, for example the spanish translation of belize page from the view,
I see
Notice that the language dropbox now say Espanol, meaning it is recognizing that it is a spanish page, but still it shows the spanish/french translations (as well as english) on the view (first image) no matter what the Languages dropbox has selected.
Keep in mind that I have also tried to not edit the url path's manually (leaving them blank). I get the same results from doing it that way too.
found the answer.
The view needs to have the correct filter added to it.
Go to Adminstration->views
Click the plus button next to the Filters section.
You will then see a list of filters pop up.
Find "Node Translation: Language. Add it.
You will then see a section that asks what you want to do with the filter.
Choose "Is One Of: Current User's Language"
That is it. Your views should now NOT contain multiple translations of the same document.

Drupal 7.18 : Avoiding duplicated contents caused by using multilanguages?

I have a project with Drupal.
I'm using Drupal 7.18.
I created a taxonomy called "Popularity" which has 3 elements: Popular,New,Most Rated.
I added a second language to drupal,
I translated my taxonomy into the second language. For ex,it is "Turkish".
I created a Content which has field related to that taxonomy. Let's say it is "C Programming".
I choosed "New" taxonomy item in related field.
After that, I translated the content that I have just created into Turkish,
now I have two contents, but they are translated form of each other.
Anyway then, the name "New" in English content turned to "Yeni" in Turkish content.My question is, when I create a view which shows "New" or "Yeni" Contents, I see two contents in table, but I want to see only the content which has same language with the current language of website.
Add a Content: Language filter to your view, set to Current user's language.

Drupal: multilanguage.. looking for the right module to build multiple versions of the node

I have a multi-language website.
I want a module to add multiple version of my nodes and selecting the right one for each language of my website.
In other terms, for each node, I want to have more versions, a version for each language. I don't want to create new nodes, in order to avoid confusion for my customer.
I want to be able to fill the content for each language version of the same node.
If I'm not wrong, the core module Content Translation allows me to select for each node to which language interface belongs to, which is not what I want.
I saw the internationalization module, and it is good for translating taxonomy terms, and blocks, but it doesn't provide the functionality I want (multiple versions of each node).
thanks
Drupal.org has a lot of documentation related to multilingual sites.
http://drupal.org/node/324602
You may find that the Internationalization module will help you out. See this tutorial on setting up multilingual site using the Internationalization module.
#Patrick: CCK Translation makes it possible to have the labels and description of your CCK fields translated to different languages. The content that's stored inside those fields gets translated for the entire node, including all its fields using i18n module.
Hey! Thanks for reading my tutorial.
To properly translate CCK labels:
1 - activate CCK Translation module
2 - write the labels for your CCK fields in english
3 - Go to the "create new node" page. You're doing this to force Drupal to use the labels you just created. Visit the "create node" page in all your languages, so you force Drupal to try to show you the label in all the languages you have configured.
I know, this step is weird.
4 - Go to Admin -> Translate Interface (/admin/build/translate). Click on "search". Search your label in english, you'll see it appears several times, but marked as untranslated. Click on 'edit' for every string and translate them.
A bit clunky, but it works.

Resources