If you want to have a skin that displays the date, one of the things you might want is to have it display in the "language" of the user that is running the skin.
Before these changes to the Time measure, that generally meant some hideously long and convoluted Substitute statements, for things like "month name" or "day name". You would then need those for every "language" you wanted to support, or expect the end-user to modify the Substitutes to "translate" them to the desired language. This could also mean that the skin .ini file would have to be encoded as UTF-16 to support their character set.
With the new FormatLocale option for the Time measure, you can have a skin with a formatted date, and it can automatically "translate" to the language of the user's system. Pretty much any language. Neither you, nor they, need to do anything to make it work. Also, since the actual characters are not embedded in the skin .ini code, no particular encoding is needed.
The key is that option, which will get the "locale" setting in Windows for the machine the skin is running on. Then you just build your display meters, and Bingo, the skin is automatically "translated".
Code: Select all
[Rainmeter] Update=1000 DynamicWindowSize=1 AccurateText=1 [MeasureDayOfWeek] Measure=Time FormatLocale=Local Format=%A DynamicVariables=1 [MeasureMonthDay] Measure=Time FormatLocale=Local Format=%B %#d DynamicVariables=1 [MeasureYear] Measure=Time FormatLocale=Local Format=%Y DynamicVariables=1 [MeterDayOfWeek] Meter=String MeasureName=MeasureDayOfWeek FontSize=40 FontColor=255,255,255,255 SolidColor=0,0,0,1 StringCase=Upper AntiAlias=1 [MeterMonthDay] Meter=String MeasureName=MeasureMonthDay X=([MeterDayOfWeek:W]) Y=0R StringAlign=Right FontSize=20 FontColor=255,255,255,255 SolidColor=0,0,0,1 AntiAlias=1 DynamicVariables=1 [MeterYear] Meter=String MeasureName=MeasureYear X=([MeterDayOfWeek:W]) Y=0R StringAlign=Right FontSize=30 FontColor=255,255,255,255 SolidColor=0,0,0,1 AntiAlias=1 DynamicVariables=1
On an English user's system: On a Dutch user's system: On a French user's system: On a Hebrew user's system: On a Russian user's system: On a Turkish user's system: