Joomla-constant used: USERNAME

Phoca Guestbook - creating guestbooks in Joomla! CMS
jmeyerdo
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 11 Mar 2008, 21:57

Hi!First

Post by jmeyerdo »

Hi!

First of all: Thank you very much for your really great Joomla-Addons!

I noticed yesterday that you are using the language-constant USERNAME for your Guestbook. The same constant is used by Joomla itself.
So the translation for the Guestbook is "author" and for Joomla is it "username". So for me the text of the login-box changes when visiting the Guestbook.
Perhaps you can change this in later versions.

Kind regards,
Jens
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Hi, please, where di

Post by Jan »

Hi, please, where did you find that the translation for username is author?

Jan
If you find Phoca extensions useful, please support the project
jmeyerdo
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 11 Mar 2008, 21:57

Hi!From

Post by jmeyerdo »

Hi!

From my German language file:

USERNAME=Author

As I can see the constant USERNAME is used for the author of a guestbook-entry. For non-registered guests this is not the username, isn't it?!

Kind regards, Jens
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Hi, sorry I didn

Post by Jan »

Hi, sorry I didn't do the german language file, in en-GB there is:
USERNAME=Username...

so please change it to your own (Username)
If you find Phoca extensions useful, please support the project
jmeyerdo
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 11 Mar 2008, 21:57

Hi!No -

Post by jmeyerdo »

Hi!

No - it is not a problem with the translation. Of course I can change the translation to "Username" (= Benutzername). But this translation is not correct with entries from non-registered users. In this case "author" is the better translation.

The problem in fact is, that Joomla (and other components like CommunityBuilder) already uses the constant USERNAME. But IMHO this is not the correct constant/translation for the sender/author/writer of a guestbook-entry.

Kind regards, Jens
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

But Phoca Guestbook

Post by Jan »

But Phoca Guestbook doesn't use it in the frontend, so you can delete it, Phoca Guestbook uses JText::_('Name');, so the login box should be independent on Phoca Guestbook JText::_('Name');

So if you delete the USERNAME=Username, you get in your login box USERNAME=Username and in Phoca Guestbook Name=Name

Jan
// in the next versions, USERNAME will be deleted from language file and USERNAME used in admin will be renamed into NAME... (which is used now in front)
If you find Phoca extensions useful, please support the project
jmeyerdo
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 11 Mar 2008, 21:57

Aaah, this worked fo

Post by jmeyerdo »

Aaah, this worked for me!
Sorry, I did not notice that this constant is not/no longer used by the guestbook.

Thanks again for your efforts and your support,
kind regards!
Jens
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Post by Jan »

If you find Phoca extensions useful, please support the project
Post Reply