It is currently April 25th, 2024, 9:49 am

LIM!T - change language in date / clock format

Get help with creating, editing & fixing problems with skins
seanx
Posts: 17
Joined: May 16th, 2021, 10:47 am

LIM!T - change language in date / clock format

Post by seanx »

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
User avatar
death.crafter
Rainmeter Sage
Posts: 1399
Joined: April 24th, 2021, 8:13 pm

Re: LIM!T - change language in date / clock format

Post by death.crafter »

seanx wrote: May 17th, 2021, 4:51 am 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
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
User avatar
balala
Rainmeter Sage
Posts: 16168
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: LIM!T - change language in date / clock format

Post by balala »

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.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: LIM!T - change language in date / clock format

Post by jsmorley »

Here is another source for the language codes:

https://admin.rainmeter.net/LanguageCodes.php
seanx
Posts: 17
Joined: May 16th, 2021, 10:47 am

Re: LIM!T - change language in date / clock format

Post by seanx »

@death.crafter
@balala
@jsmorley
you helped me a lot
Thank you very much
:thumbup:
User avatar
balala
Rainmeter Sage
Posts: 16168
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: LIM!T - change language in date / clock format

Post by balala »

seanx wrote: May 17th, 2021, 2:11 pm @death.crafter
@balala
@jsmorley
you helped me a lot
Thank you very much
:thumbup:
I'm glad but question is how did you solve it, by substitution or by FormatLocale?
seanx
Posts: 17
Joined: May 16th, 2021, 10:47 am

Re: LIM!T - change language in date / clock format

Post by seanx »

balala wrote: May 17th, 2021, 6:38 pm I'm glad but question is how did you solve it, by substitution or by FormatLocale?
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
User avatar
balala
Rainmeter Sage
Posts: 16168
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: LIM!T - change language in date / clock format

Post by balala »

seanx wrote: May 17th, 2021, 7:16 pm I still have a question. Is it possible to change the size, colors and font of the clock / date? Well thank you
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.
seanx
Posts: 17
Joined: May 16th, 2021, 10:47 am

Re: LIM!T - change language in date / clock format

Post by seanx »

balala wrote: May 17th, 2021, 7:30 pm 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.
Fine.
This can be at any time, no need to hurry.
User avatar
death.crafter
Rainmeter Sage
Posts: 1399
Joined: April 24th, 2021, 8:13 pm

Re: LIM!T - change language in date / clock format

Post by death.crafter »

seanx wrote: May 17th, 2021, 7:16 pm 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

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.
More about formatting String meter can be found here:
https://docs.rainmeter.net/manual/meters/string/
from the Realm of Death