Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN v2.10.01 - All Issues
Author Message
Meoff
Regular
Regular



Joined: Aug 05, 2006
Posts: 55
Location: Thailand

PostPosted: Fri Aug 24, 2007 3:34 am Reply with quote

I've developed a website that uses two languages, English and Thai.

When I try to create a page of content in Thai language, I select "Thai" from the drop down menu at the bottom before saving the page.

Unfortunately, this setting is not retained, and the pages show as "English" in the drop down menu. Furthermore, the page calls the English homepage / blocks modules etc. The worst part is that the Thai fonts don't display properly on the "English" content pages.

I don't have this problem with the Messages module. I can create a message for the home page, and save it as Thai format. Upon switching to Thai language, the Thai home page displays correctly with all of the other Thai elements.

Does anyone have any insight as to why the content module doesn't save in Thai language format and always reverts the page to English format? Any feedback would be gratefully received, while I still have some hair that I haven't pulled out yet.

And- off topic - but have to say that Version 2.10 is absolutely fantastic. My hat is off to everyone who worked hard to bring this release to life. Particularly Montego... your "TegoNuke" is absolutely awesome. Have been watching my stats increase... more than doubled my traffic since installing, and still gaining!

Looking forward to any replies on my content module problem!

Rgds

Meoff

_________________
I don't know how I got to be over the hill without ever reaching the top!? 
View user's profile Send private message Visit poster's website
Gremmie
Former Moderator in Good Standing



Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Fri Aug 24, 2007 7:03 am Reply with quote

It is quite possible it is just broken. There are a lot of little language bugs in Nuke. When I get a chance I will poke around in the code and see if I see anything obvious.

_________________
Only registered users can see links on this board! Get registered or login! - An Event Calendar for PHP-Nuke
Only registered users can see links on this board! Get registered or login! - A Google Maps Nuke Module 
View user's profile Send private message
Meoff







PostPosted: Fri Aug 24, 2007 7:34 am Reply with quote

Thanks for the reply Gremmie.... look forward to hearing if you find anything.

Some more info, if it helps; This website has been continually upgraded. PHP Nuke 7.8 to RN 2.02 to RN 2.10. After installing the latest upgrade, I created a new "unused" directory in the root "languages" folder and moved all of the unwanted languages there.

I tried moving some languages back to activate them, and this problem seems to happen in all languages. None will retain the language setting and are reverted back to English when I re-open the page with the "Edit" command to check.

Anyone else have a multi-language website and experiencing anything like this?
 
Susann
Moderator



Joined: Dec 19, 2004
Posts: 3191
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Fri Aug 24, 2007 9:15 am Reply with quote

Make sure all language files are in the correct folder.Languages you don´t need just don´t upload. Thai works for my testsite I can´t find any error. However, my small problem is I can not read or understand anything in Thai. Smile
Beneed this on your site using thai I get only a lot of ถ้าท่านยังไม่ได้เป็นสมาชิก? ท่านสามารถ สมัครได้ที่นี่ ในการเป็นสมาชิก
while this works on my multilingual site perfectly whenever I choose another language.
Maybe visit: http:www.ravennuke.com
and check out there the language feature.
 
View user's profile Send private message
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Fri Aug 24, 2007 11:47 pm Reply with quote

Quote:

Montego... your "TegoNuke" is absolutely awesome. Have been watching my stats increase... more than doubled my traffic since installing, and still gaining!


Thanks, very much appreciated.
Cheers

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Gremmie







PostPosted: Thu Aug 30, 2007 6:41 pm Reply with quote

I've looked into this a little bit.

Can you look in the database with phpMyAdmin and see if that content has saved the correct language?

The code fills the select box based on what language files exist in the language directory. It looks to me like it should get saved properly at first glance.
 
Meoff







PostPosted: Fri Aug 31, 2007 5:07 am Reply with quote

Hello Gremmie,

Thanks for taking the time to apply some superior knowledge to this.

I looked in the PHP MyAdmin, and the languages are indeed being stored correctly in the "clanguage" field of the "nuke_pages" table.

To be doubly sure , I loaded up the lang-german to the root language folder (since Susann is from Germany, and it seems to work for her) and tried creating content pages in Thai and German, and then checked the PHP MyAdmin. The table shows the correct languages, but the edit page reverts to "Sprache: English" and "ภาษา: English"

I went to the ravennuke.com site and tried out the Thai language there, and I was able to post a reply to a news topic in Thai, as I saw that Susann had done in German. However, the news module is not the problem, and I couldn't try creating a content page without admin access.

I've got 3 separate RN 2.1 sites running now- two are continually upgraded and one is a fresh new install, and this problem is happening across all the sites. I checked each one, just to rule out a bad installation / missing files / something like that.

I've found a quick and dirty solution... posted my content as news stories, and linked to the news pages - not displayed on the home page, which has worked, but not a very elegant solution. would love to know how to get the content pages figured out.

Rgds,

Meoff
 
Gremmie







PostPosted: Fri Aug 31, 2007 7:14 am Reply with quote

Thanks for this information, I will look into it a little more this weekend.
 
Gremmie







PostPosted: Fri Aug 31, 2007 7:16 am Reply with quote

Oh and it would help me out if you could tell me what is in the clanguage field of the nuke_pages table. Does it say thai, german, lang-german, etc? Thank you.
 
Meoff







PostPosted: Fri Aug 31, 2007 8:43 am Reply with quote

It says simply thai, german, english..... all lowercase with no "lang" or any other prefix.
 
Susann







PostPosted: Fri Aug 31, 2007 1:45 pm Reply with quote

Any time you edit the content the page reverse back (for me to German) and you need to save it again in the selected language for this content. I think thats normal behavior. However, the translation of thai is incomplete so its a bit mishmash and there are indeed strange characters between some thai words.

I created on one of my sites some content in different languages with and without category and still don´t see there a problem. I don´t use any editor and you ?
 
Meoff







PostPosted: Sat Sep 01, 2007 8:46 am Reply with quote

Hello Susann, thanks for replying.

In the news module, the selected language setting is retained when I revisit the editing page and look at it without actually making any edits or changes. The content module behaves differently, by reverting back to English.

Content category or no category doesn't make any difference for me.

I'm using the FCK Editor that comes with the installation, but don't envision that this is any problem because the stories that I have entered to the news module can display correctly.

Any more ideas or feedback gratefully accepted!
 
Gremmie







PostPosted: Fri Sep 14, 2007 8:21 am Reply with quote

Meoff, if you are still out there.... Smile

In modules/Content/admin/index.php find the function content_edit().

In that function there is a chunk of code that looks like this:
Code:


        for ($i=0; $i < sizeof($languageslist); $i++) {
            if($languageslist[$i]!="") {
                echo "<option value=\"$languageslist[$i]\" ";
                if($languageslist[$i]==$language) echo "selected";
                echo ">".ucfirst($languageslist[$i])."</option>\n";
            }
        }


Change one line only to make it look like this:
Code:


        for ($i=0; $i < sizeof($languageslist); $i++) {
            if($languageslist[$i]!="") {
                echo "<option value=\"$languageslist[$i]\" ";
                if($languageslist[$i]==$myclanguage) echo "selected";   // <--- this line has the change!!!!
                echo ">".ucfirst($languageslist[$i])."</option>\n";
            }
        }


Does that fix your problem?

Make sure you only change that code in the content_edit() function. There is another chunk of code in the content() function just like it, leave that one alone.
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN v2.10.01 - All Issues

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©