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
-
Accepted Answer
-
Accepted Answer
0sure
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
variable. just replace it with$lletra
$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 -
Accepted Answer
0If 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 Campsmore than a month agoHi,
you don't seem to be a verified user in our website. When did you purchase Music Collection?
-
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 »