Skip to Content Skip to Menu

Impossible to translate the Pending Approval Email

  • yann.fr
  • yann.fr
  • OFFLINE
  • Posts: 33
  • Thanks: 1
  • Karma: 1
12 years 10 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
Code:
$returnText = $text; // not yet: CBTxt::T( $text );
The good code is
Code:
$returnText = CBTxt::T( $text );

Please Log in or Create an account to join the conversation.

  • beat
  • beat
  • OFFLINE
  • Posts: 2169
  • Thanks: 463
  • Karma: 352
12 years 10 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 or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum