ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Multiple language category names

January 26, 2010 1:11pm

Subscribe [1]
  • #1 / Jan 26, 2010 1:11pm

    daulex

    152 posts

    Hi,

    I’m building an expression engine 2.0-powered site that uses multiple languages (not using MSM aka multiple site manager, as the client did not want that approach).

    I am borrowing a few of the ideas from here: http://expressionengine.com/wiki/Multi_language_site_alternative/ however using cookies for the language selection as apposed to having the language variable in the uri.

    However what bugs me is that when I’m going to have a list of product categories, I think I’m not going to have a way to list the category names in the languages that I need (or have a place to type in the alternative language category names for that matter)

    Rough structure:

    site.com/category/product, ALL of the language specific bits are being taken either from the lang file(ui stuff) or from the custom fields, except for category names.

    Is there a way to link a category id to various category names(different languages) and then retrieve the appropriate language when required?

    If there is no way to do this, is MSM the only alternative?

  • #2 / Jan 27, 2010 9:36am

    silenz

    1651 posts

    I think the only out-of-the-box way would be using Custom Category Fields for the Category names and devise some logic which of the fields to display based on the language currently active.

  • #3 / Jan 27, 2010 10:14am

    daulex

    152 posts

    OMG. DOH. Dude, you’re a lifesaver. Thank YOU.

    Got this to work, the logic wasn’t hard to do.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases