Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7625827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:14:35+00:00 2026-05-31T05:14:35+00:00

Is it possible to print a variable inside the JText ie:- i need to

  • 0

Is it possible to print a variable inside the JText

ie:- i need to print $email to test whether it is nil or has value in it…

$this->setMessage(JText::_('COM_USERS_REGISTRATION_ACTIVATE_SUCCESS'));
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T05:14:36+00:00Added an answer on May 31, 2026 at 5:14 am

    The JText class has a static method ‘_’ which converts the string argument passed into it into another string, using the language files and settings appropriate for the context. If you want to see what is being passed to setMessage you could just try:

    echo 'DEBUG setMessage argument: "'.JText::_('COM_USERS_REGISTRATION_ACTIVATE_SUCCESS').'"';
    

    If you find that this reveals that _ is returning nothing, then it is likely an indication that there is not an entry for ‘COM_USERS_REGISTRATION_ACTIVATE_SUCCESS’ in the language file(s) being used.

    EDIT:

    If you need to append $email then just do this:

    $this->setMessage(JText::_('COM_USERS_REGISTRATION_ACTIVATE_SUCCESS').$email);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, this question with a difference... Is it possible to capture print output from
This predicate should print a list of size N containing possible permutations of 0
Possible Duplicate: Use a variable within a variable? Java Hi this is a general
is it possible to get the value of a final variable declared outside an
Possible Duplicate: Is there any way to do variable assignments directly inside a while(<here>)
Possible Duplicate: Why do I see strange values when I print uninitialized variables? Fun
Would it be possible to print Hello twice using single condition ? if condition
Is is possible to print the execution time of a shell command with following
Is it possible to print a random number in C++ from a set of
Is it possible to print full list without using cycle? I tried: Console.WriteLine([1;2;3;4;5]) and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.