Languages

VIP has his own file structur – also for languages. See here for details: https://docs.wpvip.com/wordpress-skeleton/languages-directory/

Core, themes and (mu-)plugins usually have their own language directories. But VIP want to have the translation files all in his own custom “languages” folder in the root of the cluster repositories.

For this we have a script: https://github.com/funke-pe/fd-vip-scripts/blob/main/scripts/vip-languages-manager.sh

How to bring all the languages files into the VIP own languages folder?

  • Start your dev-env.
    • E.g: vip dev-env start --slug rwp-local
  • Open an terminal in the root of your dev-env.
  • If you use the script for the fist time:
    • chmod a+x /scripts/fd-vip-scripts/scripts/vip-languages-manager.sh
  • Start the script:
    • ./scripts/fd-vip-scripts/scripts/vip-languages-manager.sh
    • The script will first remove the old files an then install all available translations from core, themes and (mu-)plugins
  • Commit the changes from ./languages into your branch.