@Martin_Meier said:
is it possible to make this: 36: echo $PollForm->Close(T('Submit','Submit')); instead of this:echo $PollForm->Close('Submit'); to let it translate?
The form class automatically passes frontend text through the translate function. Using $Definition['Submit'] = 'Close'; works without modification.
Comments
Have a look:
$Definition['Option #%d'] = 'Antwort Nr.%d';
It works for the first and second option but not for 3, 4 and so on.
@Martin_Meier I am pretty sure I got this now. 1.3.4 is live in the GitHub repo: https://github.com/hgtonight/Plugin-DiscussionPolls
Thank you again for finding all the issues. Please report more!
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
YAY! You did it!
Many thanks!
I keep up the detective work to keep you busy
I think I am in love with parts of this community
edit: HA! fast enough...
is it possible to make this:
36: echo $PollForm->Close(T('Submit','Submit'));
instead of this:echo $PollForm->Close('Submit');
to let it translate?The form class automatically passes frontend text through the translate function. Using
$Definition['Submit'] = 'Close';
works without modification.Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.