Moodle 2.0 - shortening activity names in navigation leads to problems

Moodle 2.0 - shortening activity names in navigation leads to problems

by Oleg Sychev -
Number of replies: 4
Looking at the new 2.0 navigation interface, I could see that activity names are shortened both in navigation block and in breadcrumb.

That is worrying. On our university site I could see many activities named like "Training quiz on something" (or even "Training quiz #1"). In this case shortening often eat up the most important part of the activity name and makes it unusable. That's is no good at all.

P.S. Sometimes shortened text also has strange character, showed as rectangle, just before periods. Seems like a bug, but I could provide only Russian examples to duplicate it).
Average of ratings: -
In reply to Oleg Sychev

Re: Moodle 2.0 - shortening activity names in navigation leads to problems

by Sam Hemelryk -
Hi Oleg,

The new navigation code does indeed shorten strings that go into the navigation blocks, and I think you are right that it is not a great way to handle things.

I have filled a subtask against the main navigation task to look for a nice solution to this

MDL-14632

As for the rectangular characters I will have a look into this and see where it leads me.

Cheers
Sam


In reply to Sam Hemelryk

Re: Moodle 2.0 - shortening activity names in navigation leads to problems

by Hubert Chathi -
Without having looked at the code, my bet would be that the rectangular characters are due to the trimming botching some UTF-8 encoding.
In reply to Hubert Chathi

Re: Moodle 2.0 - shortening activity names in navigation leads to problems

by Sam Hemelryk -
Hi Hubert,
I think you are right about trimming + UTF-8 encoding being the cause of the botched characters.

I like you suggestion about trimming the middle of the string as well, cheers for the idea smile

Cheers
Sam
In reply to Sam Hemelryk

Re: Moodle 2.0 - shortening activity names in navigation leads to problems

by Oleg Sychev -
I'm agree about Unicode stuff. Example which renders me this error is: "Тренировочный тест №1" (without "" of course), rectangular character appears on the place of 'й' character (sorry, no access to testing site from there so no screenshot).

I replied on the tracker about suggestions, trimming the middle of the string is really good smile