Page 1 of 1

Problem with translations

Posted: Sat Feb 08, 2014 7:32 am
by Paulius
Hi, I'm trying to use broadleaf translation service to translate data of categories. After calling:

Code: Select all

  < ... >            translationService.save(Category.class.getName(), category.getId().toString(), "name", translation.getLanguageCode(), translation.getName());<...>
translation is stored in database successfully, but if I try to get translated name by changing locale and calling category.getName(); it returns default name, however when I call

Code: Select all

DynamicTranslationProvider.getValue(category, "name", "NULL")
(same code is in name getter of Category) it returns translated value. So why category.getName() returns default value? Is it some kind of caching problem? How to fix it?

Re: Problem with translations

Posted: Mon Feb 10, 2014 3:00 pm
by Paulius
Turns out this problem was caused by old maven dependency (broadleaf-i18n) from one of previous versions of BLC, removing it solved my problem.

Re: Problem with translations

Posted: Tue Feb 11, 2014 3:12 pm
by phillipuniverse
Great, thanks for reporting back.