Ah yes, I neutered that example in order for it to compile without Flex dependencies.
I updated it to include a snippet of your source bundles and updated the compiler to handle it. Seemed to work for me. -Alex From: Serkan Taş <[email protected]> Reply-To: "[email protected]" <[email protected]> Date: Wednesday, December 19, 2018 at 10:37 AM To: "[email protected]" <[email protected]> Subject: Fwd: Work on Emulation ResourceManagerTest does not use any locale resource. Alinti Alex Harui > There is an example in manualtests/ResourceManagerTest. See if it > is still working or not. > > -Alex > > On 12/18/18, 11:41 PM, "[email protected]" > wrote: > > > Alinti Serkan Taş > > > When debug the code, > > > > I see that the local is not initialized. > > > > For tha AS source, the "getString" method is called with only two > > parameters : > > > > resourceManager.getString('messages', 'userName') > > > > and the js file function is called with null locale, but I think it > > should be called with some default locale info: > > > > mx.resources.ResourceManagerImpl.prototype.getString = > > function(bundleName, resourceName, parameters, *locale*) { > > parameters = typeof parameters !== 'undefined' ? parameters : null; > > locale = typeof locale !== 'undefined' ? locale : null; > > var /** @type {mx.resources.IResourceBundle} */ resourceBundle = > > this.mx_resources_ResourceManagerImpl_findBundle(bundleName, > > resourceName, locale); > > if (!resourceBundle) > > return null; > > if (!(resourceName in resourceBundle.content)) > > return null; > > var /** @type {string} */ value = > > String(resourceBundle.content[resourceName]); > > if (parameters) > > value = mx.utils.StringUtil.substitute(value, parameters); > > return value; > > }; > > > > > > I guess the default locale is not set during function call and/or > > the locale string resources - messages.properties - are not included > > in the build process so does not exist in hjs output folder. > > > > May you provide me example if any for reference of localization, in > > case I may be using in wrong way ? > > > > Thanks, > > Serkan > > > > 18.12.2018 01:28 tarihinde Alex Harui yazdı: > >> > >> Hi Serkan > >> > >> I’m not surprised that the Royale SWF does not run. I haven’t > >> spent any time ensuring that it does. The JS version compiled with > >> 0 errors. What happens when you run the JS version? > >> > >> -Alex > >> > >> *From: *Serkan Taş > >> *Reply-To: *"[email protected]" > >> *Date: *Monday, December 17, 2018 at 12:44 PM > >> *To: *"[email protected]" > >> *Subject: *Re: Work on Emulation > >> > >> Hi Alex, > >> > >> I created the application and compiled with FB : > >> > >> > >> xmlns:fx="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fns.adobe.com%2Fmxml%2F2009&data=02%7C01%7Caharui%40adobe.com%7C2bfbe19128b04b59b6a608d66585737e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636808021185490269&sdata=s55f9DuRYH4nCMH2hj0%2B1alR7ALf4oorvK1%2FQxNxbn4%3D&reserved=0" > >> > > >> xmlns:s="library://ns.adobe.com/flex/spark" > >> xmlns:mx="library://ns.adobe.com/flex/mx" > >> minWidth="955" minHeight="600"> > >> > >> > >> [ResourceBundle("messages")] > >> > >> > >> > >> > >> > >> > >> > >> >> paddingLeft="10" paddingTop="10" paddingBottom="20" /> > >> > >> > >> >> label="{resourceManager.getString('messages', 'userName')}" /> > >> > >> > >> > >> > >> > >> > >> It is working and requires the libraries : > >> framework_4.6.0.23201.swf > >> spark_4.6.0.23201.swf > >> textLayout_2.0.0.232.swf > >> > >> cid:[email protected] > >> > >> > >> This file is for royale : > >> > >> > >> xmlns:fx="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fns.adobe.com%2Fmxml%2F2009&data=02%7C01%7Caharui%40adobe.com%7C2bfbe19128b04b59b6a608d66585737e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636808021185490269&sdata=s55f9DuRYH4nCMH2hj0%2B1alR7ALf4oorvK1%2FQxNxbn4%3D&reserved=0" > >> > > >> xmlns:s="library://ns.apache.org/royale/spark" > >> xmlns:mx="library://ns.apache.org/royale/mx" > >> xmlns:comps="com.likya.pinara.comps.*" > >> width="100%"> > >> > >> > >> [ResourceBundle("messages")] > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> >> paddingLeft="10" paddingTop="10" paddingBottom="20" /> > >> > >> > >> >> label="{resourceManager.getString('messages', 'userName')}" /> > >> > >> > >> > >> > >> When compile with royale it gets the message with flash player : > >> > >> cid:[email protected] > >> > >> And the build output : > >> > >> end of list of source files > >> Dec 17, 2018 11:41:40 PM > >> com.google.javascript.jscomp.LoggerErrorManager println > >> WARNING: > >> > D:/dev/royale-emulation-works/github/royale-testing/src/main/bin/js-debug/mx/controls/listClasses/VirtualDataItemRendererFactoryForICollectionViewData.js:144: WARNING - Variable referenced before > declaration: > >> dataGroup > >> ir = > >> > org.apache.royale.utils.Language.as(this.itemRendererFactory.createItemRenderer(dataGroup), > >> org.apache.royale.core.ISelectableItemRenderer); > >> ^^^^^^^^^ > >> > >> Dec 17, 2018 11:41:40 PM > >> com.google.javascript.jscomp.LoggerErrorManager println > >> WARNING: WARNING - Failed to resolve sourcemap: > >> > D:/dev/royale-emulation-works/github/royale-testing/src/main/bin/js-debug/mx/controls/listClasses/VirtualDataItemRendererFactoryForICollectionViewData.js.map > >> > >> Dec 17, 2018 11:41:40 PM > >> com.google.javascript.jscomp.LoggerErrorManager println > >> WARNING: > >> > D:/dev/royale-emulation-works/github/royale-testing/src/main/bin/js-debug/mx/managers/SystemManager.js:196: WARNING - > unreachable > >> code > >> return null; > >> ^^^^^^^^^^^^ > >> > >> Dec 17, 2018 11:41:40 PM > >> com.google.javascript.jscomp.LoggerErrorManager println > >> WARNING: WARNING - Failed to resolve sourcemap: > >> > D:/dev/royale-emulation-works/github/royale-testing/src/main/bin/js-debug/mx/managers/SystemManager.js.map > >> > >> Dec 17, 2018 11:41:40 PM > >> com.google.javascript.jscomp.LoggerErrorManager println > >> WARNING: > >> > D:/dev/royale-emulation-works/github/royale-testing/src/main/bin/js-debug/spark/components/Group.js:100: WARNING - Suspicious code. This code lacks side-effects. Is there > a > >> bug? > >> if (this.spark_components_Group__mxmlContent != null && > >> this.spark_components_Group__mxmlContent != value) { > >> > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > >> > >> Dec 17, 2018 11:41:40 PM > >> com.google.javascript.jscomp.LoggerErrorManager println > >> WARNING: > >> > D:/dev/royale-emulation-works/github/royale-testing/src/main/bin/js-debug/spark/layouts/VerticalLayout.js:1050: WARNING - Redeclared > variable: > >> targetHeight > >> var /** @type {number} */ targetHeight = Math.max(0, > >> layoutTarget.height - this.paddingTop - this.paddingBottom); > >> > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > >> > >> Dec 17, 2018 11:41:40 PM > >> com.google.javascript.jscomp.LoggerErrorManager println > >> WARNING: > >> > D:/dev/royale-emulation-works/github/royale-testing/src/main/bin/js-debug/spark/layouts/supportClasses/LayoutElementHelper.js:77: WARNING - Parse error. illegal use of unknown JSDoc tag "arg"; > ignoring > >> it > >> * @arg result : optional Array to save an Array memory allocation > >> ^ > >> > >> Dec 17, 2018 11:41:40 PM > >> com.google.javascript.jscomp.LoggerErrorManager printSummary > >> WARNING: 0 error(s), 7 warning(s), 97.8% typed > >> The project 'FindBug' has been successfully compiled and optimized. > >> 67.000541118 seconds > >> > >> What else should I check ? > >> > >> Thanks, > >> Serkan > >> > >> 17.12.2018 09:51 tarihinde [email protected] > >> yazdı: > >> > >> Alex, > >> > >> I do not want you to do anything if you do not want ! > >> > >> I am just trying to make it clear for me what you mean. Thats all. > >> > >> Thanks, > >> Serkan > >> > >> > >> Alinti Alex Harui > >> > >> > >> Serkan, > >> > >> You posted an example about Resources claiming it didn't work > >> in Royale. I don't think that example would work in Flex. > >> I'm not going to investigate why your example doesn't work in > >> Royale until your prove that it did work in Flex. > >> > >> Thanks, > >> -Alex > >> > >> > >> > > > -- > Serkan Taş > Mobil : +90 532 250 07 71 > Likya Bilgi Teknolojileri > ve İletişim Hiz. Ltd. Şti. > > https://na01.safelinks.protection.outlook.com/?url=www.likyateknoloji.com&data=02%7C01%7Caharui%40adobe.com%7C2bfbe19128b04b59b6a608d66585737e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636808021185490269&sdata=lHypS3xCgw6TSagjOJeVTOB74oOvLCxKaqR%2FSoq75eA%3D&reserved=0 > > -------------------------------------- > Bu elektronik posta ve onunla iletilen bütün dosyalar gizlidir. Sadece > yukarıda isimleri belirtilen kişiler arasında özel haberleşme amacını > taşımaktadır. Size yanlışlıkla ulaşmışsa bu elektonik postanın > içeriğini açıklamanız, kopyalamanız, yönlendirmeniz ve kullanmanız > kesinlikle yasaktır. Lütfen mesajı geri gönderiniz ve sisteminizden > siliniz. Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. bu > mesajın içeriği ile ilgili olarak hiç bir hukuksal sorumluluğu kabul > etmez. > > This electronic mail and any files transmitted with it are intended > for the private use of the persons named above. If you received this > message in error, forwarding, copying or use of any of the information > is strictly prohibited. Please immediately notify the sender and > delete it from your system. Likya Bilgi Teknolojileri ve İletişim Hiz. > Ltd. Şti. does not accept legal responsibility for the contents of > this message. > -------------------------------------- -- Serkan Taş Mobil : +90 532 250 07 71 Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. www.likyateknoloji.com -------------------------------------- Bu elektronik posta ve onunla iletilen bütün dosyalar gizlidir. Sadece yukarıda isimleri belirtilen kişiler arasında özel haberleşme amacını taşımaktadır. Size yanlışlıkla ulaşmışsa bu elektonik postanın içeriğini açıklamanız, kopyalamanız, yönlendirmeniz ve kullanmanız kesinlikle yasaktır. Lütfen mesajı geri gönderiniz ve sisteminizden siliniz. Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. bu mesajın içeriği ile ilgili olarak hiç bir hukuksal sorumluluğu kabul etmez. This electronic mail and any files transmitted with it are intended for the private use of the persons named above. If you received this message in error, forwarding, copying or use of any of the information is strictly prohibited. Please immediately notify the sender and delete it from your system. Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. does not accept legal responsibility for the contents of this message. --------------------------------------
