I see your point.
As Bizznis is a parent theme, you can override every file with your child theme, language files included. Here’s what you have to do in order to keep your Bizznis powered website translated even after updates.
- Go to your active child theme folder and create a folder called languages.
- Upload your translation files (your .mo and .po files) to the languages folder you just created.
- Next up, we need to tell Bizznis we want it to look for translation files in your Child Theme folder instead of the Bizznis folder. We need the following code pasted in your Child Theme’s functions.php:
// Child Theme Language override
define('BIZZNIS_LANGUAGES_DIR', STYLESHEETPATH.'/languages');define('BIZZNIS_LANGUAGES_URL', STYLESHEETPATH.'/languages'); - This snippet needs to go before the following code:
load_template( get_template_directory() . '/lib/init.php' );
but after the opening
<?php
That’s it. Now your site will always remain translated. Do keep in mind that a bigger Bizznis update (e.g. from 1.0.x to 1.1) will probably contain new untranslated texts in the new Bizznis .po file found in the /lib/languages/ folder.