Help modifying Login module text

10 years 4 months ago #158261 by justmebg
Help modifying Login module text was created by justmebg
I need to shorten three of the text strings that are shown in the CB Login module to fit it into my template, and I am having a hard time figuring out where to do this. I have looked for these files in the language folders and can't seem to find anything for this module. Can someone please point me in the right direction?

I need to change (screenshot attached):
"You have X new private messages" to "X New Messages" and
"You have no new private messages" to "My Messages"
"You have x pending connection requests" to "x Pending Connections"


CB 1.4
Joomla 1.5

Beth G
Attachments:

Please Log in to join the conversation.

10 years 4 months ago #158265 by nant
Replied by nant on topic Re: Help modifying Login module text
I downloaded CB 1.4 English language plugin from here:
forge.joomlapolis.com/projects/lan-cb-en/files

Then I see the following:
DEFINE('_UE_PM_MESSAGES_HAVE'	, 'You have');
DEFINE('_UE_PM_NEW_MESSAGE'		, 'new private message');
DEFINE('_UE_PM_NEW_MESSAGES'	, 'new private messages');
DEFINE('_UE_PM_NO_MESSAGES'		, 'You have no new private messages');

line 637 - 640 language.php
The following user(s) said Thank You: justmebg

Please Log in to join the conversation.

10 years 4 months ago #158266 by justmebg
Replied by justmebg on topic Re: Help modifying Login module text
True to form, as soon as I posted this I found my own answer. *sigh*

components/com_comprofiler/plugin/language/default_language/default_language.php
Line 635

Beth G

Please Log in to join the conversation.

10 years 4 months ago #158267 by justmebg
Replied by justmebg on topic Re: Help modifying Login module text

nant wrote: I downloaded CB 1.4 English language plugin from here:
forge.joomlapolis.com/projects/lan-cb-en/files
line 637 - 640 language.php


I modified the default file - will this get overwritten when I upgrade CB? If that's the case, then I will want to use the English language plugin, correct?

Beth G

Please Log in to join the conversation.

10 years 4 months ago #158354 by krileon
Replied by krileon on topic Re: Help modifying Login module text

I modified the default file - will this get overwritten when I upgrade CB?

Yes, any changes to default files will be lost on upgrade.

then I will want to use the English language plugin, correct?

Yes, as the english plugin only upgrades if you manually re-install it.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.531 seconds

Facebook Twitter LinkedIn