Drupal 7 - multilingual comments - drupal

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.

Related

PODS With Polylang, translations are being duplicated / synchronised when translating a post

So, I’m using custom post types, all in PODS, and Polylang for translations. The thing is, when I try to translate one of the posts, all the content on the original post type is duplicated to the translated version.
For example, I have a field game title in the custom post type. The english version is “Great game”, then I translate it with the + of polylang, and add Buen juego for the spanish language. When I check back the english version, the english text changed back to Buen juego instead of remaining the original text.
I have solved it in:
Languages > Settings > Synchronization > Disable custom fields check
Answering my own question since the only help I found was on Slack support channel which won't be documented for posterity.
Basically Polylang has a Synchronisation setting, when it's turned on it synchronises the meta data of posts, but since PODS uses that data for the actual PODS system, Polylang will synchronize all the translations constantly.
Just disable that option if you're having this problem :)
All Pods fields (and most field UI plugins) store the data in the meta table. So if you set them to synchronize it will constantly overwrite each other.
There is no option (yet) to select which metafields to sync in Polylang

Filter posts according to language WP Globus plugin

I am using WP Globus plugin for my WordPress website. I am using two languages now English and Japanese. When I switch the language to Japanese it shows the Japanese and English posts. I want to filter them means when I switch to Japanese only Japanese posts should be show there and English posts should be skip. Please help me.
Thanks in Advance.
WPGlobus is designed to have the same post translated into several languages, not to have posts in English only and other posts - in Japanese only. By default, the post itself does not have any indication of the language it's written in.
There is a premium add-on, called WPGlobus Plus. It has many useful functions, and one of them is to mark the language in which the post is written. Technically, it adds post metas with the values "true" or "false" for each language. Visually, in admin, it looks like marking one language as "published" and other(s) as "draft". Then, WPGlobus Plus knows how to filter the loops to show only the "published" languages. Having that, you can see only EN posts when the language is "en" and only JP posts when the language is "jp". And, of course, those posts that have both languages will be shown always.
Hope, this helps.
you could try using the get_locale() hook to try and get the current language of the site. I'm not sure though if it will detect the language set by the plugin you're using.

Drupal 6 translation - Body, Title built-in interface

I use i18n and I10n_client to translate English to Dutch in my web page, however some interface variables are not changing.
I searched 'Body' and tried to replace it with its Dutch word, but it doesn't take effect no matter what I do
http://imageshack.us/photo/my-images/831/searchbody1.png/
and
http://imageshack.us/photo/my-images/576/searchbody2.png
How can I change this type of built in interfaces? I can't change "Title" as well :(
you can download the translation file from
http://localize.drupal.org/
and import it in site_name/admin/build/translate/import
I hope it will help
Dutch is enough for me so I change the problematic labels to Dutch directly in the Edit content type form (go to Admin -> Content -> Content types, select edit for the one you want to change).
By setting a Title and Body label in the "Submission form settings" fieldset.
There is a bug report open for this, see http://drupal.org/node/1016006
I had the same problem with a german/chinese/english site. This is what helped for me
A very helpfull module is translation table. A perfect
table to do mass translation of
content types, cck taxonomy and menus
Goto /admin/build/translate/refresh
to recreate missing strings

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

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.

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