Changes

From SME Server
Jump to navigationJump to search
Line 88: Line 88:     
Translates a string into the end-user’s preferred language by checking their HTTP_ACCEPT_LANG variable and looking up a lexicon hash for that language (if it exists).  If no translation can be found, returns the original string untranslated.
 
Translates a string into the end-user’s preferred language by checking their HTTP_ACCEPT_LANG variable and looking up a lexicon hash for that language (if it exists).  If no translation can be found, returns the original string untranslated.
Takes the text to translate as the first argument, and optionally, a hashref of variables for substitution as the second argument.
+
Takes the text to translate as the first argument, and optionally, a hashref of variables for substitution as the second argument.<br />
 +
 
 
WARNING WARNING WARNING: The internals of this routine will change significantly in version 0.60, when we remove Locale::Maketext from the equation.  However, its output should still be the same.  Just FYI.
 
WARNING WARNING WARNING: The internals of this routine will change significantly in version 0.60, when we remove Locale::Maketext from the equation.  However, its output should still be the same.  Just FYI.
  

Navigation menu