Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Add new text to language text
If I want to edit the email which is sent out for TXP, do I have to add a new language to the database, or can I just add it in txplib_admin.php here:
Another thing – I know quite a few of you edit the core textpattern files (I think :) ) – how do you keep track of these changes for when you upgrade at a later date… what is the programming norm (I’m not a programmer, in fact I shouldn’t be allowed to use the word? :))
<?php <-- I added that to make code show
function send_password($RealName, $name, $email, $password)
{
global $sitename;
require_privs('admin.edit');
$message = gTxt('greeting').' '.$RealName.','.
n.n.gTxt('you_have_been_registered').' '.$sitename.
n.n.gTxt('your_login_is').': '.$name.
n.gTxt('your_password_is').': '.$password.
n.n.gTxt('log_in_at_admin').': '.hu.'textpattern/index.php';
n.n.gTxt('log_in_at').': '.hu.'index.php';
return txpMail($email, "[$sitename] ".gTxt('your_login_info'), $message);
}
?>
Offline
#2 2009-04-08 16:15:59
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Add new text to language text
Yes, you edit that piece of code (we should actually put them in the database where they belong – I’ll do a patch and send it in).
Use versioning software (Subversion, Git, Bazaar, etc).
Offline
Re: Add new text to language text
Thanks V much Mary :)
Offline
Re: Add new text to language text
Did this get done (Can’t find it)? Or are there any plans for it?
For some things, like emails I think it would be pretty helpful – what do you reckon?
Offline
Pages: 1