Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

[Suggestion] Use FormatLocale to translate a few strings #14

Open
Drgabi18 opened this issue Dec 18, 2023 · 0 comments
Open

[Suggestion] Use FormatLocale to translate a few strings #14

Drgabi18 opened this issue Dec 18, 2023 · 0 comments

Comments

@Drgabi18
Copy link

Quick suggestion, on Time measures you can just use the FormatLocale option that Rainmeter offers, this lets the skin at least use many many more languages since it translates the strings automatically, you can just do

[MeasureTimeAMPM]
Measure=Time
Format=#TimeFormat.3# #VariableTimeAMPM#
FormatLocale=Local

instead of the many many lines that you have right now, like

[MeasureTimeAMPM]
Measure=Time
Format=#TimeFormat.3# #VariableTimeAMPM#
Substitute="January":"#T.January#","February":"#T.February#","March":"#T.March#","April":"#T.April#","May":"#T.May#","June":"#T.June#","July":"#T.July#","August":"#T.August#","September":"#T.September#","October":"#T.October#","November":"#T.November#","December":"#T.December#","Jan":"#T.Jan#","Feb":"#T.Feb#","Mar":"#T.Mar#","Apr":"#T.Apr#","May":"#T.May#","Jun":"#T.Jun#","Jul":"#T.Jul#","Aug":"#T.Aug#","Sep":"#T.Sep#","Oct":"#T.Oct#","Nov":"#T.Nov#","Dec":"#T.Dec#","Sunday":"#T.Sunday#","Monday":"#T.Monday#","Tuesday":"#T.Tuesday#","Wednesday":"#T.Wednesday#","Thursday":"#T.Thursday#","Friday":"#T.Friday#","Saturday":"#T.Saturday#","AM":"#T.AM#","PM":"#T.PM#"

[Variables]
T.Sunday=Sunday
T.Monday=Monday
T.Tuesday=Tuesday
T.Wednesday=Wednesday
T.Thursday=Thursday
T.Friday=Friday
T.Saturday=Saturday
T.Sun=Sun
T.Mon=Mon
T.Tue=Tue
T.Wed=Wed
T.Thu=Thu
T.Fri=Fri
T.Sat=Sat

T.January=January
T.February=February
T.March=March
T.April=April
T.May=May
T.June=June
T.July=July
T.August=August
T.September=September
T.October=October
T.November=November
T.December=December
T.Jan=Jan
T.Feb=Feb
T.Mar=Mar
T.Apr=Apr
T.May=May
T.Jun=Jun
T.Jul=Jul
T.Aug=Aug
T.Sep=Sep
T.Oct=Oct
T.Nov=Nov
T.Dec=Dec

All of it replaced with a single line and more multilingual! Also the short versions of the day like Mon, Tue are not translated on the [MeasureTimeAMPM] from above and in the 2 other places it appears.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant