Skip to Content Skip to Menu

[SOLVED] CB 2RC2 - Translate "Your password... " on register screen

  • GUEST
10 years 2 months ago - 10 years 2 months ago #248411 by
Hello,


I'm trying CB2 on a test site in French. So I've made a basic translation of the default_language.

But, i'm totally unable to find where is defined the string :
"Your password will be sent to the above e-mail address. Once you have received your new password you can log in and change it.".
This string is displayed on the register screen because I've choose to send a default password to my tests users.

I've look in a lot of file, even directly in the database, with no success.

Can you help me ?
Last edit: 10 years 2 months ago by krileon.

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
10 years 2 months ago #248413 by nant

Coleargol wrote: Hello,


I'm trying CB2 on a test site in French. So I've made a basic translation of the default_language.

But, i'm totally unable to find where is defined the string :
"Your password will be sent to the above e-mail address. Once you have received your new password you can log in and change it.".
This string is displayed on the register screen because I've choose to send a default password to my tests users.

I've look in a lot of file, even directly in the database, with no success.

Can you help me ?


I see:

'UE_REG_COMPLETE_NOPASS' => '<div class="page-header"><h3>Sign Up Complete!</h3></div><p>Your password has been sent to the e-mail address you entered.</p><p>Please check your email (including your spambox). When you receive your password you will then be able to log in.</p>',

in the language.php file.

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

  • GUEST
10 years 2 months ago - 10 years 2 months ago #248452 by
I see this string in the langage.php, but it's not the text i got on the register screen.

This one said "Your password will be... " and not "Your password has been..."

When i activate the translations highlightings in the configuration the string is changed by "===>SENDING_PASSWORD<===", but i don't find this key in the langage.php.
Attachments:
Last edit: 10 years 2 months ago by .

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
10 years 2 months ago #248453 by nant

Coleargol wrote: I see this string in the langage.php, but it's not the text i got on the register screen.

This one said "Your password will be... " and not "Your password has been..."

When i activate the translations highlightings in the configuration the string is changed by "===>SENDING_PASSWORD<===", but i don't find this key in the langage.php.


Good catch!

FYI - with CB 2.0 we have created an AWK script that parses all source code files to pick-up CBTxt::T and CBTxt::Th language function usages and create the default language.php and admin_language.php files.

Your post helped us identify the single case where we had a capital H (CBTxt::TH) and so the AWK script was not picking it up.

I have attached latest language files for you (just unzip and replace them in your RC2 installation).

Thanks again for posting and helping us reach CB 2.0 stable as quickly as possible.

File Attachment:

File Name: newrc2langfiles.zip
File Size:65 KB
Attachments:

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

  • GUEST
10 years 2 months ago #248462 by
Thanks for your help,
Now I see the string.

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

  • GUEST
10 years 2 months ago - 10 years 2 months ago #248676 by
I have now the same problems with strings defined in the plugin/templates/default/default.php file. For exemple the SITENAME_HAS_TOTAL_REGISTERED_MEMBERS or USERS_COUNT_MEMBERS.
Thoses string are defined with CBTxt::Th, so your awk script must have seen them... But there aren't in the language.php file.

Edit : i've add those strings in the language.php, and it's working fine.
Last edit: 10 years 2 months ago by . Reason: Found a solution

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

Moderators: beatnantkrileon
Powered by Kunena Forum