6 CREATE OR REPLACE FUNCTION i18n_translate(text,text,text)
9 -- Copyright (c) 1999-2011 by OpenMFG LLC, d/b/a xTuple.
10 -- See www.xtuple.com/CPAL for the full text of the software license.
12 in_ltype ALIAS FOR $1;
14 in_inlang ALIAS FOR $3;
21 SELECT lval INTO ret FROM i18n
22 WHERE ltype=in_ltype AND lkey=in_lkey and inlang=in_inlang LIMIT 1;
30 LANGUAGE plpgsql VOLATILE
33 ALTER FUNCTION i18n_translate(text,text,text)