Page 1 of 1

Language file

Posted: 2019-11-27 12:55
by bescott53
Hi board, looking in the language file, at the membership profile translations:

Code: Select all

$Translation['Hello User'] = 'Hello %s!';
how do i change this to show the custom 1 entry, where do i find the variables used. I looked into the /admin/incFunctions.php but couldnt see it in there.

Re: Language file

Posted: 2019-11-27 15:09
by onoehring
Hi,

why not simply add your line to it?
(Code not tested)
Somewhere in your code add

Code: Select all

$Translation['Hello User'].= '\nThis is your new line';
Notice the .= which should add to the current string the new text.
\n should create a new line

Olaf

Re: Language file

Posted: 2019-12-01 18:49
by bescott53
Olaf, not sure I understand your suggestion. the variable used in the language file %s is for the username. I do not see how hard coding a line of text will give me the custom1?

Code: Select all

'Hello %s!'

Re: Language file

Posted: 2019-12-01 21:18
by pbottcher
Hi,

this is not possible, as the %s is just replaced by the username.

If you want to change that you need to edit the membership_profile.php around line 116.