Selecting Language in the Simulator doesn't work

Former Member
Former Member
Displaying the date on a watch faces using: [FONT=Courier New]Time.Gregorian.info(Time.now(), 1).month;[/FONT], etc.

If I set the language to Greek in the simulator, the screen still shows the date in English when it updates.

Yet, if I run the watch face on my device and set the watch to say Greek language, it shows the date correctly in Greek.

I'm using Windows 10 and Eclipse.

EDIT: problem exists in both SDK 2.2.6 and SDK 2.3.1.
  • Former Member
    Former Member
    Anyone else keen to try this please?
  • I don't recall if this ever worked for the built-in date functionality in the simulator. And if it did, it's been a long time since then. However, selecting the language does work to display the proper string when your app uses different language files.

    Cheers,
    Douglas
  • Former Member
    Former Member
    Thanks for that.

    This is a problem because it makes it hard to test the layouts on devices because some languages have 4 character month abbreviations for certain months whereas with English all are 3 characters. I have no idea what other language fonts will look like.

    I sent an email off to Garmin as per the instructions, but no acknowledgement has been sent to me. I don't even know if they've seen it, let alone opened a ticket.
  • Former Member
    Former Member
    Oh... true.

    Can't do that with Greek as 3 character abbreviations for June and July would be identical i.e. Ιούν and Ιούλ will both become Ιού.
  • Oh... true.

    Can't do that with Greek as 3 character abbreviations for June and July would be identical i.e. Ιούν and Ιούλ will both become Ιού.


    What I do to handle that is ensure that I've allocated enough screen space for a day string of three or four characters and then I simply draw the text in that area, center justified both horizontally and vertically. Assuming the variables [FONT=Courier New]datePosX[/FONT] and [FONT=Courier New]datePosY[/FONT] contain the center points of the area to display the DOW string, you could do something like this:

    dc.drawText(datePosX, datePosY, Graphics.FONT_SYSTEM_SMALL, dateStr, Graphics.TEXT_JUSTIFY_CENTER|Graphics.TEXT_JUSTIFY_VCENTER);

    That way I don't have to worry about whether the day of the week abbreviation is three or four characters, nor do I need to worry about proportional spacing where wide characters like "W" take up more room.

    Cheers,
    Douglas
  • Former Member
    Former Member
    Thanks, Douglas.
  • Former Member
    Former Member
    Hey,

    I've been working on this for a bit and was able to produce a reliable reproduction case. I've got a ticket created to investigate.

    Thanks,
    -Coleman
  • Former Member
    Former Member
    Thank you, Coleman.