Force english for a custom font?

I'm having an issue where someone left a review saying, " force English for months and week days."

I'm using a custom font. How can I accomplish this? Thanks.

  • What I do is for Time.Gregorian.info() I use Time.FORMAT_SHORTso what you get back is a number (1 to 7 for day_of_week) for example, and then use my own array to get the english names

    var days=["","Sun","Mon","Tue","Wed","Thu","Fri","Sat"];

    like this

    var dow=days[clockTime.day_of_week];

  • as Jim said, you have to hardcode it as he did, the same thing for the months, make sure your custom font contains all the desired letter (case sensitive), but maybe put an option for this, 1 user ask you that and if you do so another will ask you to bring it back as it was.

  • This is what I was using:

    var today = Gregorian.info(Time.now(), Time.FORMAT_MEDIUM);
    var dateString = today.day_of_week + ", " + today.month + " " + today.day;

    I don't see how it would translate. Even your array is still a String.

  • What you get back with Time.FORMAT_MEDIUM ot Time.FORMAT_LONG for day_of_week and month is a string in the language the watch is set for.  And with a custom font, you need to have every character in those for any language. If you use a native font for the date, this is taken care of.

    Another option is to just display the number for month in dd-mm or mm-dd format (make this configurable in settings)