<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Load Resource Bundle</title><link>/b/appmarket/posts/load-resource-bundle</link><description>Overview 
 Provides a function that loads a properties file from Appian Document Management and returns a dictionary of labels and values. 
 
 Can be used for internationalizing form labels, instructions, etc. 
 The file is read from the Document Management</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Load Resource Bundle</title><link>https://community.appian.com/b/appmarket/posts/load-resource-bundle</link><pubDate>Fri, 16 Feb 2024 23:00:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bae752e8-2344-43c9-8f1e-a06bbcf919a8</guid><dc:creator>Appian AppMarket</dc:creator><slash:comments>0</slash:comments><description>&lt;div&gt;&lt;strong&gt;v1.3.1 &lt;/strong&gt;&lt;strong&gt;Release Notes&lt;/strong&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;Added license file&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;img src="https://community.appian.com/aggbug?PostID=826&amp;AppID=50&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Load Resource Bundle</title><link>https://community.appian.com/b/appmarket/posts/load-resource-bundle</link><pubDate>Thu, 14 Sep 2023 22:00:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bae752e8-2344-43c9-8f1e-a06bbcf919a8</guid><dc:creator>Appian AppMarket</dc:creator><slash:comments>0</slash:comments><description>&lt;div&gt;&lt;strong&gt;v1.3.0 &lt;/strong&gt;&lt;strong&gt;Release Notes&lt;/strong&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;Replace deprecated content APIs with modernized file management APIs. See the 23.2 Release notes here &lt;a rel="nofollow" target="_blank" href="https://docs.appian.com/suite/help/23.2/Appian_Release_Notes.html#modernized-file-management-apis"&gt;docs.appian.com/.../Appian_Release_Notes.html&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;img src="https://community.appian.com/aggbug?PostID=826&amp;AppID=50&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Load Resource Bundle</title><link>https://community.appian.com/b/appmarket/posts/load-resource-bundle</link><pubDate>Fri, 04 Feb 2022 19:08:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bae752e8-2344-43c9-8f1e-a06bbcf919a8</guid><dc:creator>Appian AppMarket</dc:creator><slash:comments>0</slash:comments><description>&lt;div&gt;&lt;strong&gt;v&lt;/strong&gt;&lt;strong&gt;1.2.1 Release Notes&lt;/strong&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span&gt;Library upgrade: &lt;/span&gt;&lt;a rel="nofollow" target="_blank" href="https://docs.google.com/document/d/1z-rTjX2BlvYVx7txJacIYvBxWVORsUUZkTTU8OWFsvY/edit#"&gt;docs.google.com/.../edit&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;img src="https://community.appian.com/aggbug?PostID=826&amp;AppID=50&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Load Resource Bundle</title><link>https://community.appian.com/b/appmarket/posts/load-resource-bundle</link><pubDate>Tue, 21 Jul 2020 21:28:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bae752e8-2344-43c9-8f1e-a06bbcf919a8</guid><dc:creator>sandrar</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I ran into the issue with the first line on the translation file not loading if the file is encoded as UTF-8-BOM instead of just UTF-8.&amp;nbsp; Hope this helps.&lt;/p&gt;&lt;img src="https://community.appian.com/aggbug?PostID=826&amp;AppID=50&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Load Resource Bundle</title><link>https://community.appian.com/b/appmarket/posts/load-resource-bundle</link><pubDate>Wed, 11 Sep 2019 17:00:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bae752e8-2344-43c9-8f1e-a06bbcf919a8</guid><dc:creator>davidl870</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;[mention:7fe03aa321af4cadbca97d8d1fc1a492:e9ed411860ed4f2ba0265705b8793d05] Overall, this has been a great plugin but we ran into a strange error the other day. For whatever reason, the first&amp;nbsp;key in this particular bundle localization file seems to be added as a string (rather than a key) to the resulting dictionary (test case 2 - viewing the expression). When we try to index() the value from the strange key, it returns a null (test case 2 - indexing the key). If the first line is a blank line, it seems like the plugin adds an empty string as the dictionary key with an empty value (test case 1).&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve built an app to reproduce the issue and highlight&amp;nbsp;these test cases. As a workaround, we&amp;#39;ve simply added an empty first line&amp;nbsp;before the key/value pairs. I looked through the bundle file in a text editor and haven&amp;#39;t been able to identify any strange characters either. If someone has an answer as to what is causing this behaviour, it would be greatly appreciated. Thanks!&amp;nbsp;[emoticon:fbd079a1c4f748c5a234faee215de9cc]&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Test Case 1:&amp;nbsp;&lt;img alt=" " src="/resized-image/__size/320x240/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-bae752e8-2344-43c9-8f1e-a06bbcf919a8/test_2D00_case_2D00_1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Test Case 2 - Viewing the expression:&amp;nbsp;&lt;img alt=" " src="/resized-image/__size/320x240/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-bae752e8-2344-43c9-8f1e-a06bbcf919a8/test_2D00_case_2D00_2_2D00_string_2D00_key.png" /&gt;&lt;/p&gt;
&lt;p&gt;Test Case 2 - Indexing the &amp;quot;hello&amp;quot; key:&amp;nbsp;&lt;img alt=" " src="/resized-image/__size/320x240/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-bae752e8-2344-43c9-8f1e-a06bbcf919a8/test_2D00_case_2D00_2_2D00_index_2D00_null.png" /&gt;&lt;/p&gt;
&lt;p&gt;Test Case Appian App:&amp;nbsp;&lt;a href="/cfs-file/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-bae752e8-2344-43c9-8f1e-a06bbcf919a8/Appian-i18n-Bug-Test-Case.zip"&gt;/cfs-file/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-bae752e8-2344-43c9-8f1e-a06bbcf919a8/Appian-i18n-Bug-Test-Case.zip&lt;/a&gt;&lt;/p&gt;&lt;img src="https://community.appian.com/aggbug?PostID=826&amp;AppID=50&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Load Resource Bundle</title><link>https://community.appian.com/b/appmarket/posts/load-resource-bundle</link><pubDate>Wed, 28 Aug 2019 13:19:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bae752e8-2344-43c9-8f1e-a06bbcf919a8</guid><dc:creator>btravis</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Are resource bundles once loaded cached in memory or are they reloaded with each call to load the bundle?&amp;nbsp; &amp;nbsp;Would it be a best practice to create smaller bundles for features, one bundle per application or one bundle across all applications?&lt;/p&gt;&lt;img src="https://community.appian.com/aggbug?PostID=826&amp;AppID=50&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Load Resource Bundle</title><link>https://community.appian.com/b/appmarket/posts/load-resource-bundle</link><pubDate>Thu, 18 Apr 2019 14:13:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bae752e8-2344-43c9-8f1e-a06bbcf919a8</guid><dc:creator>josephs646</dc:creator><slash:comments>2</slash:comments><description>&lt;p&gt;I&amp;#39;ve tried to use this plug-in and working fine for the most part but I&amp;#39;ve found an issue that I can&amp;#39;t seem to resolve within this plug-in:&lt;/p&gt;
&lt;p&gt;inside the properties file I have a row: &amp;quot;caseDetails=D&amp;Eacute;TAILS DU CAS&amp;quot;&lt;/p&gt;
&lt;p&gt;when using the loadbundle() function the row is being returned from that properties file as &amp;quot;&lt;span&gt;caseDetails:D�TAILS DU CAS&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I can replace&amp;nbsp;char(65533) with&amp;nbsp;char(233) when displaying this value. This solution is clearly not perfect since I am needing to assume that the&amp;nbsp;� char should in fact be a&amp;nbsp;&amp;Eacute;, but the same seems to be true with other accented chars.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;A more graceful way of handling this is to simply replace this label function/plug-in with:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;if(&lt;br /&gt;userlocale(&lt;br /&gt; loggedInUser()&lt;br /&gt; ) = &amp;quot;fr_FR&amp;quot;,&lt;br /&gt;&amp;quot;D&amp;Eacute;TAILS DU CAS&amp;quot;,&lt;br /&gt;&amp;quot;CASE DETAILS&amp;quot;&lt;br /&gt;)&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Of course there are a number of other ways I could do this (reference data held within a DB, using constants etc) but given that the plug-in suggests it works with complex characters I feel that I am missing something (also this&amp;nbsp;loadbundle function seems to be substantially quicker than retrieving the same number of &amp;quot;translations&amp;quot; through a DB query, so my current preference is to stick with this plug-in)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Any thoughts?&lt;/p&gt;&lt;img src="https://community.appian.com/aggbug?PostID=826&amp;AppID=50&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Load Resource Bundle</title><link>https://community.appian.com/b/appmarket/posts/load-resource-bundle</link><pubDate>Wed, 05 Dec 2018 13:12:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bae752e8-2344-43c9-8f1e-a06bbcf919a8</guid><dc:creator>phanthomas27</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I would also love to see examples of how to use this plugin.&lt;/p&gt;
&lt;img src="https://community.appian.com/aggbug?PostID=826&amp;AppID=50&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Load Resource Bundle</title><link>https://community.appian.com/b/appmarket/posts/load-resource-bundle</link><pubDate>Mon, 20 Aug 2018 20:21:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bae752e8-2344-43c9-8f1e-a06bbcf919a8</guid><dc:creator>scotts0002</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Are there any examples of the use of this I can look at?&lt;/p&gt;
&lt;img src="https://community.appian.com/aggbug?PostID=826&amp;AppID=50&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>