Help needed for a multilingual site Mambelfished
- maxdg
- Joomla! Virtuoso
- Posts: 4173
- Joined: Sun Sep 04, 2005 3:52 pm
- Location: Colli Euganei
- Contact:
Help needed for a multilingual site Mambelfished
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..
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/
http://www.ufomachine.org/
-
- Joomla! Apprentice
- Posts: 25
- Joined: Sat Sep 03, 2005 8:24 am
- Location: Japan
Re: Help needed for a multilingual site Mambelfished
Hi Maxdg, I am glad that you mind Japanese reader of your site.
I think there is a charset bug.
default::
i think this line should be::
the same at Japanese mode::
Your brouser ignores that error ">" , and displays the page as iso-8859-1 (as default)
this line should be::
I think somebody can tell you more detail
I think there is a charset bug.
default::
Code: Select all
<meta http-equiv="Content-Type" content="text/html;>charset=iso-8859-1" />
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" />
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)
Japan 日本 (JST=GMT+9)
- maxdg
- Joomla! Virtuoso
- Posts: 4173
- Joined: Sun Sep 04, 2005 3:52 pm
- Location: Colli Euganei
- Contact:
Re: Help needed for a multilingual site Mambelfished
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.. )
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:
Maybe, you have read the generated code on the homepage..
Doing the same, I saw this:
... i'm getting pretty confused...
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.. )
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" ?>
Doing the same, I saw this:
Code: Select all
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
"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/
http://www.ufomachine.org/
-
- Joomla! Enthusiast
- Posts: 125
- Joined: Thu Aug 18, 2005 11:16 am
- Location: Japan
Re: Help needed for a multilingual site Mambelfished
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 .
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
- maxdg
- Joomla! Virtuoso
- Posts: 4173
- Joined: Sun Sep 04, 2005 3:52 pm
- Location: Colli Euganei
- Contact:
Re: Help needed for a multilingual site Mambelfished
I filled that this way: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 ?
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...
I'll do it.And to help you and me, let me know "phpinfo" of your site by PM or E-mail .
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/
http://www.ufomachine.org/
-
- Joomla! Enthusiast
- Posts: 125
- Joined: Thu Aug 18, 2005 11:16 am
- Location: Japan
Re: Help needed for a multilingual site Mambelfished
I got your phpinfo and it seems good for treating Japanese language.maxdg wrote:I filled that this way: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 ?
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...
I'll do it.And to help you and me, let me know "phpinfo" of your site by PM or E-mail .
Thanks a lot!!
(Just for now I've read some of your articles here and take your file language 4.5.1 from jamambo.. )
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"?>
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]
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
- maxdg
- Joomla! Virtuoso
- Posts: 4173
- Joined: Sun Sep 04, 2005 3:52 pm
- Location: Colli Euganei
- Contact:
Re: Help needed for a multilingual site Mambelfished
Right! Now I got it THAT well..athron wrote: ------> charset="UTF-8"
I'm pretty far to solve the whole thing but I REALLY appreciate your help.. now I'm on the right way...
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 run Mambo 4.5.2.3 with php 4.3.11 ... don't know about php 5 ... sorry..I have not made Mambelfish running yet..
Is Membelfish suitable for Mambo 4.5.2.3 and php 5 ?
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/
http://www.ufomachine.org/
-
- Joomla! Enthusiast
- Posts: 125
- Joined: Thu Aug 18, 2005 11:16 am
- Location: Japan
Re: Help needed for a multilingual site Mambelfished
May I suggest next idea?
If you can override mbstring value in .htaccess, please try the next setting.
.htaccess
Sorry,just 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
-
- Joomla! Enthusiast
- Posts: 125
- Joined: Thu Aug 18, 2005 11:16 am
- Location: Japan
Re: Help needed for a multilingual site Mambelfished
May be, It might be good onlyathron wrote: May I suggest next idea?
If you can override mbstring value in .htaccess, please try the next setting.
.htaccessSorry,just idea .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
Code: Select all
AddDefaultCharset off
From Japan ---- Time Zone GMT+9
-
- Joomla! Enthusiast
- Posts: 125
- Joined: Thu Aug 18, 2005 11:16 am
- Location: Japan
Re: Help needed for a multilingual site Mambelfished
Ahh,the topic of mamboserver you focus, it is similar to my idea...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...
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
- maxdg
- Joomla! Virtuoso
- Posts: 4173
- Joined: Sun Sep 04, 2005 3:52 pm
- Location: Colli Euganei
- Contact:
Re: Help needed for a multilingual site Mambelfished
Dear friend.. nothing seems to works as we expect...
Keep us updated!!
:P
..wow!athron wrote: I also wonder how set encoding/charcode for this forum ...
I will try to ask this forum administrator.
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/
http://www.ufomachine.org/
-
- Joomla! Enthusiast
- Posts: 125
- Joined: Thu Aug 18, 2005 11:16 am
- Location: Japan
Re: Help needed for a multilingual site Mambelfished
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...
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.
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...
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
-
- Joomla! Enthusiast
- Posts: 125
- Joined: Thu Aug 18, 2005 11:16 am
- Location: Japan
Re: Help needed for a multilingual site Mambelfished
Now I have opened my new test site with Mambo 4.5.2.4 and Mambelfish in brief period.
http://mambocheck.jamambo.com/
PHP 4.3.10
Mambo 4.5.2.4
Mambelfish 1.5 component
mbf_module.zip
mbf_searchbot.zip
Core_patch_452.zip
http://mambocheck.jamambo.com/
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
-
- Joomla! Enthusiast
- Posts: 125
- Joined: Thu Aug 18, 2005 11:16 am
- Location: Japan
Re: Help needed for a multilingual site Mambelfished
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
and also my japanese.php has
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.
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');
Code: Select all
/** templates/*.php */
DEFINE('_ISO','charset=UTF-8');
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
- maxdg
- Joomla! Virtuoso
- Posts: 4173
- Joined: Sun Sep 04, 2005 3:52 pm
- Location: Colli Euganei
- Contact:
Re: Help needed for a multilingual site Mambelfished
..so fine..
I whis I can try in the next hours.. I'll keep you in touch!
Thanks!
I whis I can try in the next hours.. I'll keep you in touch!
Thanks!
"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/
http://www.ufomachine.org/
-
- Joomla! Enthusiast
- Posts: 125
- Joined: Thu Aug 18, 2005 11:16 am
- Location: Japan
Re: Help needed for a multilingual site Mambelfished
His problem was solved yesterday
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
congraturations Max !
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
Last edited by athron on Thu Oct 06, 2005 4:04 pm, edited 1 time in total.
From Japan ---- Time Zone GMT+9
- maxdg
- Joomla! Virtuoso
- Posts: 4173
- Joined: Sun Sep 04, 2005 3:52 pm
- Location: Colli Euganei
- Contact:
Re: Help needed for a multilingual site Mambelfished
Thanks to you, for your help, Athron.congratulations Max !
.....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
In my .htaccess I wrote only this:
Code: Select all
AddDefaultCharset Off
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/
http://www.ufomachine.org/
- maxdg
- Joomla! Virtuoso
- Posts: 4173
- Joined: Sun Sep 04, 2005 3:52 pm
- Location: Colli Euganei
- Contact:
Re: Help needed for a multilingual site Mambelfished
...we never stop learning... in this world..
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!
I can't explain more than this but there's a hint:maxdg wrote: .....but there's still some matters with me...
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!
"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/
http://www.ufomachine.org/