Mailing List Archive

Localization challenge with [LC] and [loci].
Hi to all!
I'm using Interchange 4.6.1 and a slightly customized "Construction Demo".

I changed the following in catalog.cfg:
#Locale en_US LC_CTYPE C
Locale fr_FR LC_CTYPE C

When I embed the following in the aboutus.html page:
<p>
[L]June[/L]
<p>
[LC]
This is the LC default text.
[fr_FR] Text for the LC fr_FR locale. [/fr_FR]
[/LC]
<p>
[L]July[/L]
<p>
[loci]
This is the loci default text.
[fr_FR] Text for the loci fr_FR locale. [/fr_FR]
[/loci]
<p>
[L]August[/L]


I get the following:
Juin
This is the LC default text.
Juillet
[loci] This is the loci default text. [fr_FR] Text for the loci fr_FR
locale. [/fr_FR] [/loci]
Aout


The months are presented in French as expected but the lines in between
are... not as expected. Any suggestions?


John Matecsa
http://www.picassofish.com
Localization challenge with [LC] and [loci]. [ In reply to ]
Dear John,

A few questions:
Have you downloaded the code for the loci tag from the Interchange site?
Have you installed this code somewhere your catalog can find them?

In order to include additional usertags and other code you could create a
directory and put a file containing the code (e.g. for loci) in it. Then
add lines like the following to your catalog.cfg

#### Now including individual usertag files

#include usertag/*
#include /opt/usr/ton/my_add_ons/*
#include /opt/usr/ton/my_usertags/*

The above include should point to the directory that contains the files to
be included.

Re-configure your catalog or restart Interchange.

That's all.

Good luck,

Ton Verhagen


At 11:53 PM 1/4/01 -0500, you wrote:
>Hi to all!
>I'm using Interchange 4.6.1 and a slightly customized "Construction Demo".
>
>I changed the following in catalog.cfg:
>#Locale en_US LC_CTYPE C
>Locale fr_FR LC_CTYPE C
>
>When I embed the following in the aboutus.html page:
><p>
>[L]June[/L]
><p>
>[LC]
>This is the LC default text.
>[fr_FR] Text for the LC fr_FR locale. [/fr_FR]
>[/LC]
><p>
>[L]July[/L]
><p>
>[loci]
>This is the loci default text.
>[fr_FR] Text for the loci fr_FR locale. [/fr_FR]
>[/loci]
><p>
>[L]August[/L]
>
>
>I get the following:
>Juin
>This is the LC default text.
>Juillet
>[loci] This is the loci default text. [fr_FR] Text for the loci fr_FR
>locale. [/fr_FR] [/loci]
>Aout
>
>
>The months are presented in French as expected but the lines in between
>are... not as expected. Any suggestions?
>
>
>John Matecsa
>http://www.picassofish.com
>
>
>_______________________________________________
>Interchange-users mailing list
>Interchange-users@lists.akopia.com
>http://lists.akopia.com/mailman/listinfo/interchange-users
Localization challenge with [LC] and [loci]. [ In reply to ]
Quoting John Matecsa (matecsaj@rdsdata.com):
> Hi to all!
> I'm using Interchange 4.6.1 and a slightly customized "Construction Demo".
>
> I changed the following in catalog.cfg:
> #Locale en_US LC_CTYPE C
> Locale fr_FR LC_CTYPE C
>
> When I embed the following in the aboutus.html page:
> <p>
> [L]June[/L]
> <p>
> [LC]
> This is the LC default text.
> [fr_FR] Text for the LC fr_FR locale. [/fr_FR]
> [/LC]
> <p>
> [L]July[/L]
> <p>
> [loci]
> This is the loci default text.
> [fr_FR] Text for the loci fr_FR locale. [/fr_FR]
> [/loci]
> <p>
> [L]August[/L]
>
>
> I get the following:
> Juin
> This is the LC default text.
> Juillet
> [loci] This is the loci default text. [fr_FR] Text for the loci fr_FR
> locale. [/fr_FR] [/loci]
> Aout
>

Unable to verify this. The [loci] tag is a UserTag and not part of the
core, so I don't have knowledge or control of that, but when I put the
following in the page "t12.html":

Locale is [scratch mv_locale]
<p>
[L]June[/L]
<p>
[LC]
This is the LC default text.
[fr_FR] Text for the LC fr_FR locale. [/fr_FR]
[/LC]
<p>
[L]July[/L]
<p>
[L]August[/L]

And access the page with:

http://MYSERVER/cgi-bin/construct/process/locale/fr_FR/page/t12.html

I get:

Locale is fr_FR

Juin

Text for the LC fr_FR locale.

Juillet

Aout

and as:

http://MYSERVER/cgi-bin/construct/process/locale/en_US/page/t12.html

I get:

en_US

June

This is the LC default text.

July

August

As I would expect. Subsequent accesses to /cgi-bin/construct/t12 show
that the change is persistent.

--
Akopia, Inc., 131 Willow Lane, Floor 2, Oxford, OH 45056
phone +1.513.523.7621 fax 7501 <heins@akopia.com>

Nature, to be commanded, must be obeyed. -- Francis Bacon