Croatian letters

Aperte
Aperte
Offline
0
Hi Germi,

I have a little problem. I would need for the letter bar to show croatian letters. Croatian letters are a normal alphabet we just have 5 special characters.

I know that I would have to change helpers.php file, but as I have read on the forum there might be a problem if there are more than 26 letters.

I've read this topic http://www.joomlamusicsolutions.com/en/forum/music-collection-extensions/how-to-have-a-z-bar-in-russian-3.html, but as I can see it's not resolved yet. At least, the number of characters part of the problem.

Could you please advise me what to do. To put it simple I just need to put 5 more characters in the array.

Thanks in advance
Responses (13)
  • Accepted Answer

    Tuesday, April 06 2010, 03:02 PM - #Permalink
    0
    well. the problem with the new letters is that I'm not sure that the URL can handle these characters.

    I mean, I think that "officialy" URL can have these kind of characters since a few time ago, but I'm not so sure of this will always work.

    so, first thing is... have you tried to just put these extra letters on the helpers.php file?

    of course, you'll also need to put them on the
    /administrator/components/com_muscol/views/artist/tmpl/form.php to be able to choose these characters when saving an artist.

    PS: do you have a croation translation for Music Collection? if you do, we'd really be happy if you want to share it with us! :)
    The reply is currently minimized Show
  • Accepted Answer

    Aperte
    Aperte
    Offline
    Wednesday, April 07 2010, 08:23 AM - #Permalink
    0
    Hi Germi,

    Thanks for the quick response.

    Ok so I have tried to just add the letters. In principle it works, but it does have some problems:

    1. I have just one letter I've added in the "select letter" dropdown menu in the backend. That is not a big problem.

    2. One of the letters I've added shows up at the end of the list instead of being 6th letter from the beggining. That is a bit problematic.

    3. When I assign a letter to an artist and save it, it works fine, except that when I try to edit that artist the letter is not showing up, and I have to select it again.

    Can you help me with these issues?

    As far as the URLs goes, I don't understand what you mean. Do you mean URLs when I have SEF enabled? If that is the case I don't plan to have SEF enabled anyway so that is not a problem.

    All the links to the artist pages work fine.

    About the Croatian translation, no problem, I will just need some time, I have most of the frontend translated, but haven't translated anything in the backend. I will send you the translation as soon as I have everything translated.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, April 07 2010, 05:09 PM - #Permalink
    0
    1 - dont understand... :)

    2 - well, you need to put it on 6th position of course!

    3 - hmm... well.. that was my biggest fear. that is what I told you, I wasnt sure if these characters would be handled correctly on the database... in wich file you added the letters?

    no, I didnt meant SEF... just meant that this:

    &letter=A

    is correct on an URL, but this:

    $letter=ç

    (ç being an "strange" ;) char), I'm not so sure...

    about the croatian translation: there's no need to translate the backned if you dont want, just the frontend is enough :) but both would be of course fantastic

    Germi
    The reply is currently minimized Show
  • Accepted Answer

    Aperte
    Aperte
    Offline
    Thursday, April 08 2010, 07:26 AM - #Permalink
    0
    germi wrote:
    1 - dont understand... :)


    In the backend when you click on artists, you get the table with artists names and letters assigned to them. On the right hand side you have dropdown menu it says "select letter". New letters don't show up in that dropdown menu.

    2 - well, you need to put it on 6th position of course!


    It is on the 6th position in the array but it shows up last when I list the artists. Other letters show up fine, at their respective positions.

    3 - hmm... well.. that was my biggest fear. that is what I told you, I wasnt sure if these characters would be handled correctly on the database... in wich file you added the letters?


    I've added letters at helpers.php file and form.php file.

    no, I didnt meant SEF... just meant that this:

    &letter=A

    is correct on an URL, but this:

    $letter=ç

    (ç being an "strange" ;) char), I'm not so sure...


    This is not a problem, you helped me while ago with those letters, I don't have the usual setup of the script. It looks like this:

    http://hitrecords.apertemedia.hr/index.php?option=com_muscol&view=artists&layout=detailed&Itemid=6

    As you can see, I don't click on the letters at all so I don't have to worry about that.

    about the croatian translation: there's no need to translate the backned if you dont want, just the frontend is enough :) but both would be of course fantastic


    I will translate it all, you have a great script here and I want to make a contribution. :)

    Germi
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, April 08 2010, 03:21 PM - #Permalink
    0
    1 - well of course, you'll have to add these ones, too! more files for you to modify... (views/artists/tmpl/default.php)

    2) ah ok. well.. I dont think you can solve that

    3) oh, I see :) I didnt remember that

    :)
    The reply is currently minimized Show
  • Accepted Answer

    Aperte
    Aperte
    Offline
    Wednesday, April 21 2010, 08:56 AM - #Permalink
    0
    Hi,

    just wanted to let you know that I've found the solution for the letters not being in the right order.

    I had to change collation in the table jos_muscol_artists in the field letter. The collation that works is latin2_croatian_ci. UTF 8 doesn't order croatian letter properly.

    Hope this helps someone.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, April 21 2010, 09:21 AM - #Permalink
    0
    great!! :)
    The reply is currently minimized Show
  • Accepted Answer

    svarmuza2
    svarmuza2
    Offline
    Wednesday, October 22 2014, 10:52 AM - #Permalink
    0
    Greetings,
    I know this is an old thread, but I have this problem described above (and with Croatian letters too :)
    I managed to include these letters to show right on site http://www.soundguardian.com/recenzije-glazbenih-izdanja/artists/detailed ... but when I click for example Č or Ć ... they both lead to .../artists/c ... so I cant list artist that have names with Croatian letters

    I guess this is because SEF component is enabled

    Is there a way to solve this problem...
    Thanks,
    Sasa
    The reply is currently minimized Show
  • Accepted Answer

    Dragutin
    Dragutin
    Offline
    Wednesday, October 22 2014, 11:52 AM - #Permalink
    0
    Again me as subscriber:

    I know this is an old thread, but I have this problem described above (and with Croatian letters too :)
    I managed to include these letters to show right on site http://www.soundguardian.com/recenzije-glazbenih-izdanja/artists/detailed ... but when I click for example Č or Ć ... they both lead to .../artists/c ... so I cant list artist that have names with Croatian letters

    I guess this is because SEF component is enabled

    Is there a way to solve this problem...
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, October 23 2014, 10:29 AM - #Permalink
    0
    where re the letters?
    The reply is currently minimized Show
  • Accepted Answer

    Dragutin
    Dragutin
    Offline
    Thursday, October 23 2014, 10:48 AM - #Permalink
    0
    There they are: http://www.soundguardian.com/recenzije-glazbenih-izdanja/artists/detailed
    whether you press letter "Š" or "S" it shows the same artists.
    The reply is currently minimized Show
  • Accepted Answer

    Dragutin
    Dragutin
    Offline
    Friday, October 24 2014, 05:07 AM - #Permalink
    0
    When I disable SEF component, still it doesn't work.

    In administration, I changed one artist name and last name to start with Š... and selected Š from drop down

    ... but in frontend it lists this artist under S.... no matter if SEF is turned on or off

    And if user „svarmuza2“ could join conversation it would be great cause he is our administrator.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, October 24 2014, 11:02 AM - #Permalink
    0
    I would need to access the backend of your site to check.
    The reply is currently minimized Show
Your Reply