{"id":174,"date":"2023-01-03T11:12:48","date_gmt":"2023-01-03T19:12:48","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/i18n\/?p=174"},"modified":"2023-01-03T14:07:32","modified_gmt":"2023-01-03T22:07:32","slug":"using-custom-culture-to-set-euro-for-croatia","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/i18n\/using-custom-culture-to-set-euro-for-croatia\/","title":{"rendered":"Using Custom Culture to Set Euro for Croatia"},"content":{"rendered":"<p>Croatia has adopted the Euro.\u00a0 There are a couple of ways to update Windows to use the Euro symbol or currency for Croatian locales.<\/p>\n<p>If Croatian is the current user default locale, then the simplest is to change the desired currency symbol and number formats in the Region control panel (intl.cpl).\u00a0 Note that this only works for applications requesting the current default user locale, and may not be sufficient in all cases.<\/p>\n<p>For applications that depend on the Windows locale data, a &#8220;Custom Locale&#8221; can be created and used on Windows versions 7 and above.\u00a0 The &#8220;Custom Locale&#8221; support allows for administrators to specify the default data for locale(s) as needed for their needs.<\/p>\n<p>The Microsoft Locale Builder tool is used to generate the desired custom locales.\u00a0 Once the data is set appropriately, there is an option to &#8220;Build Locale Zip File&#8221;, which provides a short script and files used to install the updated locale.<\/p>\n<p>Custom locales are supported on Windows 7 and above.\u00a0 Custom locales are only used by applications that use the Windows NLS locale data, some applications that use different data stores for locale data may not respect the custom settings.<\/p>\n<p>Custom locales may be installed on desktop or server environments.<\/p>\n<h2>Creating a Custom Locale<\/h2>\n<p>Creating a custom locale is fairly straightforward.\u00a0 Custom locales are recognized by applications using Windows NLS data in Windows 7 and above.<\/p>\n<ol style=\"list-style-type: upper-alpha;\">\n<li>Download and install Locale Builder 2.0\n<a href=\"https:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=41158\"><strong>https:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=41158<\/strong><\/a><\/li>\n<li>Open an existing locale, eg: Croatian (Croatia)<\/li>\n<li>Modify the desired fields, in this case on the Currency tab change:\n<ul>\n<li>Currency Names and\u00a0Symbols<\/li>\n<li>Positive and Negative Formatting patterns<\/li>\n<\/ul>\n<\/li>\n<li>Generate the &#8220;Build Locale Zip File&#8221;<\/li>\n<li>Repeat for the neutral (Croatian) locale if desired<\/li>\n<\/ol>\n<h2>Installing Custom Locales<\/h2>\n<p>To install the resulting custom cultures on a target machine, the batch file will need to be run as an administrator.<\/p>\n<ol>\n<li><span style=\"font-size: 1rem;\">Extract the zip file(s) to a working directory on target machine.<\/span><\/li>\n<li><span style=\"font-size: 1rem;\">Open an elevated command prompt<\/span><\/li>\n<li><span style=\"font-size: 1rem;\">Switch to the directory with the extracted files<\/span><\/li>\n<li><span style=\"font-size: 1rem;\">Run InstallLocales.cmd<\/span><\/li>\n<\/ol>\n<p>Open applications may need to be restarted, or the machine rebooted, to pick up all of the new custom locale values.<\/p>\n<p>If multiple locales are to be installed, all of the data files may be combined in a single folder.\u00a0 InstallLocales.cmd will install all of the locales provided.<\/p>\n<h2>Example LDML Data<\/h2>\n<p>You can also load an LDML file into the Locale Builder.\u00a0 Here are some example LDML files that contain overrides for the Euro for Croatian<\/p>\n<h2>LDML for Croatian (Croatia) Euro support<\/h2>\n<p>Copy this to a file &#8220;hr-HR.ldml&#8221; and open that with the Microsoft Locale Builder, then build the zip installer.<\/p>\n<pre style=\"padding-left: 40px;\">&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\r\n&lt;ldml&gt;\r\n  &lt;identity&gt;\r\n    &lt;special xmlns:msLocale=\"http:\/\/schemas.microsoft.com\/globalization\/2004\/08\/carib\/ldml\"&gt;\r\n      &lt;msLocale:cultureAndRegionInfoName type=\"hr-HR\" \/&gt;\r\n    &lt;\/special&gt;\r\n  &lt;\/identity&gt;\r\n  &lt;numbers&gt;\r\n    &lt;special xmlns:msLocale=\"http:\/\/schemas.microsoft.com\/globalization\/2004\/08\/carib\/ldml\"&gt;\r\n      &lt;msLocale:currencyPositivePattern type=\"3\" \/&gt;\r\n      &lt;msLocale:currencyNegativePattern type=\"15\" \/&gt;\r\n    &lt;\/special&gt;\r\n    &lt;currencies&gt;\r\n      &lt;currency type=\"default\"&gt;\r\n        &lt;symbol&gt;\u20ac&lt;\/symbol&gt;\r\n        &lt;displayName&gt;euro&lt;\/displayName&gt;\r\n        &lt;special xmlns:msLocale=\"http:\/\/schemas.microsoft.com\/globalization\/2004\/08\/carib\/ldml\"&gt;\r\n          &lt;msLocale:isoCurrency&gt;EUR&lt;\/msLocale:isoCurrency&gt;\r\n          &lt;msLocale:currencyEnglishName&gt;Euro&lt;\/msLocale:currencyEnglishName&gt;\r\n        &lt;\/special&gt;\r\n      &lt;\/currency&gt;\r\n    &lt;\/currencies&gt;\r\n  &lt;\/numbers&gt;\r\n&lt;\/ldml&gt;<\/pre>\n<h2>LDML for Croatian (neutral locale) Euro support<\/h2>\n<p>Copy the following to a file &#8220;hr.ldml&#8221; and open that with the Microsoft Locale Builder, then build the zip installer.\u00a0 Note that this is identical to the previous example, the only difference is in the identity tag.<\/p>\n<pre style=\"padding-left: 40px;\">&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\r\n&lt;ldml&gt;\r\n  &lt;identity&gt;\r\n    &lt;special xmlns:msLocale=\"http:\/\/schemas.microsoft.com\/globalization\/2004\/08\/carib\/ldml\"&gt;\r\n     \u00a0&lt;msLocale:cultureAndRegionInfoName type=\"hr\" \/&gt;\r\n      &lt;msLocale:cultureAndRegionModifier type=\"neutral\" \/&gt;\r\n    &lt;\/special&gt;\r\n  &lt;\/identity&gt;\r\n  &lt;numbers&gt;\r\n    &lt;special xmlns:msLocale=\"http:\/\/schemas.microsoft.com\/globalization\/2004\/08\/carib\/ldml\"&gt;\r\n      &lt;msLocale:currencyPositivePattern type=\"3\" \/&gt;\r\n      &lt;msLocale:currencyNegativePattern type=\"15\" \/&gt;\r\n    &lt;\/special&gt;\r\n    &lt;currencies&gt;\r\n      &lt;currency type=\"default\"&gt;\r\n        &lt;symbol&gt;\u20ac&lt;\/symbol&gt;\r\n        &lt;displayName&gt;euro&lt;\/displayName&gt;\r\n        &lt;special xmlns:msLocale=\"http:\/\/schemas.microsoft.com\/globalization\/2004\/08\/carib\/ldml\"&gt;\r\n          &lt;msLocale:isoCurrency&gt;EUR&lt;\/msLocale:isoCurrency&gt;\r\n          &lt;msLocale:currencyEnglishName&gt;Euro&lt;\/msLocale:currencyEnglishName&gt;\r\n        &lt;\/special&gt;\r\n      &lt;\/currency&gt;\r\n    &lt;\/currencies&gt;\r\n  &lt;\/numbers&gt;\r\n&lt;\/ldml&gt;<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Croatia has adopted the Euro.\u00a0 There are a couple of ways to update Windows to use the Euro symbol or currency for Croatian locales. If Croatian is the current user default locale, then the simplest is to change the desired currency symbol and number formats in the Region control panel (intl.cpl).\u00a0 Note that this only [&hellip;]<\/p>\n","protected":false},"author":17042,"featured_media":6,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[5,4,16],"tags":[],"class_list":["post-174","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cultures-locales","category-data","category-euro"],"acf":[],"blog_post_summary":"<p>Croatia has adopted the Euro.\u00a0 There are a couple of ways to update Windows to use the Euro symbol or currency for Croatian locales. If Croatian is the current user default locale, then the simplest is to change the desired currency symbol and number formats in the Region control panel (intl.cpl).\u00a0 Note that this only [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/i18n\/wp-json\/wp\/v2\/posts\/174","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/i18n\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/i18n\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/i18n\/wp-json\/wp\/v2\/users\/17042"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/i18n\/wp-json\/wp\/v2\/comments?post=174"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/i18n\/wp-json\/wp\/v2\/posts\/174\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/i18n\/wp-json\/wp\/v2\/media\/6"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/i18n\/wp-json\/wp\/v2\/media?parent=174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/i18n\/wp-json\/wp\/v2\/categories?post=174"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/i18n\/wp-json\/wp\/v2\/tags?post=174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}