Arabic language, my comments after testing.

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-08-2007, 07:42 PM
New Pligger
 
Join Date: Apr 2007
Posts: 5
Hi,

i downloaded the latest pligg beta 9.

Im translating the language file to arabic, things are working fine, since these language settings are not saved in the db, its saved in lang.conf.

but i see that the tags created are saved in a table in the db.

so this is what happens:

when i create a tag, its displayed on the screen in the tag cloud section properly.

but the URL of the tag is displayed in this format:

http://path/search.php?search=%D8%A7...D8%A9&tag=true

any fix for this?

also, its strange, the arabic characters are displayed properly, but when i look in the table in the db, for the tags table, the characters are weird, like this:

الكويت

do i need to change any settings on that table in order for the tags to be shown properly?

another thing, if i create a category in arabic, the link of that category is shown properly

http://localhost/PliggTest/upcoming.php?category=العرب

the bold text is the arabic word.

HOWEVER,

when i click on that category link, all stories are listed, not only the stories in this category.


any help?

thanks
Reply With Quote
  #2 (permalink)  
Old 04-09-2007, 10:02 PM
New Pligger
 
Join Date: Apr 2007
Posts: 5
anyone aware of any fix?
Reply With Quote
  #3 (permalink)  
Old 04-10-2007, 01:22 AM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,215
you can fix the category bug by turning off friendly URLs for categories. admin > config > friendly urls > catgories. Change it to false and it will use the cateogry id number and not the name
Reply With Quote
  #4 (permalink)  
Old 04-10-2007, 02:53 AM
New Pligger
 
Join Date: Apr 2007
Posts: 5
kbeeveer,
its good that you replied.

i have that option to false already, its still using the category name.

Any other suggestions?
Reply With Quote
  #5 (permalink)  
Old 04-10-2007, 03:28 AM
savant's Avatar
Constant Pligger
 
Join Date: Apr 2006
Location: UK
Posts: 1,181
Quote:
Originally Posted by HiSoC8Y View Post
Hi,
when i create a tag, its displayed on the screen in the tag cloud section properly.

but the URL of the tag is displayed in this format:

http://path/search.php?search=%D8%A7...D8%A9&tag=true

any fix for this?
If you put your mouse over the link you should see the arabic characters. This is just the way utf-8 characters are represented.
This %D8%A7%D9%84%D8%B4%D8%A7%D8%B1%D9%82%D8%A9 is basically the same as the Arabic equivalent word.

http://www.w3.org/International/O-URL-code.html (W3c example)

Quote:
Originally Posted by HiSoC8Y View Post
also, its strange, the arabic characters are displayed properly, but when i look in the table in the db, for the tags table, the characters are weird, like this:

الكويت

do i need to change any settings on that table in order for the tags to be shown properly?
I've seen this with various different languages and i'm not sure if it's a mysql or phpmyadmin settings that needs changing. All i know is when php store utf-8 it comes up like that in phpmyadmin.
Reply With Quote
  #6 (permalink)  
Old 04-10-2007, 03:46 AM
New Pligger
 
Join Date: Apr 2007
Posts: 5
thanks savant.

really useful info.

do you have any solution to the category problem?
Reply With Quote
  #7 (permalink)  
Old 11-07-2007, 01:26 PM
New Pligger
Pligg Version: 9.8
Pligg Template: yget
 
Join Date: Oct 2007
Posts: 2
Category problem:

After searching and searching finally I revolved the problem

open the file: pligg/libs/search.php

search for the code:
Code:
//$catId = $db->get_var("SELECT category_id from " . table_categories . " where category_name = '" . $this->category . "';");
$catId = get_category_id($this->category);
replace it with this:

Code:
$catId = $db->get_var("SELECT category_id from " . table_categories . " where category_name = '" . $this->category . "';");
//$catId = get_category_id($this->category);
Enjoy..
---------

www.link-vote.com -- coming soon
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
PliggMo by nadia - Fully support UTF8 language (Thai) ♥ไทยจ้า♥ Techkr Questions and Comments 6 06-20-2009 11:25 AM
Arabic Language, Need to tansfer the whole page from left to right philiscute Questions and Comments 3 06-27-2008 06:41 PM
Arabic language Abdou23 Questions and Comments 2 06-27-2008 06:38 PM
arabic language in story title MazZziKa Questions and Comments 4 02-18-2007 08:54 PM
Arabic Language Support? sfouladi Questions and Comments 2 11-06-2006 11:28 AM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development