[[+placeholder:is=`0`:then=` // code `:else=` // code `]]
This question has been answered by Jako. See the first response.
What exactly (examples) do you want to change, depending on the context.
I'm sure, there are better ways, than using outputfilters for that use-case.
<div class="price"> <p class="pricetag">[[*productPrice]] [[++cultureKey:is=`de`:then=`Schweizer Franken pro Monat`:else=`Swiss Francs per month`]]</p> </div>
$modx->lexicon->load('yournamspace:default');[[loadMyLexicon]]
[[%francs_per_month]]
$cultureKey = $modx->getOption('cultureKey');
$output = $modx->getOption($cultureKey,$scriptProperties,'');
return $output;<?php $lang['_custom.test'] = 'This is a test.';
<?php $lang['_custom.test'] = 'Das ist ein Test';
[[%_custom.test? &namespace=`i18n`]]
core/components/i18n/lexicon/de/default.inc.php