Closed (fixed)
Project:
Frequently Asked Questions
Version:
5.x-2.4
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
26 Sep 2007 at 07:44 UTC
Updated:
4 Sep 2013 at 08:29 UTC
Jump to comment: Most recent file
Comments
Comment #1
stella commentedEnable 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
Comment #2
aliawan commentedI 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,
Comment #3
stella commentedI 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
Comment #4
aliawan commentedI 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,
Comment #5
stella commentedTranslating 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
Comment #6
aliawan commentedIn 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,
Comment #7
stella commentedHere's another patch which should fix it. You will need to apply both patches and then use the method I described previously.
Cheers,
Stella
Comment #8
(not verified) commentedComment #9
stella commentedReleased in faq 5.x-2.5.
Cheers,
Stella
Comment #10
jmontoya commentedthis 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'))));Comment #11
dan_metille commentedSame 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?
Comment #12
Rustan commentedPlease open a new issue instead.