Removed legacy i18n support + the $dir variable in favor of __DIR__

Change-Id: I918715e444935aa6422a4dd37c92ccf22b7ea7f1