Sometimes it arises that we end up with a database file that is in the wrong locale. For us being in New Zealand, we use DD/MM/YYYY , but we will occasionally see a file end up MM/DD/YYYY , so has the wrong locale.
This sometimes occurs if a server is not properly set with system settings, and the file gets opened…
To remedy this historically we always did a DMT with a locale.txt file that ensures any migrated file is in the desired locale. (I have attached the file).
Looking in Otto Deploy, I note “Destination Locale” option with a list of locales, however there is only “English” as the only english specific option.
- Is this the same as supplying a locale.txt file for the DMT?
- If so, what is “English” actually providing? It could very well be US format for all I know.
- Is there any way to specify an exact locale.txt , or be more specific with “English” to include variations like US , British, Australia, New Zealand etc ?
I’d really love to be able to set a setting on all our deployments to ensure it is always the correct format.
{
"APIVers" : 1,
"Currency" :
{
"Leading" : true,
"Symbol" : "$"
},
"Date" :
{
"DMQ" :
{
"1stDayOfWeek" : 1,
"DaysOfWeek" :
{
"AbbrvList" :
[
"Sun",
"Mon",
"Tue",
"Wed",
"Thu",
"Fri",
"Sat"
],
"NameList" :
[
"Sunday",
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday"
]
},
"Months" :
{
"AbbrvList" :
[
"Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
"Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec"
],
"NameList" :
[
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December"
]
},
"Quarters" :
{
"AbbrvList" :
[
"Q1",
"Q2",
"Q3",
"Q4"
],
"NameList" :
[
"1st Quarter",
"2nd Quarter",
"3rd Quarter",
"4th Quarter"
]
}
},
"DMY" :
{
"ElementArray" :
{
"NameList" :
[
"D#",
"M$",
"YYYY#",
"D$"
],
"SepList" :
[
", ",
" ",
" ",
""
]
},
"MustUseLocalesSep" : false
},
"DateNums" :
{
"0d" : true,
"0m" : true,
"YYyy" : false
},
"DateOrderID" : 1,
"DateOrderName" : "DMY",
"Sep" : "/"
},
"LocaleID" :
{
"IDNum" : 21,
"IDStr" : "English",
"ISOLangCode" : "en",
"LID" : "English",
"Name" : "English"
},
"Misc" :
{
"Active" : true,
"Metric" : true
},
"Num" :
{
"1000s" : ",",
"Decimal" : ".",
"Lead0" : true
},
"Text" :
{
"SQuotLead" : "ì",
"SQuotTrail" : "î",
"Sep" : ","
},
"Time" :
{
"12h" : true,
"HMS" :
{
"0h" : false,
"24h" : "",
"Seconds" : false
},
"NightDay" :
{
"12hSuffix" : true,
"amStr" : " AM",
"pmStr" : " PM"
},
"Sep" : ":"
}
}
