Quantcast
Channel: VMware Communities : Discussion List - VMware {code}
Viewing all articles
Browse latest Browse all 2738

Fling 4 Multiple Resources and Administration

$
0
0

Hi,

I am having my first tries with the Fling 4 and our plug-in.  Until now things have been working quite well, and after changing

a few things like paths, build scripts etc. I can work with our plug-in within the fling!

 

I am encountering 2 problems however.

 

1) Our plug-in has many strings and icons.  To keep them somewhat organized, we have the definitions of them in

various .properties files.  Until now, we have put them all together within our .swf file, and to retrieve the values we used WEB_PLATFORM.getString()

 

For example:  we have a property file: "commonStrings.properties"  and was included in our acme-en_US.swf

WEB_PLATFORM.getString("commonStrings", key, params);

 

Now for the Fling I changed the name to "com_acme_commonStrings_en_US.properties" and when deployed is located under

     acme.war/locales/com_acme_commonStrings_en_US.properties

 

Since this is not my default bundle  - I added the resource in my plugin.xml

 

<?xml version="1.0" encoding="UTF-8"?>

 

<plugin id="com.acme" defaultBundle="com_acme">

 

 

 

  <resources baseUrl="locales/">

 

         <resource locale="{locale}">

 

               <module uri="acme-{locale}.swf"/>

 

          </resource>

 

         <resource>com_acme</resource>

 

       <resource>com_acme_commonStrings</resource>

       <resource>com_acme_images</resource>

 

</resources>

 

When I use the WEB_PLATFORM.getString("com_acme_commonStrings", key, params) only the key is returned and in the browser console I see the message

[i18nService] Bundle not found. (Bundle: 'com_acme_commonStrings', key: 'MyString')

 

I looked in the localhost_access_log - but could not find any entries for the property files -(also not for our default bundle).

I also tried the following:

 

      <resource locale="{locale}">com_acme_commonStrings_{locale}</resource>

but it did not help.

 

So my question is:  am I doing something wrong, or are the multiple bundles not supported yet?

 

 

2)  Our plug-in has views found under "Administration" in the Flex client.  In the new Fling I don't see any "Administration" views (like roles, users etc) - Is that not included yet, or is it not a part of the Fling at all?

 

thanks for the info

Cathy


Viewing all articles
Browse latest Browse all 2738

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>