Benedict <[EMAIL PROTECTED]> wrote:
> Hi,
> I would like to hear from people knowledgeable in midgard what each of
> the following lines in different files and pertaing CHARSET ENCODINGS or
> localizations actually do, and whether there are dependencies between
> them (i.e. setting one should would require another to be set, too).
> >>>>>/usr/lib/apache/midgard-root.php
> /* Uncomment the following line if you want to get dates
> /* localized (replace second parameter with correct locale)*/
> /* setlocale("LC_ALL","ru_RU.KOI8-R"); */
You may set global locale in midgard-root.php , but as this file is almost
used for all midgard sites, You could simply set locale in
code-global or code-init ROOT's page element.
>
> >>>>>/etc/httpd/conf/midgard-data.conf
> # Configure text parser:
> # Change to 'russian' for Russian Midgard
> MidgardParser latin1
Sets character per midgard host.
Englixh host require latin 1 , while Polish or Russian
require Russian
> MidgardBlobDir "/var/www/midgardblobs"
The path for midgard host's blobs (attachments).
You may have 50 different sites in one database
but with this configuration per host You set where
every host should store its attachments.
> # Configuration for Russian Midgard:
> <IfModule mod_charset.c>
> # default charset for real or virtual server (selected if all other
> charset-
> # selections methods fails)
> CharsetDefault iso-8859-2
> # Default source (on-disk) charset (we keep all content in DB in
> KOI8-R
> # encoding). If you want different encoding, please re-encode
> midgard-ru.sql
> # before inserting it into DB too.
> CharsetSourceEnc iso-8859-2
> # Force mod_charset to do its work
> CharsetDisable Off
> </IfModule>
This above is not important when Russian parser is enabled.
Besides there is no easily available Apache module mod_charset.c
so You may easily remove all these lines.
> NOTE: I have set iso-8859-2 for CharsetDefault and CharsetSourceEnc but
> left latin1 in MidgardParser 'cause I'm not sure this is the right way
> to do.
If You have host which should has iso-8859-2 character , set MidgardParser to Russian.
> >>>>>/usr/local/etc/repligard.conf
> <database
> schema="/usr/local/share/midgard/repligard.xml"
Schema file for repligard (what , how etc etc).
For custom importing doesn't require editing.
> name="midgard"
database name
> username="midgard"
mysql user which has privileges to log in to mysql database
> password="xxxxxx"
and his password
> encoding="ISO-8859-2"
and encoding which should be used for replication
> blobdir="/var/www/midgardblobs"
and path for blobs which should be imported (exported)
> NOTE: again, I set ISO-8859-2 for my purpose, I am not sure it is right.
For importing You may leave 8859-1 (I think)
> Or better yet, could anyone tell me what should be set for the Polish
> site to diplay right charset in each frame and window.
> I don't know where to set <META HTTP-EQUIV...> Tag in Midgard.
Usualy it is set in some Style element.
> Benedict
this is Your name :)
> PS. Is it possible to have english admin interface with latin1 charset
> while builing a site with latin2 charset?
MidgardParser is set _PER_ host , not per database.
So in Your host configuration set parser for Russian.
> AegirCMS-1.0-RC1
This is Aegir's version and name ;)
> System setup Midgard-1.4.4
Midgard 1.4.4 ;)
> RH7.2
Red Hat 7.2 ? ;)
Piotras
this is not my name ;)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]