Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-11-27 23:52:53

mephi
New Member
Registered: 2005-04-23
Posts: 2

changeable values of comment_preview and submit?

Hello,

I’m making bilungual website, which uses sections for the different languages and I’m stuck with this problem: <txp:comment_preview /> and <txp:comment_submit /> are displaying the same texts within the inputs on the different language sections. I need translated “preview” and “submit” in both languages.
Is there any elegant way to change the values of the input tags which this functions display?

I’m not php developer but it seems to me that the output comes from this funcion (placed in /publish/comment.php)
fInput(‘submit’, ‘preview’, gTxt(‘preview’), ‘button’)
which probably gets this ‘preview’ variable from the language vars.

Is there a way to override this so one can get <input type=“submit” id=“preview” value=“whatever may want” whithout any hardcoding?

Thank you for the attention

Offline

#2 2006-11-28 17:49:06

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: changeable values of comment_preview and submit?

It outputs the text according to the language set in your admin prefs. You’ll have to make a plugin if you want to do otherwise.

Offline

Board footer

Powered by FluxBB