A-Z list in different language?

Tasos
Tasos
Offline
0
how can i change/add this list to have more options? i am Greek and i was wondering about adding Greek letters to this list also. Is this possible?
Responses (5)
  • Accepted Answer

    Wednesday, April 29 2009, 06:03 PM - #Permalink
    0
    yes, you can do it but you'll have to do it manually (sorry, I didnt thinked in Greek letters when I programed it :) )

    do you know some PHP ? you'll have some small modifications on a file
    The reply is currently minimized Show
  • Accepted Answer

    Tasos
    Tasos
    Offline
    Wednesday, April 29 2009, 08:11 PM - #Permalink
    0
    hm i could give it a try , can you give me some directions which file is it i have to modify ?
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, April 29 2009, 08:46 PM - #Permalink
    0
    sure

    open

    components/com_muscol/helpers/helpers.php

    on line 98 you'll find this:

    $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","123");


    this is where the array of letters is created. however, is not here where you have to make the modification. a little above, on line 69 is where every letter is printed

    so, what I suggest:

    add this line between line 68 and 69:

    $greek_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","123" => "A");


    as you see, I'm creating a new associative array. I didnt translated the letters (I wrote "A" in all of them), but of course you should replace those with alpha, beta, gamma, etc, so it looks like.. "A" => "alpha_caracter" etc.

    then just a last small modification: on line 69 (now its 70 because we added a line) there's a
    $lletra
    variable. just replace it with
    $greek_letters[$lletra]


    and everything should work just fine

    tell me if there's something you don't understand or if I can help you in anything else

    cheers,
    Germi
    The reply is currently minimized Show
  • Accepted Answer

    Arker
    Arker
    Offline
    Sunday, December 18 2016, 10:48 AM - #Permalink
    0
    If i wanna add some new letters so i add like this $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","123","က","ခ","ဂ","င","စ",);

    but it does not work in version 2.4.8 . can u help me please?
    • Germinal Camps
      more than a month ago
      Hi,

      you don't seem to be a verified user in our website. When did you purchase Music Collection?
    The reply is currently minimized Show
  • Accepted Answer

    Arker
    Arker
    Offline
    Sunday, December 18 2016, 10:51 AM - #Permalink
    0
    1
    The reply is currently minimized Show
Your Reply