Kentico 13 Content Delivery Localisation

Matthew Butler asked on July 4, 2022 13:50

It says in the documentation for localisation in the Live site in .Net core to use the standard resx approach.

But what about localisation of things like the Item Public Statuses etc..

Thanks

Correct Answer

Brenden Kehren answered on July 5, 2022 17:00

You can use the Localization Application for life site items without issue. You simply use similar code:

ResHelper.GetString("your.custom.localization.key.name")

For things like E-Commerce Public Statuses, follow the directions below:

  1. Go to Public Statuses
  2. Click New public status
  3. Click in the Display name field and a + will show in the bottom right. Click the + to add a new localization string. I suggest being descriptive and creating it like a namespace like custom.ecomm.publicstatus.one or custom.ecomm.publicstatus.two.
  4. Click Save & Close
  5. In the next window, you add your localization values to the key you just added. Click Save & Close.
  6. Reference the statuses in code using the ResHelper.GetString(...) method with your keyname as a parameter.
  7. Moving forward, you can use the Localization application to modify your public statuses or even add new localization key and select it when you localize a field.
0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.