Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Can categories be translated for localization?
I`ve tried to create new categorie - News and add $Definition['News'] = 'news'; to localization file, but it does not work, at least it seams so.
Is it possible to translate categories names?
Tagged:
0
Answers
You just rename the category.
Unless you are serving multiple languages there is no need for this.
grep is your friend.
I'm serving multiple languages that's why i was wondering is there a way to translate categorie names.
well it is a bit tricky but possible.
grep is your friend.
It is very easy. Just add this line
afterinside the foreach loop in AddCategoryColumns function (applications/vanilla/models/class.categorymodel.php):$Category->Name = T($Category->Name);
@im_dario request a hook, you should avoid editing the core.
grep is your friend.
@x00 I'm newbie in Vanilla. I understand that I should request a hook for manipulating categories. Meanwhile, I'm editing the core because I need to open a forum today. Thanks!
No problem you can request it here:
https://github.com/vanillaforums/Garden/issues
grep is your friend.
I think that might actually be a great (and simple) patch.
@Lincoln what do you think?
There was an error rendering this rich post.
Thanks it`s working as a dirty fix for now.
Thanks for this!