[drupal-devel] [bug] make standard roles translatable
stefan nagtegaal
drupal-devel at drupal.org
Wed Aug 24 01:07:55 UTC 2005
Issue status update for
http://drupal.org/node/5570
Post a follow up:
http://drupal.org/project/comments/add/5570
Project: Drupal
Version: cvs
Component: user system
Category: bug reports
Priority: normal
Assigned to: Anonymous
Reported by: stefan nagtegaal
Updated by: stefan nagtegaal
Status: patch (code needs work)
Indeed Cvbge.. Even in the latest CVS version 24-08-2005 this is still
an issue..
It's the last 2 strings which could not be properly translated which
really frustrates me, and hopefully other users..
Probably we can fix this issue when adding id's to the roles? Or by
defining them as constants?
<?php
DEFINE('ANONYMOUS_USER', t('Anonymous user'));
DEFINE('AUTHENTICATED_USER', t('Authenticated user'));
?>
The pro's of the defined constants method is that we can also get rid
of the 'Anonymous user'-option on the settings page, because it becomes
translatable..
What do you think, will this work?
stefan nagtegaal
Previous comments:
------------------------------------------------------------------------
Sun, 01 Feb 2004 18:03:37 +0000 : stefan nagtegaal
There are several things that would need to be fixed before we are going
to release drupal 4.4. One of that is proper translation..
- The basic roles 'Anonymous user'/'Anonymous' & 'Authenticated user'
aren't translatable on the following places (admin >> users / admin >>
users >> roles / admin >> users >> permission / )
------------------------------------------------------------------------
Fri, 23 Jul 2004 17:19:35 +0000 : killes at www.drop.org
Changing title.
------------------------------------------------------------------------
Wed, 06 Oct 2004 09:53:48 +0000 : stefan nagtegaal
This is still a problem.. The default roles 'Anonymous user' and
'Authenticated user' can not be translated.
------------------------------------------------------------------------
Wed, 06 Oct 2004 12:55:38 +0000 : Axel
But why this bug is critical? Drupal works on such manner long time.
This bug don't prevent Drupal to work. I think priority of this bug
must be set as 'normal', but not 'critical'.
------------------------------------------------------------------------
Wed, 03 Nov 2004 18:53:46 +0000 : com2
I would say either committed to multilingual / localization or not.
Calling it a feature seems to say "translation has a low priority".
When that is the case, why all the trouble to localize? Jus drop
localization and make life easier!
All depends on the chosen concept of Drupal. If you choose Drupal to be
multilingual / localized, then this is definitely is a bug. You cannot
expect a non-english speaker to understand these special users.
What happens when I just translate them in table /role/? Would it break
Drupal?
------------------------------------------------------------------------
Wed, 04 May 2005 13:48:34 +0000 : schalker
As I can tell, standard roles still can not be translated. Is this
correct? Is there a work-around or some plan to implement this?
I'd agree with the former poster com2 that this is more a bug than a
feature request: I love the locale module, but I cannot see a reason
why almost everything is translateable, but not the standard roles. If
there is no reason for this behaviour /from a user-point-of-view/,
then this is a bug, I'd say.
------------------------------------------------------------------------
Wed, 04 May 2005 14:05:33 +0000 : schalker
Sorry, it's me again. I searched on and on to find a similar bug report,
but I haven't found one. So as two people think this is a bug, I change
the category of this issue back to "bug report".
------------------------------------------------------------------------
Tue, 09 Aug 2005 19:40:42 +0000 : Cvbge
Attachment: http://drupal.org/files/issues/translate_default_roles.diff (1.84 KB)
Patch not tested, but it's quite simple. I'd like to hear some thoughts
about t()ing default roles (anonymous and authenticated user).
------------------------------------------------------------------------
Tue, 09 Aug 2005 20:01:02 +0000 : Cvbge
Ok, this won't work, because roles are selected from db when put on
admin/access.
The only way I see to solve this (although it's still not clean) is to
a) make default roles editable (so user can change the 'anonymous user'
to something else), but not deletable
b) make sure anon user and auth user have static id
c) do not check in code for name, but for role id
Need to think about it...
More information about the drupal-devel
mailing list