Is it possible to change the name of the month to another language in the LIM!T skin and change the 12/24 clock format?
Well thank you
It is currently April 25th, 2024, 9:49 am
LIM!T - change language in date / clock format
-
- Posts: 17
- Joined: May 16th, 2021, 10:47 am
-
- Rainmeter Sage
- Posts: 1399
- Joined: April 24th, 2021, 8:13 pm
Re: LIM!T - change language in date / clock format
You can get info about formats here:
https://docs.rainmeter.net/manual/measures/time/#FormatCodes
About translating you may have to use substitutions.
https://docs.rainmeter.net/manual/measures/general-options/substitute/
from the Realm of Death
-
- Rainmeter Sage
- Posts: 16168
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: LIM!T - change language in date / clock format
Actually besides translating the month names with substitutions, better is to format the Time measure(s) which is/are returning the appropriate information to the desired language. This can be easily done on such Time measures, by simply adding a FormatLocale option, with the desired language. For instance the following option will translate the value returned by the measure to Romanian, but obviously you'll have to get the appropriate language code: FormatLocale=ro-RO. You can get this code here.
I suppose you'd like to translate the month name in the LIM!T\time\date\fill-date.ini skin. If this is right, add the above FormatLocale option to the [mMonthName] measure of the mentioned skin.
To change the format of the clock to 24-hour, replace the Format=%I option of the [mHour] measure with Format=%H in the LIM!T\time\clock\fill-clock.ini skin. Additionally if you do this, you probably will want to remove the AM/PM from the skin as well. For this you have to add a Hidden=1 option to both meters [ampmBG] and [ampmFill], of the same LIM!T\time\clock\fill-clock.ini skin.
I suppose you'd like to translate the month name in the LIM!T\time\date\fill-date.ini skin. If this is right, add the above FormatLocale option to the [mMonthName] measure of the mentioned skin.
To change the format of the clock to 24-hour, replace the Format=%I option of the [mHour] measure with Format=%H in the LIM!T\time\clock\fill-clock.ini skin. Additionally if you do this, you probably will want to remove the AM/PM from the skin as well. For this you have to add a Hidden=1 option to both meters [ampmBG] and [ampmFill], of the same LIM!T\time\clock\fill-clock.ini skin.
-
- Developer
- Posts: 22629
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
-
- Posts: 17
- Joined: May 16th, 2021, 10:47 am
Re: LIM!T - change language in date / clock format
@death.crafter
@balala
@jsmorley
you helped me a lot
Thank you very much
@balala
@jsmorley
you helped me a lot
Thank you very much
-
- Rainmeter Sage
- Posts: 16168
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: LIM!T - change language in date / clock format
I'm glad but question is how did you solve it, by substitution or by FormatLocale?
-
- Posts: 17
- Joined: May 16th, 2021, 10:47 am
Re: LIM!T - change language in date / clock format
I used "FormatLocale = xx-XX" and "Format =% H" and everything works fine.
I still have a question. Is it possible to change the size, colors and font of the clock / date? Well thank you
-
- Rainmeter Sage
- Posts: 16168
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: LIM!T - change language in date / clock format
It definitely is, but unfortunately right now I have no enough time. Tomorrow will do, describeing how to deal with it, especially if in meantime no one does it for you. Stay tunned.
-
- Posts: 17
- Joined: May 16th, 2021, 10:47 am
-
- Rainmeter Sage
- Posts: 1399
- Joined: April 24th, 2021, 8:13 pm
Re: LIM!T - change language in date / clock format
Code: Select all
[Meter]
Meter=String
MeasureName=SomeMeasure
FontFace=Segoe UI Light
;FontFace is the font family and typeface you want to use here, this font must be installed on your system or
;kept inside @Resources\Fonts folder.
;For example I used Segoe UI which is default for Windows and comes preinstalled.
;Here Light is the typeface. It is more preferrable than FontWeight if your FontFamily has different typefaces like Bold, light or so.
FontSize=14
;FontSize is the size of the font you want.
FontColor=255,255,255,255
;or FFFFFFFF
;FontColor is the color of your string.
;It may be in RGBA or HEX.
;**Note**: the '#' preceding HEX code must be removed.
FontWeight=400
;FontWeight controls how thick is your font.
https://docs.rainmeter.net/manual/meters/string/
from the Realm of Death