MMM-Formula1 icon indicating copy to clipboard operation
MMM-Formula1 copied to clipboard

Add Italian translation and coloured flags

Open mirrormonark opened this issue 1 year ago • 9 comments

Hello. I like this module. It would be possible to add 2 features. The first is the Italian translation. the second are the colored flags and insert that when approaching the date it turns red access (something similar to warn)

mirrormonark avatar Mar 15 '23 17:03 mirrormonark

Hi @mirrormonark

Thanks for the comments and suggestions

For the translation, can you provide the correct translations for the following words

  • Driver
  • Constructor
  • Season
  • Round

for the coloured flags idea can you explain what you’re looking for, or perhaps mock-up a little example and I’ll take a look to see if this can be achieved

ianperrin avatar Mar 15 '23 19:03 ianperrin

Thank you for responding.

DRIVER - PILOTA (is better for F1) CONSTRUCTOR - COSTRUTTORE / TEAM SEASON - STAGIONE ROUND - ( i ask you what you mean, if you mean the lap number of the circuit.. has this name GIRO. if you mean the circuit is called CIRCUITO. if you mean the race number is called SESSIONE = this is Free practice, qualifying and race

for flags i mean for example: https://4.bp.blogspot.com/-dYZ5q5ytouo/WXTuXm-bzXI/AAAAAAAA_8k/oUfof7opzVYhO6feQI6Cjh1Ijw18QKHuACLcBGAs/s1600/world-country-flags-names.jpg

but maybe is better this https://thumbs.dreamstime.com/z/formula-1-flags-16145718.jpg

mirrormonark avatar Mar 15 '23 20:03 mirrormonark

Thanks for the translations - they've been added to the module - please update to the latest version

ianperrin avatar Mar 15 '23 22:03 ianperrin

Flags are already displayed in the drivers and constructors tables. By default, they are shown in grayscale. However if you set the grayscale option to false, they will display in colour.

  {
    module: "MMM-Formula1",
    position: "top_right",
    header: "F1 Standings",
    config: {
      grayscale: false
    }
  }

Is this what you wanted?

ianperrin avatar Mar 15 '23 22:03 ianperrin

goodmorning, sir. I just checked. For my personal taste I prefer flags with round style like this https://thumbs.dreamstime.com/z/formula-1-flags-16145718.jpg .. but even so it's fine.. I'm asking for something extra, aesthetic level.

mirrormonark avatar Mar 16 '23 12:03 mirrormonark

in the 2.0.0 version some new language labels have been introduced,

It would be great if you can add translation for the labels after the first four entries, currently still in english

{ "DRIVER": "Pilota", "CONSTRUCTOR": "Costruttore", "SEASON": "Stagione", "ROUND": "Sessione", "NO DATA": "No data provided by api(yet)", "RACE_DETAILS": "Race details", "CIRCUIT_LAYOUT": "Circuit layout", "NEXT_RACE": "Next race", "RACE_DATE": "Race", "QUALI_DATE": "Quali", "SPRINT_DATE": "Sprint", "FP1_DATE": "Free Practice 1", "FP2_DATE": "Free Practice 2", "FP3_DATE": "Free Practice 3" }

73cirdan avatar Apr 01 '24 09:04 73cirdan

i see that there are already some translations made, but how can I set a specific language to appear in my module?

jonathanbonette avatar Apr 29 '24 01:04 jonathanbonette

You can configure that for the entire mirror, see the first lines in the config files. Change the language parameter. Instruction video here: https://m.youtube.com/watch?v=WPqO9Erq_hQ You probably need the value it

73cirdan avatar Apr 29 '24 18:04 73cirdan

ohh thx, there was a problem here because im from brazil, and for some reason pt-br does not work with my translation, but ill work with pt for now xD

jonathanbonette avatar Apr 29 '24 23:04 jonathanbonette