FAQ module is not working with in multi languages. Its works in english, I have added translation but it shows blank page in other then english language.

how to fix this problem.

CommentFileSizeAuthor
#7 faq_desc_178699.patch844 bytesstella
#5 faq_178699.patch3.27 KBstella

Comments

stella’s picture

Assigned: Unassigned » stella
Status: Active » Fixed

Enable the "locale" module and the i18n (aka internationalization) module. You may also need "i18n - taxonomy" if you're using categories.

I would suggest on the Administration >> Site Configuration >> Multilingual System (admin/settings/i18n) page, ensure that under the Advanced Settings the "Content Selection Mode" is set to "Only current language and no language". It depends on how you want your site to work though really. All options are supported by the faq module.

At Administration >> Site Configuration >> Localization (admin/settings/locale), ensure all your languages are enabled. Let's say, for example purposes, that you were having a bi-lingual site with English and French. You would ensure that both of these languages were enabled.

Then create a new faq node (node/add/faq). When creating the node, you should be able to select the language that the node is written in, e.g. English. Then save and publish your node. It should now appear on your faq page when looking at the site with English as your language. If looked at the faq page with French set, then you won't see it there at all.

Go back to the English node you created. Beside the "View" and "Edit" tabs, you should see a "Translation" tab too. Click on that. This tab will allow you to see which languages the node has (or has not) been translated into. Click on the language that you wish to create a translation for. It will bring up a new create node page which will be pre-filled with the English translation. Just change all of the text in the title and body fields to their French equivalents, then save and publish. Now, when viewing the French version of the faq page (fr/faq) you should see the French translation of that node. Switching back to English allows you to see the English faq (en/faq).

You don't use the "Manage Strings" tab on the Localization admin page to translate nodes. The method I've described above should work for all node types, not just the faq nodes.

Cheers,
Stella

aliawan’s picture

I did the same it works fine for English, but shows blank page for other like nl, fr. even I have added translations for all FAQs. May you tell me where can be the problem?

thanks,

stella’s picture

I can't really help any more without more information. Are you using categories? If so, does it work when you disable the categories? What are the versions of locale and i18n modules you're using? When viewing the English faq node and you switch to French, does the node then appear in French?

Stella

aliawan’s picture

I did re-enter contents of faqs after adding & translating categories and now it works fine for other languages. The problems that I am facing are
1.) It shows heading(Frequently Asked Questions) only in english. how to change it for other languags
2.) more link is not display even teaser is checked. how to fix/configure that more link issue?

Thanks very much,

stella’s picture

StatusFileSize
new3.27 KB

Translating the page title - go to the Localization admin page (admin/settings/locale) and click on the "Manage Strings" tab. Enter in the string you wish to translate, e.g. "Frequently Asked Questions" and click on the search button. It should bring up a few matching results. Click on the "edit" link for the returned string that matches it exactly and enter in your translation(s). It should then take affect on your faq page.

However, I think there was a bug in translating the faq page title if you had changed it from the default English text, so I've attached a patch that should fix this issue. You may need to flush your cache, re-index your site or reload your faq page before trying to translate the string. I've noticed it doesn't always appear immediately in the string search results.

Teaser - first of all, I guess you need to check that you have "more link" text configured on the faq questions admin page (along with translations of this string - use same method as for page header). If the "more link" text is blank, then no more link will be displayed. You should also check the settings for the length of the teaser text on admin/content/node-settings. If your text is shorter than this setting, then it won't be truncated and so no "more" link will be displayed.

If you're still having problems, then you will need to tell me what question layout you're using, and what your category layout setting too if using categories, so I can test here. It might also be a good idea to also tell me your teaser length setting and possibly send me the node text (can do this thru my contact form if u prefer). Or if this is a live site, just send me a URL.

Cheers,
Stella

aliawan’s picture

In fact I am displaying description of one line on top of FAQ page, so I need that description line to be translated in other languages.

have you any idea to solve this problem?

Thanks,

stella’s picture

StatusFileSize
new844 bytes

Here's another patch which should fix it. You will need to apply both patches and then use the method I described previously.

Cheers,
Stella

Anonymous’s picture

Status: Fixed » Closed (fixed)
stella’s picture

Released in faq 5.x-2.5.

Cheers,
Stella

jmontoya’s picture

this bug is still present in version 6.x-1.12

to fix the faq page title you have to replace in faq.module +394

drupal_set_title(check_plain(variable_get('faq_title', 'Frequently Asked Questions')));

with

drupal_set_title(t(check_plain(variable_get('faq_title', 'Frequently Asked Questions'))));

dan_metille’s picture

Version: 5.x-2.4 » 7.x-1.x-dev
Status: Closed (fixed) » Active

Same with the 7.x-1.x-dev version but the #10 fix do not apply.
Any hint about how to make this module fully multilingual?

Rustan’s picture

Version: 7.x-1.x-dev » 5.x-2.4
Status: Active » Closed (fixed)

Please open a new issue instead.