]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Locale/String.pm
PriceSource: Spalte vor Preis und Rabatt anzeigen.
[mfinanz.git] / SL / Locale / String.pm
index 7afcaa4519e7b67fa6c399d5227673fe4073805b..e05ae6abedc3841e14a2bc3aafa059e9a8d738d1 100644 (file)
@@ -22,7 +22,11 @@ sub t8 {
   shift if $_[0] eq __PACKAGE__;
 
   my $string = shift;
-  return SL::Locale::String->new(untranslated => $string, args => \@_);
+  return SL::Locale::String->new(untranslated => $string, args => [ @_ ]);
+}
+
+sub TO_JSON {
+  return $_[0]->translated;
 }
 
 1;