Moodle

Automatic translation of role names

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.7.1
  • Fix Version/s: DEV backlog
  • Component/s: Roles / Access
  • Labels:
  • Affected Branches:
    MOODLE_17_STABLE

Description

Originally the names for student and teacher could be changed in courses, I guess we could simulate it now with:

1/ empty role name means use shortname to get rolename using get_string(); if name present in role definition use format_string() that handles multilang names
2/ add role name plural field to handle plurals correctly
3/ add function get_role_name() and get_role_name_plural() and search&replace in codebase

ideas?

Issue Links

Activity

Hide
Martin Dougiamas added a comment -

MOstly I agree (especially I like the idea of using shortname as a string name in language packs).

Some thinking out loud ...:

1) We still need some sort of GUI so that teachers have more control over role names for each context. This would be something stored in a new table maybe. roleid contextid forcename

2) However, following on from this Roles can be confusing enough already ... I'm a bit worried about how confusing it could be once roles can have different names in different places ...

We need to discuss all this further I think ...

Show
Martin Dougiamas added a comment - MOstly I agree (especially I like the idea of using shortname as a string name in language packs). Some thinking out loud ...: 1) We still need some sort of GUI so that teachers have more control over role names for each context. This would be something stored in a new table maybe. roleid contextid forcename 2) However, following on from this Roles can be confusing enough already ... I'm a bit worried about how confusing it could be once roles can have different names in different places ... We need to discuss all this further I think ...
Hide
Ralf Hilgenstock added a comment -

The option to change the role name of teachers and students was an often used feature in 1.6 and before. I couldn't see any confusing.

There is an discussion about this topic at: http://moodle.org/mod/forum/discuss.php?d=58764

Show
Ralf Hilgenstock added a comment - The option to change the role name of teachers and students was an often used feature in 1.6 and before. I couldn't see any confusing. There is an discussion about this topic at: http://moodle.org/mod/forum/discuss.php?d=58764
Hide
Robert Brenstein added a comment -

Being able to have Role names in multiple languages, that is switchable through multilang filter, can be an important issue for sites which are multilingual. It has always been a sore to the eyes to have the entire GUI change language from, let's say German to English, but have the Teacher further referred to as "Lehrer". Or as it is now in 1.7, when I go to the Role defining page while using Moodle in Polish and have all in Polish except for the role names and their description.

The idea of using language files for Roles sounds really appealing to me. So does having plurals. Being able to edit role names and descirptions by editing language file (roles.php?) would make the interface simpler.

Show
Robert Brenstein added a comment - Being able to have Role names in multiple languages, that is switchable through multilang filter, can be an important issue for sites which are multilingual. It has always been a sore to the eyes to have the entire GUI change language from, let's say German to English, but have the Teacher further referred to as "Lehrer". Or as it is now in 1.7, when I go to the Role defining page while using Moodle in Polish and have all in Polish except for the role names and their description. The idea of using language files for Roles sounds really appealing to me. So does having plurals. Being able to edit role names and descirptions by editing language file (roles.php?) would make the interface simpler.
Hide
David Mudrak added a comment -

+1 for skodak's proposal. This implies to extend current functionality of lang.php, so site admins are allowed to add _local strings not being present in master package (so called orphaned strings). Or to create a special GUI for translating rolenames.

-1 for renaming roles in different context. There is already a workaround: duplicate a role and rename it. Roles may be quite difficult to manage right now, let us not make it even more difficult. Or - maybe, a special role type behaving like a symlink to another role? Could legacy roles be used for this?

Show
David Mudrak added a comment - +1 for skodak's proposal. This implies to extend current functionality of lang.php, so site admins are allowed to add _local strings not being present in master package (so called orphaned strings). Or to create a special GUI for translating rolenames. -1 for renaming roles in different context. There is already a workaround: duplicate a role and rename it. Roles may be quite difficult to manage right now, let us not make it even more difficult. Or - maybe, a special role type behaving like a symlink to another role? Could legacy roles be used for this?
Hide
Séverin Terrier added a comment -

I totally agree with David Mudrak !

Show
Séverin Terrier added a comment - I totally agree with David Mudrak !
Hide
Leang Chumsoben added a comment - - edited

I have no comment on how to solve the problem but I totally agree with the suggestion (see also my proposal http://moodle.org/mod/forum/discuss.php?d=78700 )

Just a small addition; It would be also great if we can translate the ":" symbol next to the word "Teacher" in the course description. Not all languages (at least Khmer) use that symbol.

Show
Leang Chumsoben added a comment - - edited I have no comment on how to solve the problem but I totally agree with the suggestion (see also my proposal http://moodle.org/mod/forum/discuss.php?d=78700 ) Just a small addition; It would be also great if we can translate the ":" symbol next to the word "Teacher" in the course description. Not all languages (at least Khmer) use that symbol.
Hide
David Mudrak added a comment -

See MDL-12192 for translating ":" issue.

Show
David Mudrak added a comment - See MDL-12192 for translating ":" issue.

Dates

  • Created:
    Updated: