- Posts: 2165
Question Recursive gettext call?
- WGroleau
- Topic Author
- Offline
- Platinum Member
Less
More
14 years 6 months ago #1
by WGroleau
--
Wes Groleau
UniGen.us/
Recursive gettext call? was created by WGroleau
I don’t know whether this is possible, but it would be convenient if we could say
at help_text.php:2296 and other places like that..
Code:
$text=i18n::translate('Assign the default language for the site.<br /><br />When <b>%s</b> is set, users can override this setting through their browser\'s preferred language configuration, configuration options on their Account page, or through links or buttons on most <b>webtrees</b> pages.',i18n::translate('Allow user to change language'));
--
Wes Groleau
UniGen.us/
Please Log in or Create an account to join the conversation.
- fisharebest
- Away
- Administrator
14 years 6 months ago #2
by fisharebest
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Replied by fisharebest on topic Re: Recursive gettext call?
Yes, this is possible. It would also allow you to make the embedded string a link to the help page for that topic.
I would suggest rephrasing the message to make the context a little clearer.
"When <b>%s</b> is set"
"When the <b>%s</b> option is set".
If we make it a link, I would also get rid of the bold markup.
I would suggest rephrasing the message to make the context a little clearer.
"When <b>%s</b> is set"
"When the <b>%s</b> option is set".
If we make it a link, I would also get rid of the bold markup.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- WGroleau
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 2165
14 years 6 months ago #3
by WGroleau
--
Wes Groleau
UniGen.us/
Replied by WGroleau on topic Re: Recursive gettext call?
I came across three or four other help texts that were similar. In PGV, they all had embedded pgv_lang[] references.
--
Wes Groleau
UniGen.us/
Please Log in or Create an account to join the conversation.