Fix broken subject line that I doubt has worked since we went rg=0
[squirrelmail.git] / functions / i18n.php
index 31721903dfa8b998f8190a2f02b5503b95020eb7..cc9e3f9d3e00e9c540c24773d31b20e88bf7784c 100644 (file)
@@ -25,7 +25,13 @@ function charset_decode ($charset, $string) {
     }
 
     /* All HTML special characters are 7 bit and can be replaced first */
-    $string = htmlspecialchars ($string);
+    
+    /* NOTE Marc Groot Koerkamp: This is the wrong place to do 
+       htmlspecialchars, It should be done before the echo.
+       By doing it here we get double htmlspecialchars calls which translates
+        < => &lt; => &amp;lt;
+    */
+    //$string = htmlspecialchars ($string);
 
     $charset = strtolower($charset);
 
@@ -1354,6 +1360,9 @@ $languages['he_IL']['CHARSET'] = 'windows-1255';
 $languages['he_IL']['DIR']     = 'rtl';
 $languages['he']['ALIAS']      = 'he_IL';
 
+$languages['vi_VN']['NAME']    = 'Vietnamese';
+$languages['vi_VN']['CHARSET'] = 'utf-8';
+$languages['vi']['ALIAS'] = 'vi_VN';
 
 /* Detect whether gettext is installed. */
 $gettext_flags = 0;