AndyB
Well-known member
I have an add-on called Weekly Digest:
https://xenforo.com/community/resources/weekly-digest.3777/
It runs from a XenForo Cron once a week. Everything is fine, except for those forums which run other languages besides English.
What I would like to know is in the PHP which the Cron runs, I have several phrases, for example:
is there a way I can specify which language to select for this phrase? I know I could do a direct query on the database, but it would be nice if there was an easier way.
Thank you.
https://xenforo.com/community/resources/weekly-digest.3777/
It runs from a XenForo Cron once a week. Everything is fine, except for those forums which run other languages besides English.
What I would like to know is in the PHP which the Cron runs, I have several phrases, for example:
PHP:
// get subject
$subject = new XenForo_Phrase('weeklydigest_subject');
is there a way I can specify which language to select for this phrase? I know I could do a direct query on the database, but it would be nice if there was an easier way.
Thank you.