Kentico 11: Mutli-language on custom module

Kenny Deblaere asked on January 24, 2018 10:50

Hello

I'm developing a custom module to have internal content. I've managed to create my parent-child relationships, but the content needs to be multilanguage.

Following question answers it's possible, but I like to know how it's possible and how you can do it in Kentico 11.

Kind regards

Kenny Deblaere

Recent Answers


Brenden Kehren answered on January 24, 2018 19:10

Assuming you have enabled the additional culture in the UI and assigned it to the site, next step is to change the fields you want localized in your module to use a "Localizable Textbox" form control vs. a Textbox. This will allow you to enter multiple values for that one field.

0 votesVote for this answer Mark as a Correct answer

Amit Srivastava answered on January 25, 2018 07:08

Hi Kenny,

There is two way to manage localization string.

1. Using design part -

<cms:LocalizedLabel ID="abc" runat="server" ResourceString="abc.sting"></cms:LocalizedLabel>

abc.string is resource string, you need to add that in localization.

2. Using Code -

SearchTextBox.Attributes.Add("placeholder", ResHelper.GetString("abc.string"));

SearchTextBox is ID of text box and placeholder is attribute you can use Text also and abc.string is localization string.

2 votesVote for this answer Mark as a Correct answer

Kenny Deblaere answered on January 25, 2018 09:40

I've found the option to use a "Localizable Textbox".

But is there an option to have a language switch, just like the 'Pages' application?

Kind regards

Kenny

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on January 25, 2018 13:23

There will be Kenny when the user enters or edits the content in the module.

0 votesVote for this answer Mark as a Correct answer

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