MyBB Community Forums

Full Version: adapt agreement description fields
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,

In the admin CP

.../admin/index.php?module=config-languages&action=quick_phrases&lang=english

I can adapt the text that is being shown in the registration agreement.

I have translated the labels in this form, but in the 'description' fields the words
agreement_1, agreement_2 .../ agreement_5 are still being shown.

The language file config_languages.lang.php doesn't contain the variables for these 'description fields'.

Does anybody know where I can adapt the contents of theseĀ 'description fields' ?

Thanks.
they appear from languages.php file (~\admin\modules\config\languages.php) [GitHub Link]
however not sure if they can be changed easily as the variables have the same names !
@.m.

Thank you.
Yes, I found that too, but since there must be a distinction between the array of variables and the description of the variables (which becomes very clear if you inspect the source of the html-page), I thought it might be stored elsewhere.
They're the language entry keys and don't need translation, if I understand OP correctly.

https://github.com/mybb/mybb/blob/mybb_1...hp#L86-L91

https://github.com/mybb/mybb/blob/mybb_1...hp#L53-L57
See the screenprint.

I don't need/want the circled descriptions.
How to remove them ?
Hmm, maybe change this line https://github.com/mybb/mybb/blob/mybb_1...s.php#L355 :
			$form_container->output_row($description, $phrase, $form->generate_text_area("edit[$phrase]", $value, array('id' => 'lang_'.$phrase, 'rows' => 2, 'class' => "langeditor_textarea_edit {$quickphrases_dir_class}")), 'lang_'.$phrase, array('width' => '50%'));
into
			$form_container->output_row($description, '', $form->generate_text_area("edit[$phrase]", $value, array('id' => 'lang_'.$phrase, 'rows' => 2, 'class' => "langeditor_textarea_edit {$quickphrases_dir_class}")), 'lang_'.$phrase, array('width' => '50%'));
@noyle

Thank you.
I implemented and tested, and .... it worked as expected: the descriptions are gone.

But it strikes me as odd, that in this case no descrription variable was used,
As far as I can see it is the only place in myBB. So to me it looks that this could be part of the improvement of this 1.8.22 version

Cheers
The above mentioned descriptions are just raw language keys that don't need translation. See my reply above https://community.mybb.com/thread-228213...pid1351387
If they are shown in the ACP, and myBB is based on a mulitlingual concept, for which the language files are being introduced it is an anomaly that not everything in any UI can be translated. (see the image in my earlier post)