Search for Resources and Solutions

How to translate the PixaBay

As you know the PixaBay is available in many languages. Unfortunatelly their api don't support the search in many languages by default. Therefore you can adapt the search based on the user selected language.

Why this is important? Maybe your user don't knows the english language and won't be able to search for photos.

To allow the search in multiple languages:

  • Open the file application/base/user/apps/collection/posts/language/(your-language)/posts_user_lang.php
  • Add a new key: pixabay_language
  • The value should be the language code from here
  • If you won't add, by default will be english.

Was this article helpful?