Hi,
I'm not sure if I'm posting this in the correct section, but I posed a similar question on the main drupal forum and received no replies on the subject, so i'm hoping someone can assist me here if possible.
The aims on my site was to create a multilingual forum using drupal 5 (i'm using 5 because of other modules I need for my project). However I soon realised (i'm very new to drupal!) that by doing this through the i18n Module, that when I was translating the forums and containers I was in effect creating other duplicate forums but translated to other languages. This wasn't my aim.
What I'm trying to do is create just a single forum, but one that will translate just the interface. Not the drupal user interface, that's already been done by the module, I just mean the information I submitted when creating my forums and containers, so that when users click the language switcher into their native language, the forums themselves will switch into their language. This way all users will be able to post quick and simple messages in a single forum. I'm using the Google AJAX language API to translate the forum comments, which will just be simple messages.
I did try using the manage strings options where some of the forums appear, but even after applying the translations to them, they appear unchanged.
Is there some way I can accomplish what I'm trying to do?
Thanks in advance for any help on this.
Ed
Comments
URL?
Hello Ed,
Can you give an URL so one can see your problem in action? I don't quite understand what you are trying to achieve.
Thanks!
Frank
Frank
My LinkedIn profile
Re:Multilingual forums
Hi, thanks for responding :)
Well the site is still a good distance away from being live, and at the moment in maintenance mode.
But simply put, I created an English forum, then went to categories>terms to translate the vocabulary. Then checked that the forum vocabularies were enabled for translation through the multilingual system. Basically following the procedure as shown in the documentation pages for the i18n module. From here I went to advance settings and set it to current language and no language. Everything works fine and the forums switched when I click the language switcher. However I realised that what I effectively was doing was making two forums, one for English, the other German, and the English posts didn't appear in the German forum and vice-versa.
I've attached a few pics so you can see what I mean
This isn't my aim as I just want the forums interface to change with the language switcher, but enable both countries to participate in the one forum. I don't want separate forums for both countries. The comments which would be brief would be translatable using Googles Language API. So both countries then would be able to participate in a singular forum, only the forums interface would be translating when the language switcher was clicked in either language, but the posts remain.
I do realise that the forum vocabularies are by definition, "user defined strings" so wont be translatable using the manage strings option in the way I want, but is there a way I can achieve this?
I'm also very much a drupal newbie and If I've missed some simple setting or a way to do this I apologise in advance, but I've scoured drupal and there seems very little info on this.
Ed
Don't know much about Drupal 5
I'm sorry but I don't know much about internationalization in D5. Much of that functionality has moved to core modules in D6.
I suppose you have already read Internationalization (i18n): Building multilingual sites (http://drupal.org/node/133977).
There's a review which recommends using the Localizer module (http://drupal.org/project/localizer) instead of i18n (http://drupalmodules.com/module/internationalization?#reviews).
HTH
Frank
Frank
My LinkedIn profile
Try overriding theme_forum_list
Hi
If I understood you correctly try theme_forum_list look at http://api.drupal.org/api/function/theme_forum_list/5
& use t() when needed , for example
filter_xss_admin(t($forum->description))and translate your forum description via locale string translate interface
==================
this is another related issue http://groups.drupal.org/node/12045
Thanks a lot guys!
Thank you avior :)
I looked into the code closer and found what I needed exactly where you suggested it would be. I also found that wrapping the t function around $vocabulary->name in the function, theme_forum_display allowed the name "Forum" to be localized as well. I was literally tearing my hair out trying to find out how to do this, so thanks so much for pointing me in the right direction :)
Frank,
Thanks for taking time out to reply, it's appreciated. I read the review though on drupalmodules.com and all I can say is (speaking as a newbie on a huge drupal learning curve!) that it must be down to what additional modules some people run, or a faulty install ,or what i18n may or may not be compatible with, as I've found i18n really great to use on drupal 5. I'm looking forward to when a few of my remaining contributing modules catch up to drupal 6 as i'm reading the multilingual cababilities are even better with the upgrade.
Thanks again for the help guys :)
Ed
Multilingual Websites
To see a really smooth multilingual sample website see http://www.translationcompanychina.com. Once Drupal 7 hits the ground, multilingual website builders may find using a domain module, in combination with the core module, a better alternative depending upon other circumstances, of course. I think this would be a great implementation for your forums quest. :) We found that by combining the functionality of two modules, plus a little coding here and there, the internationalisation and localisation requirements were easily provided for. This is one of the reasons, as a China based Drupal advocate, that we provide a multilingual (or multi just-about-anything) functionality as standard for all Drupal installations. Oh, and just for the record, Drupal is much easier than other popular CMS platforms when it comes to multilingual capabilities. I encourage you to persevere if you haven't resolved the issue.
Anyway, if you still have problems, reply here (its been a while since you posted this) and we'll see if we can assist you further.
Mark
http://www.chinanetrix.com
Drupal i18n
Chinanetrix: Oh, and just for the record, Drupal is much easier than other popular CMS platforms when it comes to multilingual capabilities. I encourage you to persevere if you haven't resolved the issue.
I can second that, having spent too much time tinkering with half-arsed solutions. There's a strong foundation in Drupal, if a specific feature or function is not obvious, keep digging!
I also need forum in two languages
Hello all,
I have almost similar requirements. Currently new forum topics can be created in english. In the same forum, I want one thread to be in another language Urdu. I do not need any translation or stuff like that. I simply need this thread and the new topics in this thread to be in urdu. how can i achieve this.
Thanks
Arif