Matthew Hawley
Well-known member
So I added an option to a phrase and this is what shows up.

Any suggestions? Thanks!
@Chris Deeming @Waindigo

Any suggestions? Thanks!
@Chris Deeming @Waindigo
Last edited:
Options aren't evaluated in phrases. You'd have to use a named variable {singular} and pass it in via the template:
{xen:phrase x, singular={yourOption}}
I'm on mobile so that syntax is probably not correct, but that's what you'll have to do.
Yes.
{xen:phrase x, singular={yourOption}
Wait so I have to do:
for EACH phrase?Code:{xen:phrase x, singular={yourOption}
Yes. If you want to define a {singular} variable for the phrase. If verify my syntax before you do a full on replace.
{xen:phrase adds_update_to_watched_resource, noncapitalsingular={nonCapitalizedRMSingularPhrases}
{xen:phrase xi_blog_x_added_you_as_an_author_to_blog_entry_y,
'name={xen:helper username, $user, 'subject'}',
'title=<a href="{xen:link 'blog-entries', $content}" class="PopupItemLink">{$content.title}</a>'}
For one, you didn't close your opening curly brace. And no, it isn't.
HTML:{xen:phrase xi_blog_x_added_you_as_an_author_to_blog_entry_y, 'name={xen:helper username, $user, 'subject'}', 'title=<a href="{xen:link 'blog-entries', $content}" class="PopupItemLink">{$content.title}</a>'}
{xen:phrase adds_update_to_watched_resource, noncapitalsingular={nonCapitalizedRMSingularPhrases}
{xen:phrase adds_update_to_watched_resource, noncapitalsingular={'nonCapitalizedRMSingularPhrases'}}
{xen:phrase adds_update_to_watched_resource, 'noncapitalsingular={nonCapitalizedRMSingularPhrases}'}
We use essential cookies to make this site work, and optional cookies to enhance your experience.