On Tue, Mar 12, 2002 at 11:54:04AM +0300, Konstantin Lisitsin wrote:
> Sergei Dolmatov wrote:
> 
> >On Tue, Mar 12, 2002 at 11:00:45AM +0300, Konstantin Lisitsin wrote:
> 
> 
> >>Yes, I've installed Asgard-ru.xmlgz. After selecting ru_RU in 'language'
> >>menu of Asgard happens nothing, except it tries to convert russian
> >>letters to &XXXXX; :(
> >Well, I didn't work in Asgard for a long time, so I don't remember
> >just now exactly, but I'd try to look for it.
> 
> 
> Thanks a lot. Spasibo, t.e. ;)

Sometimes I understand english too ;)
BTW, there is cyrillic midgard ML: [EMAIL PROTECTED], you
can subscribe yourself by [EMAIL PROTECTED]

> 
> >Could you look in database and select these articles (with russian
> >letters) and check that they are properly inserted there?..
> 
> 
> Yes, and are properly showed on site itself; obviously Asgard converts
> letters itself.

Weird. There is
$AsgMsg->Common_LocalizedNameFilter="Asgard_Template_raw_filter";
in snippet://Asgard/Messages/ru_RU

And this code does this job (in snippet://Asgard/Classes/Template-base):

34: function Asgard_Template_html_filter($str)
35: { 
36:   global $AsgMsg;
37:   $filter=$AsgMsg->Common_LocalizedNameFilter;
38:   if (function_exists($filter)) 
39:      return $filter($str);
40:   else
41:      return htmlentities($str); 
42: }
43: 
44: function Asgard_Template_raw_filter($str)
45: { return $str; }

So it should just return plain string without any converting. Check
it, please, if it's possible.
And, if I were you, I'd put somewhere in Asgard's pages code something
like:

<?
echo Asgard_Template_raw_filter("some cyrillic letters here...");
echo $AsgMsg->Common_LocalizedNameFilter("the same string as above
here");
?>

and check for inconsistency.

> 
> >>>Mozilla/Galeon - Linux.
> 
> 
> BTW, what is Galeon?

Galeon - browser based on Gecko rendering engine by Mozilla.

> 
> 
> >>Nadmin on my installation doesn't show nonenglish letters also. Are there
> >>any special tips during midgard/nadmin install if one is willing to use
> >>alternative languages? May be I should take any actions with MySQL db,
> >>telling it that midgard database content is actually russian?
> >BTW, I hope that you have
> >MidgardParser russian
> >in your httpd.conf?
> 
> Yes, I do. BTW, what does this option influence on?
> Nadmin somehow started to show letter correct, w/o any action from my side.

Sometimes it looks like a kind of magic... :)

--
Regards,
Sergei Dolmatov.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to