The problem with this is if I didn’t even specify the English version of the slug, it will fail. If you want to make sure a word is defined, this is fine but I’d rather have the application continue working so I scrapped those tables and came up with the following concept:

Now, my PHP looks like:

<?= l10n('Logo Alt Text', $language_id) ?>

I pass along the pure English phrase, instead of a slug. The PHP function is as follows: