KEY word inside translation?

japmedia

New Member
YetiShare User
Apr 19, 2016
7
0
0
It's possible to use key words inside translation?

Example in key : upload_multiple_files_at_once_and_keep_them
Translation: Upload multiple files at once and keep them how_long_to_keep_files days on this site. If you're using FireFox or Chrome, you can simply drag & drop your files to begin uploading.
 

adam

Administrator
Staff member
Dec 5, 2009
2,043
108
63
Only if it's passed into the function when the text is output. For example:

Code:
echo t('files_kept_for_x_days', 'Files kept for [[[DAYS]]] days.', array('DAYS' => ((int)UserPeer::getDaysToKeepInactiveFiles(2))));
[[[DAYS]]] is replaced with the value passed in after the translation text.

You'd need to look in the code for your translation and check the function call to see what's included.