Multilingual / Bilingual CMS Approach
Posted: 22 October 2004 11:18 PM   [ Ignore ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  860
Joined  01-07-2003

There are a few threads on this topic, but since our approach is a tiny bit different, we thought we would share it with the community for comment.

Our project is a bilingual Spanish and American-English site. We’re using EE as a Content Management System (CMS).

In the Admin section of the site, we added custom site fields for the Spanish entry titles and for the Spanish content right below the English ‘title’ and ‘body’ fields. {esponoltitle} and {espanolbody}

Our bilingual web ‘content-master’ enters all content in both languages in each entry. The Spanish and English is right next to each other in each entry for easy editing.

We then created two templates, one called index and one called indice (English/Spanish).

Each template displays one language. In the example below, the weblog:entries tag displays only the Spanish content.

{exp:weblog:entries weblog=“MySite”}
<div class=“title”>{espanoltitle}</div>
<div class=“maintext”>{espanolbody}</div>
{/exp:weblog:entries}

Then to keep administration simple (that is a major goal of this project), we are using the Category Management system built into EE here; [Control Panel Home ›  Admin ›  Category Groups] to organization the site’s content. Each category/subcatagory represents a traditional static web page.

We use the weblog:categories tag to manage the language templates for us. In the example below, pay close attention to the {path=myweblog/indice} and notice that we’ve told EE to create links that call our Spanish template (called ‘indice’). In the English template, we’ve told EE to create links that call the English template by using this: {path=myweblog/index}

{exp:weblog:categories weblog=“MySite” style=“nested”}
<a href=”{path=myweblog/indice}”>{category_name}</a>
{/exp:weblog:categories}

We’re using that great java Chris introduced/used in the EE Knowledge base FAQ to created fully dynamic expanding category headings and subcategory links from the nested category tag above. We used CMS to make it display a little less techie.

The site visitor may change language on any page of the site by clicking a special link that exchanges one template for the other. All the site’s page links dynamically adjust to include the alternate template also. Also the visitor remains on the same page and entry even when they toggle between languages. Example tag:

{exp:weblog:entries limit=“1”}
<a href=”{entry_id_path=weblog/template}”>English</a>
{/exp:weblog:entries}

Each of our category groups are titled in both languages; Contact/Contactarnos so if we ever need to add, move or delete a category (think web page) we just change it in the Category Groups area and our page links, are dynamically adjusted in both language templates; no need to update the links at all.

We think this is a very simple and easy to maintain method for a bilingual CMS. Thanks to Rick and his team for giving us these great tools to work with.

The site is still in development, but will go live within a few weeks. I’ll post an update at that time so folks can see it in action.

 Signature 

eeSiteKit | the faster way to build an ExpressionEngine website | NetRaising is a member of the EE Pro Network

Profile
 
 
Posted: 23 October 2004 10:04 AM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6086
Joined  08-04-2002

If I understand correctly…
>> Each category/subcatagory represents a traditional static web page. <<
This sounds like it could grow into a big problem once you get a lot of articles. You not only have a lot of individual entries to display and manage in the “Edit” section but an equal amount in “Category” management. Sounds like twice the work to me.
Haven’t totally thought this thru but it would seem to negate using categories for other things, or at least complicate it also.

Profile
 
 
Posted: 23 October 2004 10:31 AM   [ Ignore ]   [ # 2 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  860
Joined  01-07-2003

Each page may display as many entries as needed. Oh… I see, you’re reading STATIC, as in totally fixed, I meant static as in, the visitor experiences it as a separate page (like an old html site), but its really dynamic. There are only two main templates serving a several-hundred page site; one for each language.

 Signature 

eeSiteKit | the faster way to build an ExpressionEngine website | NetRaising is a member of the EE Pro Network

Profile
 
 
Posted: 23 October 2004 10:48 AM   [ Ignore ]   [ # 3 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6086
Joined  08-04-2002

Actually I read it as there is one unique “category” representing an individual article/entry. So if you had 1,000 articles, you’d also have 1,000 categories or subcategories. If that’s the case, you have double the admin work in my mind.

Profile
 
 
Posted: 23 October 2004 11:10 AM   [ Ignore ]   [ # 4 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  860
Joined  01-07-2003

Ah.. No, its hundreds of entries for each category. You’re right, one category per entry would be WAY too much work. Simple is the goal here; and this system appears to be pretty simple.

 Signature 

eeSiteKit | the faster way to build an ExpressionEngine website | NetRaising is a member of the EE Pro Network

Profile
 
 
Posted: 23 October 2004 11:40 AM   [ Ignore ]   [ # 5 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6086
Joined  08-04-2002

Ahhh…
The phrase I mentioned and >> delete a category (think web page) << is what thru me grin

Profile
 
 
Posted: 23 November 2004 11:25 PM   [ Ignore ]   [ # 6 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  860
Joined  01-07-2003

OK. . . we just moved the DNS and the new site will be live within the next 72 hours.

Check it out: www.enlaceintl.org

 Signature 

eeSiteKit | the faster way to build an ExpressionEngine website | NetRaising is a member of the EE Pro Network

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 66394 Total Logged-in Users: 20
Total Topics: 84721 Total Anonymous Users: 14
Total Replies: 454710 Total Guests: 200
Total Posts: 539431    
Members ( View Memberlist )