But the image will no load, unless I give it an exact URI to a specific localised directory. I’ve confirmed my locale is “en_GB” from GetCurrentLocale() function on the device.
This should be uri=“pkg:/locale/en_GB/images/try.png” if you are going direct.
Sorry i can’t address any SG differences to the translation system, but this is B/S for getting an image.
m.localization = CreateObject(“rolocalization”)
flyloco = m.localization.GetLocalizedAsset(“images”, “flyco.png”)
Thanks for the reply. Yes, going direct with the uri suggested does work, I’ve tried this to simply prove the images were packaged and deployed correctly.
But I don’t want to go direct. I want to use the SG localisation system, which is documented as my uri in the first post. The docs suggest this uri is recognised and will be translated correctly to the appropriate localised asset.
I found that page confusing. What you say is correct, however right below that is this:
For example, if you want to have a localized version of a graphical image for Canadian French, and a default image for all other languages, place two versions of the image in the
“monkeysource” wrote:
I want to use the SG localisation system, which is documented as my uri in the first post. The docs suggest this uri is recognised and will be translated correctly to the appropriate localised asset.
Seems you are doing it right and there is a bug, yes.
“monkeysource” wrote:
I’m finding a few bugs, and it would be good to get the docs updated to reflect them to save others wasting time.
Does anyone know if there is a formal bug report process?
Email developer at roku.com and pray that one of the Co’s “hermit evangelists” (an oxymoron if ever there was one) will hit “Reply”.
Also report in this forum - or rather start from here (as you did) - since sometimes things one suspects are bugs have undocumented-but-community-known reason being “features”.
PS. if you are finding only “a few” bugs, you are not looking hard enough
PPS. Fingers crossed that the RSG URI localization was never implemented in the first place - i just posted a much better proposal at viewtopic.php?f=34&t=96446