Multi language whole page content

Surendra Sharma asked on April 24, 2015 09:26

I'm relatively new to Kentico and I've been looking at creating custom site settings. What I can't see is how, for a multi-language site, to allow custom text settings to have multi-language variants.

What I'm trying to do is create some settings which define default labels that will appear throughout the site (for example, default button text values like Save, Cancel).

Creating label and resource string ,As per my view this is not right way in CMS .

If, as it appears, not create resource string, label, then multi-language is not working. i have required that change multi language selector according selected language page content is changing but this is not working

Recent Answers


Brenden Kehren answered on April 24, 2015 13:58

I'd suggest checking out this and this as great references on setting your site and UI up for localization.

You can use the Localization app to add your keys (named however you'd like) and then reference them in code like so:

lblTitle.Text = CMS.Helpers.ResHelper.GetString("my.titletext");

Then whenever the site visitor changes the language on the site, as long as there is a key in the other lanugauge(s) and a value, it will automatically change your title text. You can also use a localization string macro to display values in the UI

{$my.titletext$}
0 votesVote for this answer Mark as a Correct answer

Surendra Sharma answered on April 27, 2015 13:57

Hi Brenden Kehren,

 add your keys  in Localization app this is not right way. If when whenever the site visitor changes the language on the site then all content change not only label content.In the CMS how many resource string create.
  I want to change the language then all page content changing not label resource string. 
0 votesVote for this answer Mark as a Correct answer

Jan Hermann answered on April 27, 2015 14:27

Hello,

I am a bit lost in your description. Could you please describe once again what you are up to? Also some screenshots would be great or at least some quick drawings.

Best regards,
Jan Hermann

0 votesVote for this answer Mark as a Correct answer

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