Anyone knows how translate category names using this method?


  • Do you want to translate Category URL title too? Or just the category name?
    – Sobral
    Jun 17 '14 at 17:03
  • Only category name... Jun 19 '14 at 7:12
  • Have you looked at custom category fields with a similar naming construct? Jun 19 '14 at 11:17
  • OMG!!! It's very simple. Thank you and sorry but I'm a rookie!!! Jun 20 '14 at 13:23

It's pretty easy.

Create a new Category Field and prefix its name with the language prefix related and use it for the translated name. For example, pt-category_name.

On your templates, inside categories variable pair, for example:

{if language == "pt"}{pt-category_name}{/if}
{if language == "en"}{category_name}{/if}{!-- being `en` your default language --}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.