Moodle 2.0 - shortening activity names in navigation leads to problems

Moodle 2.0 - shortening activity names in navigation leads to problems

Nosūtīja Oleg Sychev
Atbilžu skaits: 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).
Vidējais novērtējums: -
Atbildot uz Oleg Sychev

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

Nosūtīja 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


Atbildot uz Sam Hemelryk

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

Nosūtīja 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.
Atbildot uz Hubert Chathi

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

Nosūtīja 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 smaidīgs

Cheers
Sam
Atbildot uz Sam Hemelryk

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

Nosūtīja 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 smaidīgs