Methods for multi-language web applications in PHP

I am trying to build a web application with multiple languages, just for my leisure/study. I am wondering if there's a better way than this. Environment PHP only. no framework or library so far.