• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Multilingual jforum Site

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello,

I want to use jforum on a multilingual portal (www.afromix.org). The site is available in 4 language : French, English, Spanish and Portuguese.

For the forums, I want to keep 4 differents sections : one for each language (see http://forum.afromix.org/en/ ).

Here is what I have done so far (jforum 2.1.4 on tomcat under macosx)

I have replicated the jforum files in 4 webapps (one for each language).
/fr/ for french
/en/ for english
/es/ for spanish
/pt/ for portuguese

In each context, I have edited the WEB-INF/config/jforum-custom.conf to use the correct language and context
for example for english
i18n.board.default=en_US
forum.link=http\://forum.afromix.org/en/
homepage.link=http\://forum.afromix.org/en

I have created various category (one for each language) and in the template file templates/default/forum_list.htm i have added a filter to only show forums in the "good" language

in /fr/templates/default/forum_list.htm
<!-- START FORUM LISTING -->
<#list allCategories as category>
<#if ((category.id = 1) || (category.id = 4) || (category.id = 7))>

in /en/templates/default/forum_list.htm
<!-- START FORUM LISTING -->
<#list allCategories as category>
<#if ((category.id = 2) || (category.id = 5) || (category.id = 8))>

My questions are :
1) is it the "right way" to do it ???

2) what libraries can I share safely between the 4 web apps = what libraries can i put in the shared/lib on tomcat ?

3) any other ideas ??

--fabrice gaillard

[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, if you want to only show forums for a specific language, here's how I would do that (without changing the Java code)

Of course, it depends of the level of integration you want - the following suggestion is a bit less "dynamic" than yours, but, on the other hand, much easier to maintain:

1) First, I would say users to change their languages to one of the four supported in his profile page. The board could run in a default language, like English - but anyway, you can always put a step on front of it to force the user to choose the language.

2) When listing Categories / forums, a code like the follows does the job:



Rafael
[originally posted on jforum.net by Rafael Steil]
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic