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 sprintfbut 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

Popular posts from this blog

How to logout from a login page in asp.net -

Stack level too deep error after upgrade to rails 3.2 and ruby 1.9.3 -