Acknowledged

Cannot reference Barrel string resources in Watch Face settings.xml

According to Monkey Barrel documentation, barrel resources should be accessible in the project via the @IconLibrary.Drawables.myIcon notation.  This suggests @MyBarrel.Strings.myString would be a valid way to reference a string from the app.  This isn't working as expected when referenced inside settings.xml for the Watch Face using this barrel.

Like user  wrote in "How to reference barrel resources from app xml", I am attempting to reference a barrel's String resources inside my Watch Face's settings.XML.   I'd expect to see the actual strings, but instead I see the references.  

See screenshots:

https://www.dropbox.com/s/tei8puk0hcqx6oo/Screen%20Shot%202022-12-29%20at%201.05.39%20PM.png?dl=0

https://www.dropbox.com/s/mtkhvac605gz1hh/Screen%20Shot%202022-12-29%20at%201.05.58%20PM.png?dl=0

  • Hi Gavriel, I tried switching it as you suggested.  The same behavior happened -- the string from the barrel wasn't recognized & filled when I used it as the title for the setting.  So it appears that it's not possible to use barrel string resources in either the <listEntry> items or the "title" tag of <setting> items.  

    The other switch you suggested does work -- that's normal behavior that is working as expected: the settings.xml can reference string resources from inside the same project. 

    Also, the upload link isn't appearing anymore in this reply editor, so I have to share dropbox links again:

    Image showing the settings.xml updated to be: <setting propertyKey="@Properties.AnalogGaugeMetric2" title="@CommonData.Strings.SENSOR_O2">
    https://capture.dropbox.com/AKduGpFVtXUi6gys

    Image showing the result in the simulator:
    https://capture.dropbox.com/nAEY8ZAZ8cULRzWT

    Image showing the lack of upload link in the "insert image" in this reply editor:
    https://capture.dropbox.com/Gdr6V3DVVYAtFeTc

  • I don't think it's a bug, I think you're trying to use the reference where it's not supposed to be used. Try if you switch @Strings.MiniGaugeBottomCenter... to one of the @CommonData.Strings.SENSOR_O2. If it will display the correct string then I am right, if not then probably you, but then as a second test also do the opposite: switch @CommonData.Strings.SENSOR_O2 to @Strings.MiniGaugeBottomCenter....

  • Hey, thanks.  The other user posted in the Discussion forum, and there was at least one other person in the thread with the same issue, but I searched and didn't find a Bug Report matching it.  They used a workaround, but nobody opened a ticket.  Since I'd like to use the barrel the correct way (rather than a shared file workaround), and this does seem like a bug, I thought it would be best to open the first ticket on it.

    Here are the raw images:

  • Please post your screenshots here (as a comment). There's a bug in the forum that doesn't allow to add pictures to the question, but it's better to have the pictures in the thread and not in a third party website.

    However I have to say that you seem to be trying to use the same thing that the other user tried UNSUCCESSFULLY. So don't open a new bug about it. Maybe it would be better to ask in the same (other) thread if anyone found a solution...