how does language culture auto-translate the date

Web Master asked on February 19, 2016 16:16

http://www.autobag.co.in is created in hi-IN (English - India) language culture. The page is in English and it has a news feed on the page. The news article date selection is created by simply selecting a date in the form tab and then outputting the date using the following transformation: <%# GetDateTime("StartDate","MMMM d") %>-<%# GetDateTime("EndDate","d, yyyy") %>

How can I have this so it does NOT translate this month but keeps it in English like the rest of the page? Keeping in mind, this page and transformation is used on other language cultures that DO need to translate the month/date format (IE: http://www.autobag.cn for China = zh-CN)?

I thought this might be a localization thing but I can't find any RESX or localization string in the system. Is there one I can input to override what's being output for the hi-IN language culture? If so, what is that string?

Thanks!

Recent Answers


David te Kloese answered on February 19, 2016 16:32

Hi,

Isn't the problem you've created the content in HI-IN which isn't English - India but Hindi - India! Shouldn't you create the content in the EN-IN? Not sure if it's part of Kentico, but you should be able to create it...

Greets,

David

0 votesVote for this answer Mark as a Correct answer

Web Master answered on February 19, 2016 16:39 (last edited on February 19, 2016 16:40)

I wondered this myself at first. Is this, perhaps, a problem w/in Kentico then? We've assigned it 'English -India' and, as you can see from the screenshots, this is created as 'hi-in'.

Image Text

Image Text

How would I go about creating 'en-IN' as a language culture to replace the existing one?

0 votesVote for this answer Mark as a Correct answer

Web Master answered on February 19, 2016 16:43

Oh, and I should have included the version of Kentico: 8.2 (up to hotfix 48) using the Portal Engine and not aspx.

0 votesVote for this answer Mark as a Correct answer

Web Master answered on February 19, 2016 20:33

I believe I've got it fixed now. You pointed me in the right direction. I wondered about that culture code. I've updated the existing one (don't know if this came from Kentico or from the company that originally began this build or our internal resources) but I now have the 'hi-IN' code correctly identified as 'Hindi - English' and have created a new culture code 'English - Hindi' and given IT the 'en-IN' code we needed. Now we just have to copy over the content from 'hi-IN' to 'en-IN' and all is good.

Thanks much!

0 votesVote for this answer Mark as a Correct answer

David te Kloese answered on February 19, 2016 21:51

Hi,

I don't believe 'en-IN' is part of the default Kentico installation, but 'hi-IN' is. So I guess someone on your end adjusted the display name instead of creating a new one.

Greets,

David

0 votesVote for this answer Mark as a Correct answer

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