Closed (duplicate)
Project:
Drupal core
Version:
6.x-dev
Component:
base system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Feb 2006 at 19:04 UTC
Updated:
8 Oct 2009 at 07:00 UTC
There are several scripts that use this code: variable_get('anonymous', 'Anonymous') (note it doesn't use function t()). Good! The value for this variable can be changed via admin/settings. Is it approach correct?
I believe it isn't. With sites where more than one language is enabled, there's no way to translate it. Shouldn't it be more correct to remove this variable from the database and simply use t('Anonymous') ?
PS: I can't believe it wasn't reported before. I tried to search, with no success. Please, correct me if I'm wrong.
Comments
Comment #1
chx commentedhttp://drupal.org/node/5570 this is an issue being debated only for two years now...
Comment #2
markus_petrux commentedYeah, but that issue talks about user roles, which seem to be untraslatable.
This issue is about the name of user 0, which could be easily make translatable, if it was not set as a system variable, just using function t().
Comment #3
markus_petrux commentedBoth issues would render differents patches. But, feel free to revert to dup this one, if that makes things easier to track.
Comment #4
chx commentedI merge the two issues.
Comment #5
markus_petrux commentedkilles said: "The anon user name is different as there is a variable to change it." here:
http://drupal.org/node/5570
As it seems it is goind to be addressed in that issue, let me re-open this one.
I think the Anonymous user name implemented as a system variable cannot be translated. This is a problem for sites that have more than one language available.
I believe it could be removed as a system variable and implemented using t('Anonymous') so it could be translated.
Comment #6
markus_petrux commentedComment #7
Crell commentedWas this fixed in the D6 cycle somewhere? I vaguely recall it but I'm not sure. If so, someone please close it. :-)
Comment #8
aufumy commentedDid a grep in drupal6, it appears to have been fixed.
Comment #9
gpk commentedYes it was fixed here (Jan 2008): #18954: "anonymous user" and "authenticated user" are not translateable