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

blecheimer’s picture

this does not work in views

fabio84’s picture

I think my patch addresses the same problem: #732446: Making "out of stock" message a "multilingual variable"

hanoii’s picture

Status: Needs review » Closed (duplicate)

I think #2 is a better approach to this issue, so let's follow discussions there.

blecheimer’s picture

thank you for your patch