• Skip to primary navigation
  • Skip to main content

BookingWP™

WordPress Appointment Booking Plugins for WooCommerce

  • Get Appointments
  • Contact
  • My Account

Re: Translations of Bizznis child theme

Home › Forums › Deprecated › Bizznis › Translations of Bizznis child theme

Log in
Zeljan Topic
Support
12 years, 9 months ago

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.

  1. Go to your active child theme folder and create a folder called languages.
  2. Upload your translation files (your .mo and .po files) to the languages folder you just created.
  3. 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');

  4. 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.

Follow @bookingwp 900+ followers

  • About
  • Blog
  • Support
  • Terms
  • Privacy

© BookingWP™