Userlevel descriptions bug 0.9-beta2

Found a bug? Tell us!!
Post Reply
Judebert

Userlevel descriptions bug 0.9-beta2

Post 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.
Guest

Re: Userlevel descriptions bug 0.9-beta2

Post 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
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post 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]
Last edited by judebert on Mon Oct 17, 2005 10:27 pm, edited 1 time in total.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hm, the photos do not seem to be online anymore? I'm just redirected to your blog...?!

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Sigh.

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Sigh.

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply