Impossible to translate the Pending Approval Email

12 years 4 months ago #184709 by yann.fr
It's impossible to translate the Pending Approval Email.

The texte of the email is in "ue_config.php".

The translation must be in "cbteamplugins_language.php"

But there is an error in "plugin.foundation.php" line 196.

The wrong code is
$returnText = $text;	// not yet: CBTxt::T( $text );
The good code is
$returnText = CBTxt::T( $text );

Please Log in to join the conversation.

12 years 4 months ago #184745 by beat
Pending Approval Email can be translated by the user in the defines language file. E.g. put _UE_MYAPPROVALMAIL in the field in CB config, and a define for that in the language file. That's mentioned in the doc.

Idea here is that as it's a user-provided field in the main config, the use will want to personalize the text anyway.

But it's right that it would be nice to be able to translate its default text.

The proposed code change would work, but would start translating new way old defines which are not in defines file. That's something that was scheduled for CB 2.0.

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.178 seconds

Facebook Twitter LinkedIn