Details
-
Bug
-
Resolution: Invalid
-
Medium
-
4.6.7
-
None
-
None
-
Yes
Description
- Use Ibexa Experience 4.6.7.
- Add a second language (e.g. Polish pol-PL).
- Create a folder in eng-GB. Add a translation for it.
- Use the attached testController and open /test route in the browser, or:
- Create a route where you load content via ContentService with the new language and read the content language
$content = $contentService->loadContent($contentId, ['pol-PL']); $content->getField('name')->getLanguageCode()
-
- get mainLocation from content then use the location to get content and its language
$location = $content->getContentInfo()->getMainLocation(); $location->getContent()->getField('name')->getLanguageCode()
Actual result
The outputted language is different when reading from location.
Expected result
The outputted language is the same in both cases.