Page 1 of 1
Userlevel descriptions bug 0.9-beta2
Posted: Sat Oct 15, 2005 3:45 am
by Judebert
I'm trying to edit my users (mostly duplicates imported while b2evo debugging), and the descriptions are all of the form "USERLEVEL_ADMIN_DESC". I assume this should be defined in a language include somewhere; I'm using English.
I encounter this extremely minor irritation while editing the user groups and on the confirmation screen after the user groups have been saved. On the username listing screen, everything is fine.
Re: Userlevel descriptions bug 0.9-beta2
Posted: Sat Oct 15, 2005 2:45 pm
by Guest
Whic Serendipity version are you using? Can you check your lang/serendipity_lang_en.inc.php file and see if that constant is declared there?
I don't really understand where that happens, could you create a screenshot so that I can fix it?
Best regards,
Garvin
Posted: Sun Oct 16, 2005 3:20 am
by judebert
Im using 0.9-beta2.
Hmmm... Linux... xfce4... *grunt* ...ugh. Hmmm-hmmm... mmm-hmmm... ah! Gimp! *snap*
[url]
http://judebert.com/wasted_youth/photos/s9y_admin1.gif[/url]
Looks fine there. But the next two use the actual constant name:
[url]
http://judebert.com/wasted_youth/photos/s9y_admin2.gif[/url]
[url]
http://judebert.com/wasted_youth/photos/s9y_admin3.gif[/url]
Checked the language files; it's defined with @define, in the English and German versions.
I'm baffled. If it were more important, I'd be hunting it down myself.
[size=9][i]Edited to provide proper extensions.[/i][/size]
Posted: Mon Oct 17, 2005 8:46 am
by garvinhicking
Hm, the photos do not seem to be online anymore? I'm just redirected to your blog...?!
Best regards,
Garvin
Sigh.
Posted: Mon Oct 17, 2005 10:25 pm
by judebert
That's because I used the wrong extension. :oops:
I can only assume the blog redirection is due to apache mod_rewrite; I'm going to have to look up how that works someday. Soon.
Here are the REAL screenshots.
http://judebert.com/wasted_youth/photos/s9y_admin1.gif
Looks fine there. But the next two use the actual constant name:
http://judebert.com/wasted_youth/photos/s9y_admin2.gif
http://judebert.com/wasted_youth/photos/s9y_admin3.gif
The red arrows are my addition, of course.
Re: Sigh.
Posted: Tue Oct 18, 2005 11:11 am
by garvinhicking
Ah! Now I see it. Well, this is a mixture of intentional behaviour and an oddity.
To explain it, I need to go a bit further.
In previous serendipity versions, the usergroup (Admin, Editor, Chief) names were translated. German users would see that they are a "Redakteur", while english people see "Editor". Now when the user groups were defined, they were localized - just like a category you can only give a hardcoded string as the name.
Now the old 3 usergroups needed to be migrated, but we would also not like to loose the name of the national usergroup. Thus we introduced a special constant, that was used at this name. When that constant was found, it was converted to "Redakteur" or "Editor". The constant name is saved as the usergroup.
So when you edit it, you see the constant name - if you leave it like that, the usergroup name will be auto-translated. But you can also enter "Editor" hard-coded, but then german people will see "Editor" for their usergroup name.
I don't know how to keep that feature of translated usergroups but enter the right value in the input field, so I must say that I'd better like it that way with keeping a translated value - and still letting people enter a full new string in that place...?!
Best regards,
Garvin