How to show Russian day and month names in simulator and watch!?

Hi,

i have enabled Russian in the manifest and in the simulator but these

var day = Calendar.info(now, Time.FORMAT_MEDIUM).day_of_week;
var month = Calendar.info(now, Time.FORMAT_MEDIUM).month;

Show

Sun
Feb

Using the Sys.Print statement and on the simulator itself.

How can I get them to show as the Russian version?

Second problem, on the watch they are shown as squares, I think thats because I dont have the Cyrillic chars in the custom font files. Looking the Cyrillic charqacters in BMPFONT, there are LOADS of them, do I need all of them!?

Any help greatly appreciated!
  • Hi,

    i have enabled Russian in the manifest and in the simulator but these

    var day = Calendar.info(now, Time.FORMAT_MEDIUM).day_of_week;
    var month = Calendar.info(now, Time.FORMAT_MEDIUM).month;

    Show

    Sun
    Feb

    Using the Sys.Print statement and on the simulator itself.

    How can I get them to show as the Russian version?

    Second problem, on the watch they are shown as squares, I think thats because I dont have the Cyrillic chars in the custom font files. Looking the Cyrillic charqacters in BMPFONT, there are LOADS of them, do I need all of them!?

    Any help greatly appreciated!


    Unfortunately the language setting in the simulator is only for testing language resource files.
    It has no effect on the date, unfortunately.

    I have reported this previously.

    As for the second problem, you need to find the chars for needed for all 12 months in Russia. Perhaps a google search might help.
    I am not sure why they show up as squares. I have confirmed that scandinavian chars do work since 1.2.4, but perhaps there could be another issue with cyrillic fonts, not sure.
  • OK perhaps a better way...

    How can I always ensure that Sun, Mon, Sunday, Tuesday, Jan, Feb, January, February etc are ALWAYS shown despite the language on the watch?

    If the watch is set to say Russian will Calendar.info(now, Time.FORMAT_MEDIUM).day_of_week return "Sun' or the Russian version?

    What I think I'd like to do is not have to have the cyrillic chars in the font file and just show English. Is there a way to do that?

    I apprecaite some users in Russia, Sweden, France etc would like to see the names of the days and months in the correct native characters but I would rather ensure that al the very least the Ebglish version is shown instead of squares!

    Argh!

    What are the 'language qualifiers' mentioned in appendix A of the users guide?
    Is there a working example/sample of how to support different languages with custom fonts?
  • Hi,

    i have enabled Russian in the manifest and in the simulator but these

    var day = Calendar.info(now, Time.FORMAT_MEDIUM).day_of_week;
    var month = Calendar.info(now, Time.FORMAT_MEDIUM).month;

    Show

    Sun
    Feb

    Using the Sys.Print statement and on the simulator itself.

    How can I get them to show as the Russian version?

    Second problem, on the watch they are shown as squares, I think thats because I dont have the Cyrillic chars in the custom font files. Looking the Cyrillic charqacters in BMPFONT, there are LOADS of them, do I need all of them!?

    Any help greatly appreciated!

    Just get the SHORT format of the date info, and map the day or month nr to a string representing that day and month
  • 1430

    So I need to work out what "Mon" looks like for Russian and display that? So extending that out I need to work out and code for every possiblility of

    Mon... etc, etc,
    Monday... etc, etc,
    Jan... etc, etc,
    January... etc, etc,

    for all supported languages, starting with Russian but eventually Sweden, French, etc, etc, etc?

    Or is you solution to force the English version?

    Thanks!
  • So I need to work out what "Mon" looks like for Russian and display that? So extending that out I need to work out and code for every possiblility of

    Mon... etc, etc,
    Monday... etc, etc,
    Jan... etc, etc,
    January... etc, etc,

    for all supported languages, starting with Russian but eventually Sweden, French, etc, etc, etc?

    Or is you solution to force the English version?

    Thanks!

    My last post was just based on your idea to force the English version. So mapping the month number to English string would be easy.

    Unfortunately there is no other easier alternative than mapping out every possibility.

    I don't do that with custom fonts in any of my watchfaces, because of this. All my dates are using built-in fonts. Just my time is displayed in custom font. The one that does have date using a custom font displays wrong in other languages. Have never bothered to fix it though.
  • Former Member
    Former Member over 9 years ago
    Second problem, on the watch they are shown as squares, I think thats because I dont have the Cyrillic chars in the custom font files. Looking the Cyrillic charqacters in BMPFONT, there are LOADS of them, do I need all of them!?


    There are no loads of Cyrillic characters. How many do you see, 50? You need to include only the ones used in the Russian alphabet.
  • Former Member
    Former Member over 9 years ago
    pousse

    OK perhaps a better way...
    What are the 'language qualifiers' mentioned in appendix A of the users guide?
    Is there a working example/sample of how to support different languages with custom fonts?

    If you ever developed for Android, then you already know how this works: e.g. for Russian language you need to create "resources-rus" directory in the root of the project, everything you declare in there will override default resource definitions. At least that's how it works for me with localized strings. But you may try to declare another "fonts.xml" containing reference to another font with russian symbols only under "resources-rus" and, I hope, this will be all that's necessary.

    Upd: If I set watch language to Russian in watch settings, then default watch face shows day of week in Russian, so inbuilt fonts support cyrillic. Also, if I declare Russian strings in project resources, they are displayed correctly with those fonts in emulator. So, maybe there are still things you need to configure in eclipse/on watch.
  • My last post was just based on your idea to force the English version. So mapping the month number to English string would be easy.


    I did this and it works on the 920 (at least), but one user with a Fenix running in Russian says he still gets squares for the day and month! It does't make any sense. Surely the Fenix returns numerics for the short version of the dates and therefore should be trying to display 'Mon', 'Jan' etc which characters ARE in my custom font. ARGH!
  • I did this and it works on the 920 (at least), but one user with a Fenix running in Russian says he still gets squares for the day and month! It does't make any sense. Surely the Fenix returns numerics for the short version of the dates and therefore should be trying to display 'Mon', 'Jan' etc which characters ARE in my custom font. ARGH!


    This is odd. Try find out which FW version on f3 he is running. Maybe the Garmin folks here can see if something is not compatible. If it is the latest FW, then it should work. But since it is not, we need to gather as much info as possible.
  • Yes, let us know the firmware version, and we'll look into it.