The multilingual display of "out of stock" is not possible by setting this textarea as multilingual variable is not working.
here is a workaround:
<?php
$language = i18n_get_lang();
// echo $language; // test if $language is not empty
if ($language == "es") {
// first language option (es)
print "<span class=\"uc-outofstock\">PLACE THE TEXT HERE IN SPANISH</span>";}
else if ($language == "de") {
// second language option (de)
print "<span class=\"uc-outofstock\">PLACE THE TEXT HERE IN GERMAN</span>";}
else {
// if no language or english print this:
print "<span class=\"uc-outofstock\">PLACE THE TEXT HERE IN ENGLISH</span>";}
?>
Comments
Comment #1
blecheimer commentedthis does not work in views
Comment #2
fabio84I think my patch addresses the same problem: #732446: Making "out of stock" message a "multilingual variable"
Comment #3
hanoiiI think #2 is a better approach to this issue, so let's follow discussions there.
Comment #4
blecheimer commentedthank you for your patch