You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would be great to can change the text of the Frontend Snippet language strings.
Currently (as I far as I know) the only option is to change the names for the backend in lexicon?
The text was updated successfully, but these errors were encountered:
There's no need to change anything on Babel. You can do this already in several ways:
Use the default babelLink chunk and change the lexicons entries for babel.language_xy (as you said). But remember: this will also change the labels in the manager!
Create your own chunk and your own lexicon entries e.g. mysite.language_xy and in the chunk you'll use
[[%mysite.language_[[+cultureKey]]? &namespace=your-namespace &topic=your-topic]]
Create your own chunk and a snippet which generates the labels out of the cultureKey: Chunk:
<a href="[[+url]]>[[mySnippet? &cultureKey=[[+cultureKey]]
And in your snippet something like that:
$cultureKey = $modx->getOption(....);
$output = '';
switch ($cultureKey) {
case 'en':
$output = 'English Version';
break;
case 'de':
$output = 'German Version';
break;
default: $output = '???';
}
return $output;
Would be great to can change the text of the Frontend Snippet language strings.
Currently (as I far as I know) the only option is to change the names for the backend in lexicon?
The text was updated successfully, but these errors were encountered: