Support » Plugin: Booking Addon for WooCommerce » How to Localize / Translate Plugin

  • Plugin Author mvvapps


    In version 1.4.4, we have made all strings translatable(Internationalization (i18n )), in earlier versions, it was only the front end texts are translatable .
    The localization methods is little different from other plugins, as our plugin using JavaScript for developing back end interface.

    So the translation template consists of two files, one for the PHP part , and one for the JavaScript . Which can find under the folder languages inside the plugin folder

    The .pot file which contains the PHP files texts which can be translated as you doing other WordPress plugins, using tools PoEdit or LocoTranlate
    Inside the languages folder you can find another file with extensions .json (booking-for-woocommerce-en_US-mvvwb-admin.json) .
    This is the translation template file for Back-end UI interfaces.
    You can copy this json file to a folder /wp-content/languages/
    and rename the file by changing the language code (en_US) to your language code.
    For eg, You want to translate to Spanish, the file name will be booking-for-woocommerce-es_ES-mvvwb-admin.json
    Now you can edit this json file and add your translations. You can use any json editing tools for this purpose, even a simple text editor will be enough normally.

    Apart from all this, WordPress Plugin repository is providing option to translate all this at . But it might take much time to get completed and approved, Though, Your contributions will be helpful for every one

    • This topic was modified 1 year, 6 months ago by mvvapps.
Viewing 15 replies - 1 through 15 (of 30 total)
Viewing 15 replies - 1 through 15 (of 30 total)
  • You must be logged in to reply to this topic.