0
Hello,
the site language is Arabic language. So, how can I change the Latin characters to Arabic characters ?
Regards,
Chadi
the site language is Arabic language. So, how can I change the Latin characters to Arabic characters ?
Regards,
Chadi
Responses (13)
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
0oh, sure, I didn't think about that...
well, then you just should try to replace the array with a new array with the arabic characters.
honeslty, I dont know how does MySQL handles arabic characters. I hope & guess that there will be no problem. maybe you could send me a list of the arabic characters and I'll try if it works.. -
Accepted Answer
0Hello,
please could you see the attach file.. I hope that you will find a solution to this Arabic problem
[file name=Arabic_characters.txt size=413]http://www.joomlamusicsolutions.com/images/fbfiles/files/arabic_characters.txt[/file]
Regards, -
Accepted Answer
-
Accepted Answer
0lets try this:
open /administrator/components/com_muscol/views/artist/tmpl/form.php
and replace the array on line 29 for this new one:
$letters = array("A" => "arabic_character",
"B" => "arabic_character",
"C" => "arabic_character",
"D" => "arabic_character",
"E" => "arabic_character",
"F" => "arabic_character",
"G" => "arabic_character",
"H" => "arabic_character",
"I" => "arabic_character",
"J" => "arabic_character",
"K" => "arabic_character",
"L" => "arabic_character",
"M" => "arabic_character",
"N" => "arabic_character",
"O" => "arabic_character",
"P" => "arabic_character",
"Q" => "arabic_character",
"R" => "arabic_character",
"S" => "arabic_character",
"T" => "arabic_character",
"U" => "arabic_character",
"V" => "arabic_character",
"W" => "arabic_character",
"X" => "arabic_character",
"Y" => "arabic_character",
"Z" => "arabic_character",
"2" => "arabic_character",
"3" => "arabic_character",
"1" => "123"
);
replacing "arabic_character" for every character. YOU DONT NEED to try to make coincide the A character (and all the rest) with the equivalent arabic character, since some characters does not have arabic equivalence. so just write the characters in the order of arabic language, dont matter if "A" does not match "A equivalency" (you know what I mean?)
then just we will proceed likely in this thread: http://www.joomlamusicsolutions.com/en/forum/general/a-z-list-in-different-language.html#793
on file
components/com_muscol/helpers/helpers.php
on line 98 replace the existing array for this new one:
$inicials = array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","2","3","123");
add this line between line 68 and 69:
$arabic_letters = array("A" => "A","B" => "A","C" => "A","D" => "A","E" => "A","F" => "A","G" => "A","H" => "A","I" => "A","J" => "A","K" => "A","L" => "A","M" => "A","N" => "A","O" => "A","P" => "A","Q" => "A","R" => "A","S" => "A","T" => "A","U" => "A","V" => "A","W" => "A","X" => "A","Y" => "A","Z" => "A","2" => "A","3" => "A","123" => "A");
well, the array must be the same we created before, of course.
on line 69 (now its 70 because we added a line) there's a
variable. just replace it with$lletra
$arabic_letters[$lletra]
-
Accepted Answer
0You are the best
but we have now two small problems B) :
[img size=694]http://www.joomlamusicsolutions.com/images/fbfiles/images/muscol.jpg[/img]
1st: what is the way to make the letter in the "mod_breadcrumbs", also appears in Arabic?
2nd: width of Alphabetical bar, is it possible to be more?
thx for help -
Accepted Answer
0oh :lol: of course, I didnt' think in the breadcrumbs!
to solve it: you'll have to add (again!) an array on some files, one for each view (artists, artist, album & song)
open /components/com_muscol/views/artists/view.html.php
and find this line of code (it is on line 77 aprox):
$pathway->addItem($letter, 'index.php?option=com_muscol&view=artists&letter='.$letter);
just before this line, add an array (the same you have already added a thousand times:
$arabic_letters = array("A" => "A","B" => "A","C" => "A","D" => "A","E" => "A","F" => "A","G" => "A","H" => "A","I" => "A","J" => "A","K" => "A","L" => "A","M" => "A","N" => "A","O" => "A","P" => "A","Q" => "A","R" => "A","S" => "A","T" => "A","U" => "A","V" => "A","W" => "A","X" => "A","Y" => "A","Z" => "A","2" => "A","3" => "A","123" => "A");
of course every character being the arabic one
and now replace the line of code I told you before for this new one:
$pathway->addItem($arabic_letters[$letter], 'index.php?option=com_muscol&view=artists&letter='.$letter);
and that's it. Just do the same on this other 3 files (you'll have to find the line where the breadcrumb is created)
components/com_muscol/views/artist/view.html.php
components/com_muscol/views/album/view.html.php
components/com_muscol/views/song/view.html.php
to solve the alphabetical bar width, try to change the CSS property
file /components/com_muscol/assets/letter.css
on line 20 "ul.inicials" has its width set to 645px. I think you have to set it to 691 aprox /try also 690, 692.. I dont know wich one will fit better)
there you go!
Germi -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
0Hello,
when I try to hear a song, it does not work.
And when I try to download the song, shows the following error: 404 - Page Not Found
Hear song url: index.php?option=com_muscol&view=album&id=1&Itemid=272
download song url: index.php?option=com_muscol&view=file&format=raw&id=1&Itemid=272
If you can, you have time, I will send you the name and password to access the site.
Because it is still under construction.
And about width of the bar, the problem remained!
Regards,
Chadi -
Accepted Answer
Your Reply

Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »