Translate custom values in CakePHP 2.3 -
how can use __( )
in cakephp translate variable/custom values? like, strings, integer or decimal values?
for example:
__('you have $16.52 in wallet')
i try use sprintf
but doesn't work, that:
sprintf(__("table %s can't have status changed busy. please check number , try again"), $table_num)
using >= 2.0:
__('you have %s in wallet', '$16.52');
as __() has %s replacement built in now.
Comments
Post a Comment