0

Anyone knows how translate category names using this method?

http://eeinsider.com/articles/multi-language-solutions-for-expressionengine

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

1 Answer 1

2

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 and acknowledge you have read our privacy policy.

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