Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-12-20 17:26:01

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,634
GitHub Twitter

Adding some new attributes into comment.php file

Hi all ;)

I know guys you don’t like the commenting system available into TXP ;)
The purpose of this feature request is to support multi-lingual comment form for international TXP websites.
Actually, there is no possibilities to translate all labels generated by the comment form.

Here is an exemple of code with new attributes that could be support several translations:

function commentForm($id, $atts=NULL)
	{
		global $prefs;
		extract($prefs);
		extract(lAtts(array(
			'isize'	  => '25',
			'msgrows'   => '5',
			'msgcols'   => '25',
			'msgstyle'  => '',
			'form'   => 'comment_form',
			'previewlabel'	=> gTxt('preview'),
			'submitlabel'	=> gTxt('submit'),
			'rememberlabel'	=> gTxt('remember'),
			'forgetlabel'	=> gTxt('forget')
		),$atts, 0));
(...) etc

previewlabel displays the text for preview button ; submitlabel displays the text into the submit button ; rememberlabel for the remember my infos button ; forgetlabel for the delete infos button.

These works fine in the commenting sys for txp-fr.net website: check-out here

Do you think this is a relevant request?

Best regards,
Ho Ho Ho :)

Last edited by Pat64 (2011-12-20 17:29:17)


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

Board footer

Powered by FluxBB