Help needed for a multilingual site Mambelfished

Locked
User avatar
maxdg
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4173
Joined: Sun Sep 04, 2005 3:52 pm
Location: Colli Euganei
Contact:

Help needed for a multilingual site Mambelfished

Post by maxdg » Sun Sep 18, 2005 12:02 am

Hi, sorry for writing in english.. I have Mambo 4.5.2.3 installed with Mambelfish component for provide a multilingual musician resource..
The first idea was providing Italian-Japanese but i still have some problems with encoding, I think..
Some of you, kindly, can suggest me a way to start work on?
URL: Joomlastick
Thanks a lot in advance..  :)
Last edited by maxdg on Thu Oct 27, 2005 3:38 am, edited 1 time in total.
"Civiltà è la misura con cui la comunità provvede a tutti, nel disinteresse collettivo. Il disinteresse è la norma di selezione per l’immortalità di una razza intelligente."

http://www.ufomachine.org/

itochan
Joomla! Apprentice
Joomla! Apprentice
Posts: 25
Joined: Sat Sep 03, 2005 8:24 am
Location: Japan

Re: Help needed for a multilingual site Mambelfished

Post by itochan » Sun Sep 18, 2005 5:23 am

Hi Maxdg, I am glad that you mind Japanese reader of your site.

I think there is a charset bug.

default::

Code: Select all

	<meta http-equiv="Content-Type" content="text/html;>charset=iso-8859-1" />
i think this line should be::

Code: Select all

	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

the same at Japanese mode::

Code: Select all

	<meta http-equiv="Content-Type" content="text/html;>charset=EUC-JP" />
Your brouser ignores that error ">" , and displays the page as iso-8859-1 (as default)

this line should be::

Code: Select all

	<meta http-equiv="Content-Type" content="text/html; charset=EUC-JP" />


I think somebody can tell you more detail  ;)
Joomla! sounds like 自由村!

Japan  日本 (JST=GMT+9)

User avatar
maxdg
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4173
Joined: Sun Sep 04, 2005 3:52 pm
Location: Colli Euganei
Contact:

Re: Help needed for a multilingual site Mambelfished

Post by maxdg » Sun Sep 18, 2005 5:57 am

First, many thanks for your quickly answer.
Second.. italian and japanese people are more similar than you may expect..  :)
Third, we are planning to join a sort of web-friendship with those guys: http://www.chopstick.net/ for sharing infos and knowledges about our favorite instrument..  (don't ask me why I didn't ask them..  ;D)

Back on the spot, now..

I use the Mambelfish component, we want to share the more we can with spanish and french people, also..
The XML file for japanese.php located in the /language folder are exactly what you wrote:

Code: Select all

<?xml version="1.0" encoding="EUC-JP" ?> 
Maybe, you have read the generated code on the homepage..
Doing the same, I saw this:

Code: Select all

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
... i'm getting pretty confused...    ???
"Civiltà è la misura con cui la comunità provvede a tutti, nel disinteresse collettivo. Il disinteresse è la norma di selezione per l’immortalità di una razza intelligente."

http://www.ufomachine.org/

athron
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 125
Joined: Thu Aug 18, 2005 11:16 am
Location: Japan

Re: Help needed for a multilingual site Mambelfished

Post by athron » Mon Sep 19, 2005 8:09 am

Hi maxdg,
I'm just starting to use Mambelfish.
Installation was good.
but I have not read Mambelfish Help yet,so I can't use Mambelfish now ... :)

Though I have not understood all about Mambelfish, I guess your problem relate with Lang config of Mambelfish.
At the lang config page of Mambelfish ,it has iso code column.
I think this iso code setting are shown in charset of html.

May be ,it should be filled EUC-JP . ( Sorry,I have not  confirmed  this setting yet),
and some php setting will be  related this matter.

What iso code are set for japanese lang in your Lang conf page of mambelfish ?
And to help you and me, let me know "phpinfo" of your site by PM or E-mail .
Last edited by athron on Mon Sep 19, 2005 8:14 am, edited 1 time in total.
From Japan ---- Time Zone GMT+9

User avatar
maxdg
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4173
Joined: Sun Sep 04, 2005 3:52 pm
Location: Colli Euganei
Contact:

Re: Help needed for a multilingual site Mambelfished

Post by maxdg » Mon Sep 19, 2005 5:45 pm

athron wrote: I think this iso code setting are shown in charset of html.
May be ,it should be filled EUC-JP . ( Sorry,I have not  confirmed  this setting yet),
What iso code are set for japanese lang in your Lang conf page of mambelfish ?
I filled that this way:
japanese: jap
italian: ita
spanish: spa
french: fra
english: eng

All of this works pretty fine, but for japanese.
I tried a quickly change with EUC-JP (didn't works... as expected.. ;))  but I'm just thinking it may be a MySQL matter...
And to help you and me, let me know "phpinfo" of your site by PM or E-mail .
I'll do it.
Thanks a lot!!
(Just for now I've read some of your articles here and take your file language 4.5.1 from jamambo.. ;))
"Civiltà è la misura con cui la comunità provvede a tutti, nel disinteresse collettivo. Il disinteresse è la norma di selezione per l’immortalità di una razza intelligente."

http://www.ufomachine.org/

athron
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 125
Joined: Thu Aug 18, 2005 11:16 am
Location: Japan

Re: Help needed for a multilingual site Mambelfished

Post by athron » Tue Sep 20, 2005 12:59 am

maxdg wrote:
athron wrote: I think this iso code setting are shown in charset of html.
May be ,it should be filled EUC-JP . ( Sorry,I have not  confirmed  this setting yet),
What iso code are set for japanese lang in your Lang conf page of mambelfish ?
I filled that this way:
japanese: jap
italian: ita
spanish: spa
french: fra
english: eng

All of this works pretty fine, but for japanese.
I tried a quickly change with EUC-JP (didn't works... as expected.. ;))  but I'm just thinking it may be a MySQL matter...
And to help you and me, let me know "phpinfo" of your site by PM or E-mail .
I'll do it.
Thanks a lot!!
(Just for now I've read some of your articles here and take your file language 4.5.1 from jamambo.. ;))
I got your phpinfo and it seems good for treating Japanese language.
Hummmm.... ???
Now,I checked your site.
Did your change iso code UTF-8 ?

Althoh "charset=iso-8859-1" were shown in your Japanese page ,I can see Japanese well by changing my brouser encoding to UTF-8.

Your site header contains this line.

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
If youcan,I suggest the next way for you to work around to see all language.
1. All language contents will be treated by UTF-8 encoding.
2. Your site template will be changed variable iso code to  UTF-8 constant text.

Code: Select all

 charset=<?php ISO[1] 
------>  charset="UTF-8"

I have not made  Mambelfish running yet..
Is Membelfish suitable for Mambo 4.5.2.3 and php 5 ?
If it is not, I will try under Mambo 4.5.1 and php 4.3 ...
It needs more some time for me.  :-\
From Japan ---- Time Zone GMT+9

User avatar
maxdg
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4173
Joined: Sun Sep 04, 2005 3:52 pm
Location: Colli Euganei
Contact:

Re: Help needed for a multilingual site Mambelfished

Post by maxdg » Tue Sep 20, 2005 2:23 am

athron wrote: ------>  charset="UTF-8"
Right! Now I got it THAT well..
I'm pretty far to solve the whole thing but I REALLY appreciate your help.. now I'm on the right way...  8)

Unfortunately... UTF-8 dont' support accented letters.. for what I can see.. and french, spanish and italian strongly do use thats.
Maybe i must force recovering of the user language... for now I'm taking a look at this: http://forum.mamboserver.com/showthread.php?t=7766 to better focus the matter..
I have not made  Mambelfish running yet..
Is Membelfish suitable for Mambo 4.5.2.3 and php 5 ?
I run Mambo 4.5.2.3 with php 4.3.11 ... don't know about php 5 ... sorry..  :(


PS.. take a look at a page of this forum showing multilingual.. for exemple the "recent posts" one. You can see accented characters in spanish, french, italian, as well as japanese... and in the properties of the page I see ISO-8859-1 ...
...growl... >:(
Last edited by maxdg on Tue Sep 20, 2005 2:36 am, edited 1 time in total.
"Civiltà è la misura con cui la comunità provvede a tutti, nel disinteresse collettivo. Il disinteresse è la norma di selezione per l’immortalità di una razza intelligente."

http://www.ufomachine.org/

athron
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 125
Joined: Thu Aug 18, 2005 11:16 am
Location: Japan

Re: Help needed for a multilingual site Mambelfished

Post by athron » Tue Sep 20, 2005 12:36 pm

May I suggest next idea?

If you can override mbstring value in .htaccess, please try the next setting.

.htaccess

Code: Select all

AddDefaultCharset off
php_flag mbstring.encoding_translation on
php_value mbstring.http_input auto
php_value mbstring.http_output UTF-8
php_value mbstring.internal_encoding UTF-8


Sorry,just idea .
Last edited by athron on Tue Sep 20, 2005 12:52 pm, edited 1 time in total.
From Japan ---- Time Zone GMT+9

athron
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 125
Joined: Thu Aug 18, 2005 11:16 am
Location: Japan

Re: Help needed for a multilingual site Mambelfished

Post by athron » Tue Sep 20, 2005 1:15 pm

athron wrote: May I suggest next idea?

If you can override mbstring value in .htaccess, please try the next setting.

.htaccess

Code: Select all

AddDefaultCharset off
php_flag mbstring.encoding_translation on
php_value mbstring.http_input auto
php_value mbstring.http_output UTF-8
php_value mbstring.internal_encoding UTF-8
Sorry,just idea .
May be, It might be good only

Code: Select all

AddDefaultCharset off
From Japan ---- Time Zone GMT+9

athron
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 125
Joined: Thu Aug 18, 2005 11:16 am
Location: Japan

Re: Help needed for a multilingual site Mambelfished

Post by athron » Tue Sep 20, 2005 1:24 pm

maxdg wrote:
Unfortunately... UTF-8 dont' support accented letters.. for what I can see.. and french, spanish and italian strongly do use thats.
Maybe i must force recovering of the user language... for now I'm taking a look at this: http://forum.mamboserver.com/showthread.php?t=7766 to better focus the matter..
PS.. take a look at a page of this forum showing multilingual.. for exemple the "recent posts" one. You can see accented characters in spanish, french, italian, as well as japanese... and in the properties of the page I see ISO-8859-1 ...
...growl... >:(
Ahh,the topic of mamboserver you focus, it is similar to  my idea...

I also wonder how set encoding/charcode  for this forum  ... :)
I will try to ask this forum administrator. ;)
Last edited by athron on Tue Sep 20, 2005 1:27 pm, edited 1 time in total.
From Japan ---- Time Zone GMT+9

User avatar
maxdg
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4173
Joined: Sun Sep 04, 2005 3:52 pm
Location: Colli Euganei
Contact:

Re: Help needed for a multilingual site Mambelfished

Post by maxdg » Tue Sep 20, 2005 10:43 pm

Dear friend.. nothing seems to works as we expect...  :(
athron wrote: I also wonder how set encoding/charcode  for this forum  ... :)
I will try to ask this forum administrator. ;)
..wow!
Keep us updated!!
:P
"Civiltà è la misura con cui la comunità provvede a tutti, nel disinteresse collettivo. Il disinteresse è la norma di selezione per l’immortalità di una razza intelligente."

http://www.ufomachine.org/

athron
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 125
Joined: Thu Aug 18, 2005 11:16 am
Location: Japan

Re: Help needed for a multilingual site Mambelfished

Post by athron » Wed Sep 21, 2005 1:19 pm

Hi maxdg, I have some good news!

I just have  set up mamelfish ! with Joomla 1.0.0 and MF1.5.
but not with  mambo 4.3.2 yet.

PHP 4.3.10

Mambelfish 1.5 component
mbf_module.zip
mbf_searchbot.zip

Mambelfish core patch for Joomla (  http://forum.joomla.org/index.php/topic ... l#msg50626 )

In my test site, mbf_searchbot behavior is not good.  :(
Results of search contains some error  !  >:(

Buuuut... :D
Charset of HTML are good. They are set in Mambelfish language configuration.
On the front page,
When Japanese is selected,charset is UTF-8.
When English is selected ,charset is iso-8859-1.

I guess the reason of your trouble is caused by not applying of core patch.
Did you patch core ?
http://mamboforge.net/frs/download.php/ ... _4_5_2.zip

I have told you my test site URL by PM already...
Please check my test site.
Last edited by athron on Wed Sep 21, 2005 2:27 pm, edited 1 time in total.
From Japan ---- Time Zone GMT+9

athron
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 125
Joined: Thu Aug 18, 2005 11:16 am
Location: Japan

Re: Help needed for a multilingual site Mambelfished

Post by athron » Wed Sep 21, 2005 2:26 pm

Now I have opened  my new test site with Mambo 4.5.2.4 and Mambelfish in  brief period.

http://mambocheck.jamambo.com/

8)

PHP 4.3.10
Mambo 4.5.2.4
Mambelfish 1.5 component
mbf_module.zip
mbf_searchbot.zip
Core_patch_452.zip
Last edited by athron on Thu Oct 06, 2005 4:29 pm, edited 1 time in total.
From Japan ---- Time Zone GMT+9

athron
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 125
Joined: Thu Aug 18, 2005 11:16 am
Location: Japan

Re: Help needed for a multilingual site Mambelfished

Post by athron » Thu Sep 22, 2005 4:10 pm

I understood that iso column in Mambelfish Language conf page means 2 bytes of iso country code  .
If japanese language is used, it is "ja".
If english language is used,it is "en".
Iso country code is used for choosing the default country flag image from  flag directory .
"ja" --> ja.gif
"en" --> en.gif

Of course, you can set original code  there.
If you set original code there,the image of language might be set suitable path.

"encoding" and "charset" codes are choosen from each language file.
For example ,
english.php has

Code: Select all

/** templates/*.php */
DEFINE('_ISO','charset=iso-8859-1');
and also my japanese.php has

Code: Select all

/** templates/*.php */
DEFINE('_ISO','charset=UTF-8');
They are set into "encoding" and "charset" of front xHTML by choosing their language in the list of Mambelfish.

They are set by the patch of core.
Last edited by athron on Thu Sep 22, 2005 4:14 pm, edited 1 time in total.
From Japan ---- Time Zone GMT+9

User avatar
maxdg
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4173
Joined: Sun Sep 04, 2005 3:52 pm
Location: Colli Euganei
Contact:

Re: Help needed for a multilingual site Mambelfished

Post by maxdg » Thu Sep 22, 2005 5:56 pm

..so fine.. ;)

I whis I can try in the next hours.. I'll keep you in touch!

Thanks!
8)
"Civiltà è la misura con cui la comunità provvede a tutti, nel disinteresse collettivo. Il disinteresse è la norma di selezione per l’immortalità di una razza intelligente."

http://www.ufomachine.org/

athron
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 125
Joined: Thu Aug 18, 2005 11:16 am
Location: Japan

Re: Help needed for a multilingual site Mambelfished

Post by athron » Thu Oct 06, 2005 4:01 pm

His problem was solved yesterday  :D
Now, his new site can show 5 country languages  !

It was not PHP problem but apache2 .

The "AddDefaultCharset" of apache2  had  to  be set into "Off" .

I usually set this parameter into  "Off" for using apache2  in  httpd.conf .
I forgot to tell him this.
If it is not "Off",almost browser will  make a incorrect encoding result.

This is the last his setting in .htaccess

------ .htaccess

Code: Select all

AddDefaultCharset Off

phpvalue mbstring.encoding_translation   off
phpvalue mbstring.http_input    pass
phpvalue mbstring.http_output     pass
phpvalue mbstring.language     neutral
congraturations  Max ! :laugh:
Last edited by athron on Thu Oct 06, 2005 4:04 pm, edited 1 time in total.
From Japan ---- Time Zone GMT+9

User avatar
maxdg
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4173
Joined: Sun Sep 04, 2005 3:52 pm
Location: Colli Euganei
Contact:

Re: Help needed for a multilingual site Mambelfished

Post by maxdg » Mon Oct 24, 2005 1:15 am

congratulations  Max ! :laugh:
Thanks to you, for your help, Athron.  ;)
.....but there's still some matters with me...  :-\
It seems like the system don't read the language.php files.
All translations with Mambelfish are right and works fine.. but I don't get translated other stuffs like "read more", "search", "user on line" etc.. that are located in language.php files (where "language" stands for english, italian, japanese etc.)
That's quite strange, because this was the only working function I had after installing Mambelfish.. and now.. pufff!

EDIT: all of this starts after upgrading to Joomla 1.0.3

Plus.. the three other declarations in .htaccess in your post:

Code: Select all

phpvalue mbstring.encoding_translation   off
phpvalue mbstring.http_input    pass
phpvalue mbstring.http_output     pass
phpvalue mbstring.language     neutral
Don't works for me.

In my .htaccess I wrote only this:

Code: Select all

AddDefaultCharset Off
And this way it works fine!

Still-working-Max
Last edited by maxdg on Mon Oct 24, 2005 1:31 am, edited 1 time in total.
"Civiltà è la misura con cui la comunità provvede a tutti, nel disinteresse collettivo. Il disinteresse è la norma di selezione per l’immortalità di una razza intelligente."

http://www.ufomachine.org/

User avatar
maxdg
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4173
Joined: Sun Sep 04, 2005 3:52 pm
Location: Colli Euganei
Contact:

Re: Help needed for a multilingual site Mambelfished

Post by maxdg » Mon Oct 24, 2005 2:06 am

...we never stop learning... in this world..
maxdg wrote: .....but there's still some matters with me...  :-\
I can't explain more than this but there's a hint:

NEVER try to experimenting all of the content of this thread in OFFLINE mode.
You can watch your site when connected ad SuperAdministrator and do a Preview in OFFLINE mode but don't expect for Mambelfish to works fine when you are in OFFLINE mode.

So.. my dear Japanese friend... EVERYTHING are working GOOD!

Yup!  ;D
"Civiltà è la misura con cui la comunità provvede a tutti, nel disinteresse collettivo. Il disinteresse è la norma di selezione per l’immortalità di una razza intelligente."

http://www.ufomachine.org/


Locked

Return to “Japanese Forum”