Days of the week

Could you tell me how to display the days of the week in a circle, where the arrow is pointing in the screenshot? I don’t want to use graphical text because I want the days of the week to be displayed in different languages.

1 Like

Mulitply the expression [DAY_WEEK] by ~51.5° (360/7). Actually, that’s it.

1 Like

[DAY_WEEK] shows the current day, and I need all the days of the week.

Hi, I know it’s not the same thing you were asking, but try to take inspiration from the example anyway.
hansniekus 5.wfs.zip (174.4 KB)

so you want to show 7 words that should change according to language settings.
there is no tag for automatically localized day/month name other than today date.

to work around the missing tags/functions for each from 100+ locales would be really terribly annoying and tedious.

if you picked few main languages you wanted to support, then you could insert 7 text fields and use this tag to display one variant for each language.


with expression like this [LANG_LOC]==ko_KR?월요일:Mon
sorry I do not know how are the other languages and locales abbreviated. maybe en_UK, ru_RU, no idea, check here maybe they will work. I do not even know whether the words and abbreviations have to be in acclamation marks “” to work properly.
Or instead text fields you could use image for each language with opacity like this [LANG_LOC]==ko_KR?100:0 for the Korean example.

And finally, there is trouble how to check whether they function right, when there is no language setting among preview options.

2 Likes

Hi Volodymyr,
You can try putting all the days in a single text (You may use Tag Expressions to get this string) and apply Curved Text from the properties section. The difference from “Start” and “Angular Distance” should be 360 degrees to complete an entire circle. Hope this helps.
Regards,
Imrul Anwar

1 Like

In case you decide to use above mentioned circular text field option and put all 7 words/abbreviations in it, consider using font with fixed letter width to get them spread around circle evenly, so the pointing hand can use 1/7 of rotation for each without further corrections.

2 Likes

It looks good, thanks for the idea.

1 Like

In WFS as you can see there is the possibility to verify languages.



2 Likes

there is only this possibility of having TAGS that update automatically. Unfortunately it only puts the beginning of the letter of the day. So I thought of putting the 3 letters for the day corresponding to today’s date and the others with the formula of +1. +2, +3 etc etc to give the initial letters of the other days.
If you decide to use the suggestion I gave you, obviously reproducing it in circles as you need it, could you show me the final result?

Simply set the date with the “Add Component” in date format and then choose the layout you need, see the one underlined in yellow.

1 Like

Thanks for pointing this out, I have to check it and also the language preview on other PC, where I have new version.

1 Like