Are you sure you named the entry within the theme "l" or is it "I" (notice uppercase i and Lowercase L look the same in some fonts). Did you create a separate theme or is this part of a single theme file?
Notice you can inspect the theme object in the debugger at that line and you should be able to find all the objects within it. This will let you verify that the content is stored within the theme and at what hierarchy. On Friday, February 12, 2021 at 2:06:57 PM UTC+2 [email protected] wrote: > At Shai Almog > > I have changed the name of the bundle to Localization (L10N) and > tried to attach it but with no avail. Still when I look in > the codename one designer - themes - advanced - > > the preview is in Danish, > but when I run the simulator from the designer it is in English. > > I still get the same error in the line: > UIManager.getInstance().setBundle(theme.getL10N("I","dk")); > > Regards Henrik > > Den 12/02/2021 kl. 06.07 skrev Shai Almog: > > It looks like in the theme.getL10N() call the first parameter is > > incorrect since the bundle name is: "Localization (L10N) 1". > > -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/24bca3a2-491a-4bcc-8f16-00b6b80bc6d3n%40googlegroups.com.
