Web based family history software

Question Recursive gettext call?

  • WGroleau
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
14 years 6 months ago #1 by WGroleau
Recursive gettext call? was created by WGroleau
I don’t know whether this is possible, but it would be convenient if we could say
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'));
at help_text.php:2296 and other places like that..

--
Wes Groleau
UniGen.us/

Please Log in or Create an account to join the conversation.

  • fisharebest
  • Away
  • Administrator
  • Administrator
More
14 years 6 months ago #2 by fisharebest
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.

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
  • Platinum Member
More
14 years 6 months ago #3 by WGroleau
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.

Powered by Kunena Forum