Simply you can change current lang to AR and then get your translate and then get it back
$SESSION->lang = $course_module->lang; $x = get_string("lessontitle", "block_smartteacher") $SESSION->lang = "en"
no x is in $course_module->lang lang
x
$course_module->lang