alphabet ical bar change

Chadi
Chadi
Offline
0
Hello,

the site language is Arabic language. So, how can I change the Latin characters to Arabic characters ?

Regards,
Chadi
Responses (13)
  • Accepted Answer

    Sunday, May 24 2009, 01:06 PM - #Permalink
    0
    The reply is currently minimized Show
  • Accepted Answer

    Chadi
    Chadi
    Offline
    Sunday, May 24 2009, 02:50 PM - #Permalink
    0
    Thx
    but not possible to do it, because the number of Arabic characters more than Latin characters.

    Regards,
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, May 24 2009, 08:53 PM - #Permalink
    0
    oh, 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.. :)
    The reply is currently minimized Show
  • Accepted Answer

    Chadi
    Chadi
    Offline
    Monday, May 25 2009, 08:34 PM - #Permalink
    0
    Hello,

    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,
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, May 26 2009, 02:54 PM - #Permalink
    0
    so, its 28 characters instead of 26, right?

    one question.... I guess an URL cannot contain arabic characters, right?

    I'm gonna think in the best way to do this... (I think the best way will be simply map 2 arabic letters into numbers... just for the URLs, I mean )

    I'll tell you something :)
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, May 26 2009, 04:23 PM - #Permalink
    0
    lets 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
    $lletra
    variable. just replace it with
    $arabic_letters[$lletra]
    The reply is currently minimized Show
  • Accepted Answer

    Chadi
    Chadi
    Offline
    Wednesday, May 27 2009, 01:46 PM - #Permalink
    0
    You 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
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, May 27 2009, 02:19 PM - #Permalink
    0
    oh :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
    The reply is currently minimized Show
  • Accepted Answer

    Chadi
    Chadi
    Offline
    Wednesday, May 27 2009, 10:08 PM - #Permalink
    0
    I have tried, but no way for all page. There is now a new problem :)

    The songs not get played!

    Regards,
    Chadi
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, May 28 2009, 10:27 AM - #Permalink
    0
    but the breadcrumb worked or not?

    what you mean the songs not get played?
    The reply is currently minimized Show
  • Accepted Answer

    Chadi
    Chadi
    Offline
    Thursday, May 28 2009, 08:41 PM - #Permalink
    0
    Hello,

    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
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, May 28 2009, 09:46 PM - #Permalink
    0
    yes, send me the user and pass and I'll check it

    it must be some configuration wrong, we'll solve it in no-time :)

    Germi
    The reply is currently minimized Show
  • Accepted Answer

    Chadi
    Chadi
    Offline
    Saturday, May 30 2009, 12:15 PM - #Permalink
    0
    Hello,
    please check your Email

    Regards,
    Chadi
    The reply is currently minimized Show
Your Reply