[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Language and more categories - Rene
> Hi Rene!
> I added the [L] tags in the body of the index page. Now do I have both
> languages one page, but the IC will choose which one to show, or do I
> need to create another page?
> Also in locale.txt this is what I did:
> Under CODE column on the bottom after some things there were already
> there I put down the following:
> p_sep_by_space
> price_picture
> products продукти
> Dear Shoppers Шановні покупці
>
> Is that all I needed to do? On the right is my ua_UA column.
> Also how does the rest of the English text under Dear Shoppers show up
> on the English index, same for Ukrainian?
> And then this would be the link
> http://ukrainianshop.net/~ukrainia/cgi-bin/cart.cgi/process/locale/ua_UA
> /page/index ?
Hi Oleh, Sorry for the delayed reply..
If you want to use multiple languages on one page, then you have just to put
[setlocale ua_UA] before the ukrainian section and [setlocale en_US] before
the english language (that are surrounded by [L]-tags). You could actually
use the same code in both places.
Then I have a different locale that my server is configured with, so I have
in my pages top-template this code to select the default language if someone
has not choosen it before:
[if scratch mv_locale eq ""]
[setlocale locale=fi_FI persist=1]
[/if]
Just check the example from
http://interchange.redhat.com/cgi-bin/ic/docfly.html?mv_arg=ictags04%2e68
This should work fine
Dollar Pricing:
[setlocale en_US]
[item-list]
[item-code]: [item-price]<BR>
[/item-list]
Franc Pricing:
[setlocale fr_FR]
[item-list]
[item-code]: [item-price]<BR>
[/item-list]
[comment] Return to the user's default locale [/comment]
[setlocale]
Regards, Rene