Project:Ubercart Out of stock Notification
Version:6.x-1.3
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (duplicate)

Issue Summary

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

#1

this does not work in views

#2

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

#3

Status:needs review» closed (duplicate)

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

#4

thank you for your patch

nobody click here