{"id":389,"date":"2014-04-07T12:26:08","date_gmt":"2014-04-07T06:56:08","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=389"},"modified":"2014-04-07T12:26:08","modified_gmt":"2014-04-07T06:56:08","slug":"how-to-show-language-specific-error-messages-using-business-rulespbl","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2014\/04\/how-to-show-language-specific-error-messages-using-business-rulespbl\/","title":{"rendered":"How to show Language specific error messages using Business Rules\/PBL"},"content":{"rendered":"<p><b style=\"line-height: 1.5em;\"><span style=\"text-decoration: underline;\">Introduction<\/span><\/b><\/p>\n<p>If you have more than one language support in your CRM organization, then you may require localizing all error messages that you have set in PBL per the languages installed. The message that you type in the PBL designer is set to be the message shown in the CRM base language. To show the message for an alternate language that is installed in CRM, you need to provide the translation for the same.<\/p>\n<p>Provided below are the steps considering \u201c<b>English<\/b>\u201d as the base language and \u201c<b>French<\/b>\u201d as the other language installed.<\/p>\n<p>In order to show error messages as per specific language you need to perform following steps.<\/p>\n<p><b><span style=\"text-decoration: underline;\">First create PBL \u2013<\/span><\/b><\/p>\n<p>We have created PBL on account entity to show error when Relationship Type is set to customer and Account number field is blank then show error as \u201cAccount Number cannot be null or empty.\u201d As shown below and then Activate this PBL.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/04\/1.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-390\" alt=\"1\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/04\/1.png\" width=\"624\" height=\"374\" \/><\/a><\/p>\n<p>Now whenever you create PBL and set error message a label is generated by the system.<\/p>\n<p><b><span style=\"text-decoration: underline;\">Export Translation &#8211; <\/span><\/b><\/p>\n<p>Now once you are done with creating PBL then export the Translation as shown below through customizations area.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/04\/2.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-391\" alt=\"2\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/04\/2.png\" width=\"624\" height=\"302\" \/><\/a><\/p>\n<p>It will export a zip file. In our case we have translation file named <b>CrmTranslations_Default_1_0.zip<\/b><\/p>\n<p>Now you need to unzip this file and open that folder it will contains a file named <b>CrmTranslations.xml<\/b> as shown below then open that file with Microsoft Excel.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/04\/3.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-392\" alt=\"3\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/04\/3.png\" width=\"397\" height=\"170\" \/><\/a><\/p>\n<p>The file contains three worksheets <b>Information<\/b>, <b>Display Strings<\/b>, and\u00a0<b>Localized Labels<\/b>. We will edit Localized Labels worksheet.<\/p>\n<p><b><span style=\"text-decoration: underline;\">Edit Translations &#8211;<\/span><\/b><\/p>\n<p>The worksheet contains columns for each language code as shown below. Here 1033 code is for English and 1036 is for French.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/04\/5.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-394\" alt=\"5\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/04\/5.png\" width=\"624\" height=\"62\" \/><\/a><\/p>\n<p>Now here you need to search for specific error message in \u201c<b>Localized Labels<\/b>\u201d worksheet which you need to localize. For example in our case it is \u201c<b>Account Number cannot be null or empty.<\/b>\u201d<\/p>\n<p>Once you search for message it will find in worksheet as shown below.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/04\/6.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-395\" alt=\"6\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/04\/6.png\" width=\"623\" height=\"218\" \/><\/a><\/p>\n<p>As you can see in above screenshot there is no error message specified in French language message column.<\/p>\n<p>Now insert the error message in French language column. Note that we need to modify only last column of the worksheet, please do not modify any other data. In this example we have entered error message as \u201c<b>Num\u00e9ro de compte ne peut pas \u00eatre null ou vide.<\/b>\u201d as shown below.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/04\/7.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-396\" alt=\"7\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/04\/7.png\" width=\"623\" height=\"165\" \/><\/a><\/p>\n<p>Now save this file and again send it to zip folder. Now import this Translation again to CRM as shown in below screen shot.<\/p>\n<p><b><span style=\"text-decoration: underline;\">Import Translations &#8211;<\/span><\/b><\/p>\n<p>Click on <b>Import Translations<\/b> -&gt;\u00a0<b>Choose the ZIP file<\/b> and click on\u00a0<b>Import<\/b>.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/04\/8.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-397\" alt=\"8\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/04\/8.png\" width=\"623\" height=\"353\" \/><\/a><\/p>\n<p>Once the translations are imported successfully it will show following message. Once it is done <b>Close<\/b> the window.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/04\/9.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-398\" alt=\"9\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/04\/9.png\" width=\"623\" height=\"363\" \/><\/a><\/p>\n<p>Then <b>Publish All Customizations<\/b> as shown below.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/04\/10.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-399\" alt=\"10\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/04\/10.png\" width=\"624\" height=\"194\" \/><\/a><\/p>\n<p>Once publish is completed you can check the error message on Account entity as follows.<a style=\"line-height: 1.5em;\" href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/04\/11.png\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-400\" alt=\"11\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/04\/11-300x276.png\" width=\"300\" height=\"276\" \/><\/a><span style=\"line-height: 1.5em;\">\u00a0<\/span><a style=\"line-height: 1.5em;\" href=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/04\/12.png\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-401\" alt=\"12\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2014\/04\/12-300x285.png\" width=\"300\" height=\"285\" \/><\/a><\/p>\n<p><b><span style=\"text-decoration: underline;\">Conclusion:<\/span><\/b><\/p>\n<p>This way you can show error messages in specific languages for PBL. Here we have enabled only one extra language i.e. French but there are cases where you have multiple languages enabled then you need to check for proper language code and set the specific message in that specific language code column.<\/p>\n<p>Hope this helps!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction If you have more than one language support in your CRM organization, then you may require localizing all error messages that you have set in PBL per the languages installed. The message that you type in the PBL designer is set to be the message shown in the CRM base language. To show the\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2014\/04\/how-to-show-language-specific-error-messages-using-business-rulespbl\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[21,22,24],"tags":[397],"class_list":["post-389","post","type-post","status-publish","format-standard","hentry","category-dynamics-crm-2013","category-dynamics-crm-2015","category-dynamics-crm-2016","tag-crm-2013-pbl-business-rules-localize-error-messages"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/389","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=389"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/389\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=389"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=389"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}