I have a multi-language website where I have several views, the views publish the nodes in all languages. I want only the nodes of the language in which you are consulting the web to come out.
I have added two filters:
Default translation -> true
Translation language -> Interface text language selected for page
But it doesn't work.
Add a filter criteria "Default translation" -> true
In the section Language select "Interface text language selected for page"
Related
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.
I am newer in drupal , I am trying to create a content type with multi lingual support . I have the modules and which translate all the things in my site . But when I am trying to translate the content type from admin , there is no dropdown menu for language selection .
First of all you need to have enabled some 'multi lingual modules'
like locale,content translation , languages and set up their options .
For example you need to configure the languages you'll be using here :
admin/config/regional/language
and set up the extra language settings e.g path here admin/config/regional/language/configure
then you need to go to admin/structure/types/manage/[my-content-type] or if you want the page content type to be translated (default drupal's content type) go here admin/structure/types/manage/page ( page is your current content type )
and click at the 'Publishing Options' Tab and select Multilingual support -> Enabled, with translation.
After this you'll see next to every page-node display the new 'translation tab'
Then you need to download this life savior module :)
http://drupal.org/project/i18n
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.
I just enabled the translation module and the i18n module. One of my content types has a node reference field, and after translating the page, the node reference dropdown is empty. It works fine for English (default lang) but no other languages.
nodereference will only refer to nodes of the same language. You must create nodes in the other languages in order to make them accessible to your field.
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.