Joobi

Joomla components

For Bug Report or Feature Request please use the ticket system accessible on the tab Support.
This forum is not monitored by Joobi Team although we might take part in discussion.
The forum is mainly a place for members to share ideas and interact together.

You are not logged in.

#1 02 Dec 2008 09:15:29

cuttychu
Junior Member

[SOLVED] can NOT show correct Language

HI,
I install Acajoom News 3.0.7 and it works fine except the language.
it can't show other language other than English.

I do have Joomfish installed but my site default language is Traditional-Chinese but the Acajoom show English only.

:dry: I check the database all the field language_iso = 'eng' (iso?---should be UTF-8 right?)
there is no other admin configuration can change it. if i update from backend , will it help?

in the class.frontend.php:

if ( ACA_CMSTYPE ) {    // joomla 15
            $database =& JFactory::getDBO();
            $lang6 = JRequest::getVar('lang', 'eng' );
......
$newSubscriber->language_iso = $lang6;

looks like it can't take the right language parameters.

Any help is appreciated.

Thanks,
Cutty

#2 02 Dec 2008 14:36:02

ivar
New member

Re: [SOLVED] can NOT show correct Language

I seem to have the same problem with a brand new installation of Acajoom News 3.0.7  free version.


/Ivar

#3 02 Dec 2008 15:00:10

Adrien
Administrator

Re: [SOLVED] can NOT show correct Language

So if I understand, the Acajoom module and the Acajoom component on the frontend and backend is not displayed in the right language...
Could you please edit the file "class.acajoom.php" that you will find in the folder "administrator/components/com_acajoom/classes" and you should see around line 37 this code :


Code:

if (file_exists ( ACA_PATH_LANG . ACA_CONFIG_LANG . '.php')) {
    require_once( ACA_PATH_LANG . ACA_CONFIG_LANG . '.php');
} else {
    require_once( ACA_PATH_LANG . 'english.php');
}

Could you please add this code just before :

Code:

echo '<br/>Your language : '.ACA_CONFIG_LANG.'<br/>';

So you should now see:

Code:

echo '<br/>Your language : '.ACA_CONFIG_LANG.'<br/>';
if (file_exists ( ACA_PATH_LANG . ACA_CONFIG_LANG . '.php')) {
    require_once( ACA_PATH_LANG . ACA_CONFIG_LANG . '.php');
} else {
    require_once( ACA_PATH_LANG . 'english.php');
}

Then check your website and you should see the name of the file Acajoom tries to load... could you please tell me what's the value?


Please check 

Sorry. You have to be registered to access this content.

and existing replies before posting on our forum!

Best Regards,
Adrien

#4 02 Dec 2008 15:28:31

ivar
New member

Re: [SOLVED] can NOT show correct Language

It say
Your language : norwegian [img size=251]http://www.acajoom.com/images/fbfiles/images/02.jpg[/img]

#5 02 Dec 2008 15:36:15

Adrien
Administrator

Re: [SOLVED] can NOT show correct Language

I can see the "norwegian" language file in Acajoom is not fully translated...
Is it possible Acajoom really loads this file but as a lot of sentences are still in english, you don't see the difference?

Please edit some sentences in the language file and let me know!

You can find the languages files at "Joomla / Administrator / Components / com_acajoom / language"


Please check 

Sorry. You have to be registered to access this content.

and existing replies before posting on our forum!

Best Regards,
Adrien

#6 02 Dec 2008 15:39:33

ivar
New member

Re: [SOLVED] can NOT show correct Language

Yes! You are right. I did not actually look into the language file.
Thanks.

#7 03 Dec 2008 07:22:54

cuttychu
Junior Member

Re: [SOLVED] can NOT show correct Language

Your language : traditional_chinese
but the acajoom shows:
id#        ???    ????    ?????    ??    ???    ???
4

海揚電子報    Administrator C     ?? / ????     ?????   


Acajoom News 3.0.7, Powered by Joobi. [img size=700]http://www.acajoom.com/images/fbfiles/images/acajoom_error_1.jpg[/img]

#8 03 Dec 2008 07:26:18

cuttychu
Junior Member

Re: [SOLVED] can NOT show correct Language

And the module show the ?? character as well.

if i change to English then is OK [img size=473]http://www.acajoom.com/images/fbfiles/images/acajoom_error_2.jpg[/img]

#9 03 Dec 2008 08:18:16

cuttychu
Junior Member

Re: [SOLVED] can NOT show correct Language

even the CB Tab show ?? Character. [img size=644]http://www.acajoom.com/images/fbfiles/images/acajoom_error_3.jpg[/img]

#10 03 Dec 2008 10:28:21

Adrien
Administrator

Re: [SOLVED] can NOT show correct Language

Could you please edit your language file from the folder "Joomla / Administrator / Components / com_acajoom / language" and let us know if you see something weird instead of those "?" in the translated file?


Please check 

Sorry. You have to be registered to access this content.

and existing replies before posting on our forum!

Best Regards,
Adrien

#11 03 Dec 2008 21:17:27

cuttychu
Junior Member

Re: [SOLVED] can NOT show correct Language

Hi,
My Traditional_Chinese.php file looks good
I can see all the Chinese are translated correctly.


Very few times (not stable) I can see the Chinese shown in module ( never in front end User Menu).
front end User Menu and backend admin must in English.

#12 03 Dec 2008 22:58:50

franchard
New member

Re: [SOLVED] can NOT show correct Language

Adrien wrote:

So if I understand, the Acajoom module and the Acajoom component on the frontend and backend is not displayed in the right language...
Could you please edit the file "class.acajoom.php" that you will find in the folder "administrator/components/com_acajoom/classes" and you should see around line 37 this code :


Code:

if (file_exists ( ACA_PATH_LANG . ACA_CONFIG_LANG . '.php')) {
    require_once( ACA_PATH_LANG . ACA_CONFIG_LANG . '.php');
} else {
    require_once( ACA_PATH_LANG . 'english.php');
}

Could you please add this code just before :

Code:

echo '<br/>Your language : '.ACA_CONFIG_LANG.'<br/>';

So you should now see:

Code:

echo '<br/>Your language : '.ACA_CONFIG_LANG.'<br/>';
if (file_exists ( ACA_PATH_LANG . ACA_CONFIG_LANG . '.php')) {
    require_once( ACA_PATH_LANG . ACA_CONFIG_LANG . '.php');
} else {
    require_once( ACA_PATH_LANG . 'english.php');
}

Then check your website and you should see the name of the file Acajoom tries to load... could you please tell me what's the value?

I've the same :  $subscriber->language_iso  = 'eng';
I'm in FRENCH.
My problem : Importation of names with french special characters (from CSV in UTF8)
Same solution apply ? Other one ?

#13 04 Dec 2008 07:13:03

cuttychu
Junior Member

Re: [SOLVED] can NOT show correct Language

I also notice that if i login back end in English mode and create an subscriber then database all the field language_iso = 'eng'
if I login as Chinese mode and create new subscriber then the language_iso = null, does this parameter impact the error?

Thanks,

#14 04 Dec 2008 10:55:49

Adrien
Administrator

Re: [SOLVED] can NOT show correct Language

The language_iso field has absolutely no impact at all on any screen. It's a "planned" feature but actually doesn't affect anything.

Franchard, we added a utf8_encode when you import from csv file since Acajoom 2.1.0, if you use an older version please upgrade and let us know if that's fixed.

Cuttychu, apparently the Traditional_Chinese.php file is always loaded properly, nevertheless, because of a wrong encoding, it seems that it's displayed with "?" in your website instead of the good characters. So it's definitely a problem of encoding. Could you please make sure your website is configured to be displayed in utf-8 ? If not, either we should change the encoding format of your website into utf-8 or encode differently the traditional_chinese.php file for Acajoom.
What's the url of your website? So I can have a quick look?


Please check 

Sorry. You have to be registered to access this content.

and existing replies before posting on our forum!

Best Regards,
Adrien

#15 04 Dec 2008 12:56:34

franchard
New member

Re: [SOLVED] can NOT show correct Language

Adrien wrote:

The language_iso field has absolutely no impact at all on any screen. It's a "planned" feature but actually doesn't affect anything.

Franchard, we added a utf8_encode when you import from csv file since Acajoom 2.1.0, if you use an older version please upgrade and let us know if that's fixed.

Adrien, I use version News 3.0.7-French

In database I have : language_iso = 'eng';
In class.subscribers.php, I have : $subscriber->language_iso = 'eng';

I have tried to import CSV in these formats : UTF8, Western 8859-1

The problem is still there : French characters are not displayed correctly

[UPDATE]

I have tested this and it's work :
In class.subscribers.php, I have deleted : $subscriber->language_iso = 'eng';
From subscribers list : delete one subscriber with special characters
Reimported my list
Now, Special characters of this name are displayed correctly.
Conclusion : I should delete all subscribers before reimporting my list
Question : How can I flush all my subscribers in batch before reimporting my list?

#16 04 Dec 2008 13:22:11

Adrien
Administrator

Re: [SOLVED] can NOT show correct Language

Franchard,

Can you see properly French characters in the component (menu title, buttons, explanations...) ?
If so, do you have any problem with French characters when you insert a new user through the "standard" interface (not using the import feature)?
If not, when you edit an imported user with wrong characters, are you able to change it, save it again and the character is fine?

(I simply want to isolate properly the problem, which is a completely different problem than Cuttychu).

If you answered Yes,No,Yes to those questions, you can try to import with the ISO format... which should do the job properly


Please check 

Sorry. You have to be registered to access this content.

and existing replies before posting on our forum!

Best Regards,
Adrien

#17 04 Dec 2008 13:32:36

franchard
New member

Re: [SOLVED] can NOT show correct Language

Adrien wrote:

Franchard,

Can you see properly French characters in the component (menu title, buttons, explanations...) ?
If so, do you have any problem with French characters when you insert a new user through the "standard" interface (not using the import feature)?
If not, when you edit an imported user with wrong characters, are you able to change it, save it again and the character is fine?

(I simply want to isolate properly the problem, which is a completely different problem than Cuttychu).

If you answered Yes,No,Yes to those questions, you can try to import with the ISO format... which should do the job properly

My answer is Yes, No, Yes but the ISO format doesn't works for me.

Did you see the Update in my previous message ? :

I have tested this and it's work :
In class.subscribers.php, I have deleted : $subscriber->language_iso = 'eng';
From subscribers list : delete one subscriber with special characters
Reimported my list
Now, Special characters of this name are displayed correctly.
Conclusion : I should delete all subscribers before reimporting my list
Question : How can I flush all my subscribers in batch before reimporting my list?

#18 04 Dec 2008 13:39:32

Adrien
Administrator

Re: [SOLVED] can NOT show correct Language

I didn't see your update.

Well, yes, if you didn't delete the subscribers before reimporting, the fact that you changed the encoding format could not help (because Acajoom does not reimport the subscribers if the e-mail is already there). But I'm still convinced it's not because of the language_iso variable! wink

So this query will remove your subscribers :

Code:

DELETE FROM jos_acajoom_subscribers where id > XXX

(Replace XXX by the id of the first user imported)


And then clean up your queue table with this query :

Code:

DELETE Q.* FROM `jos_acajoom_queue` AS Q
LEFT JOIN jos_acajoom_subscribers AS S
on S.id = Q.subscriber_id WHERE S.id IS NULL ;

That will do the job.


Please check 

Sorry. You have to be registered to access this content.

and existing replies before posting on our forum!

Best Regards,
Adrien

#19 04 Dec 2008 14:53:54

franchard
New member

Re: [SOLVED] can NOT show correct Language

Adrien wrote:


If you answered Yes,No,Yes to those questions, you can try to import with the ISO format... which should do the job properly

Done... and it's work !! With new and fresh subscribers DB. Thanks !!!

#20 05 Dec 2008 05:42:12

cuttychu
Junior Member

Re: [SOLVED] can NOT show correct Language

please see

Sorry. You have to be registered to access this content.


and

Sorry. You have to be registered to access this content.



The rest of Chinese encoding are correct but the news letter show the ??
The correct Chinese is the news-letter title I saved in UTF-8 database, so it is OK

Your language : traditional_chinese

??
??
?? HTML?

but if you go to

Sorry. You have to be registered to access this content.



this is the only place that encoding become Ok

By the way, the front end and backend the encoding admin are always wrong  ---shown as ?????

#21 05 Dec 2008 11:47:15

Adrien
Administrator

Re: [SOLVED] can NOT show correct Language

I'm afraid I don't see the difference between those pages (in the source code) so I'm not sure why it's displayed properly on one of them but not on the others.
I suppose the com_content must do something on the encoding which is not done on the other components but I don't know what... sad
The traditional_chinese file is already encoded in UTF-8 so we should not have issue... sad

I will do deeper research on the issue.


Please check 

Sorry. You have to be registered to access this content.

and existing replies before posting on our forum!

Best Regards,
Adrien

#22 06 Dec 2008 00:34:04

cuttychu
Junior Member

Re: [SOLVED] can NOT show correct Language

if it is components issue then why back-end admin and front-end "User Menu" are not working properly either? :dry:

I try different templates and have same issue.

The funny part is I try Italian and Svenska and both work fine... except Traditional_chinese
I compare them, they do have compa::encodeutf in language file, but I put compa::encodeutf into my Traditional_chinese.php then different funny characters show....

:blink:

#23 08 Dec 2008 00:54:22

cuttychu
Junior Member

Re: [SOLVED] can NOT show correct Language

Hi,
We have urgent to upgrade your Pro function. can you make sure the Traditional_Chinese is OK before we can purchase and upgrade?

Thanks a lot.

Cutty

#24 08 Dec 2008 10:49:17

Adrien
Administrator

Re: [SOLVED] can NOT show correct Language

Cuttychu, I can assure you I would love to make it working properly but I really don't know what's the issue.
I tried to switch my test website in traditional_chinese with Acajoom and didn't have any problem. sad


Please check 

Sorry. You have to be registered to access this content.

and existing replies before posting on our forum!

Best Regards,
Adrien

#25 08 Dec 2008 13:01:13

seamionews
New member

Re: [SOLVED] can NOT show correct Language

Hi,
We already purchase the Pro version and the Traditional Chinese is still the only one have problem.

-------------------------------------------------
My site: 

Sorry. You have to be registered to access this content.


Acajoom Version Acajoom PRO 3.0.9
Maintenance Tuesday, 08 December 2009
-------------------------------------------------

Can you check our website again?

Sorry. You have to be registered to access this content.


--in Chinese-- show ??

Sorry. You have to be registered to access this content.


--in Italian --works fine

other language are all works fine.

Sorry. You have to be registered to access this content.

Forum Tools