[ic] Urgent Locale questions

Stefan Hornburg (Racke) racke at linuxia.de
Sat Jan 23 16:46:08 UTC 2010

N.E.S.T. Solutions wrote:
> Hi all,
> I'm trying to setup a multiple language site, and I've got no hair left!
> I'm running ic 5.6 with the default <catroot>/dbconf/locales/default.cfg,
> along 
> with the xx_YY.cfg file for each language, which includes :
> Variable CURLOCALE xx_YY
> include dbconf/locales/default.cfg
> I have configured my locale table with this to test with xx_YY only for now:
> ProductFiles    products                products_xx_YY
> products                de_products     products_xx_YY
> variable.txt has this:
> DEFAULT_LOCALE  en_US   Internationalization
> LOCALES xx_YY yy_ZZ aa_BB       Internationalization
> I've created the ./products/products_xx_YY.txt and the
> ./dbconf/mysql/products_xx_YY.mysql 
> With the fields I see that are MAPped in default.cfg, on reconfig, my table
> loaded ok with one item to test.
> On the front-end, I view the product from the products_xx_YY language
> (title, desc, comment) but all 
> Other fields that are present in products.txt and that are not in
> products_xx_YY.txt don't show. I thought 
> that they would fallback to products.txt if absent or empty.
> I'll also have to do the categories, prod_group, AND (variants?!?).
> I'm now very puzzled with the following 4 questions:
> -- When using a non default locale, does IC fetch ALL fields from
> products.txt and then 
> replace the ones that are mapped only, in the default.cfg? Or do I need 100%
> of the 
> columns in my locale products_xx_YY files?

If you retrieve a single field, it looks for the mapped field.

If you doing a query with multiple fields, it replaces just the
mapped fields.

So your products_xx_YY table only needs the columns which are mapped.

> -- For cat and prod_group, do I have to create cat_xx_YY and
> prod_group_xx_YY also the 
> same as I did for the products?
> -- I see the options mapped in default.cfg, do I have to map the variants
> also to 
> be able to localize variants?


> -- All together, once everything will be working, does the MAP in the
> default.cfg instruct 
> IC to populate all locale files (products_xx_YY.txt, options_xx_YY.txt,
> variants_xx_YY.txt ?   )
> when creating a new product? Or do these files have to be done
> manually/otherwise?

Manually/otherwise. This localization stuff isn't really supported by
the admin UI.


LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team

More information about the interchange-users mailing list