[MURLTRANS-17] Fallback locale should be translated when propertyName is used Created: 02/Nov/20  Updated: 24/Mar/21  Resolved: 24/Mar/21

Status: Closed
Project: URL Translation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Richard Gange Assignee: Richard Gange
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

The class URLTranslator skips translation in the case of fallbackLocale. This works if the translation is stored using the "name" property. If the propertyName in the module config is set to something other than "name", such as "urlName", then #getPathInternal() should be called to assemble the URL.

When using urlName as the property the fallback language has to also be set. Typically, this is not required as the fallback language will be the same language used within the system to name pages. However, for consistency the fallback language also needs to be set and changed whenever the page is renamed.


Generated at Mon Feb 12 11:08:47 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.