Hi guys, I would like to change the language of a skin from english to french (hour...) but i'm lost. Please u guys can help me
~Attachment file~
Big THANKS !
It is currently April 25th, 2024, 4:51 pm
Change Hour of a skin [FRENCH]...
-
- Posts: 2
- Joined: October 19th, 2020, 6:53 am
Change Hour of a skin [FRENCH]...
You do not have the required permissions to view the files attached to this post.
-
- Posts: 571
- Joined: February 28th, 2011, 3:20 pm
- Location: Vienna, Austria
Re: Change Hour of a skin [FRENCH]...
Hi tony,
i have modified your skin - a little bit.
The key for translations in your own language is the FormatLocale option for the time-measures.
With FormatLocale=local you get the local translations of the system. But, you can get the language you want by setting it.
If you want german (the austrian variant) you code FormatLocale=de-AT, for british english yo code FormatLocale=en-GB and so on.
The documentation of this option is documented with the time measure: https://docs.rainmeter.net/manual-beta/measures/time/#FormatLocale
In the skin below i made some changes:
i rearranged the measures together at the beginning and adapted the MeasureNames on the meters to reflect the changed measures.
Please try it and if something is unclear, please ask again.
I want to explain one measure - the one to get the name of the previous month:
The line Timestamp=([MeasureCurrentDay:Timestamp] - [MeasureCurrentDay:] * 86400) subtracts the number of days of the current date - so i get the last day in the previous month. With the Format-option %B i get the name of this previous month - voila!
i have modified your skin - a little bit.
The key for translations in your own language is the FormatLocale option for the time-measures.
With FormatLocale=local you get the local translations of the system. But, you can get the language you want by setting it.
If you want german (the austrian variant) you code FormatLocale=de-AT, for british english yo code FormatLocale=en-GB and so on.
The documentation of this option is documented with the time measure: https://docs.rainmeter.net/manual-beta/measures/time/#FormatLocale
In the skin below i made some changes:
i rearranged the measures together at the beginning and adapted the MeasureNames on the meters to reflect the changed measures.
Please try it and if something is unclear, please ask again.
I want to explain one measure - the one to get the name of the previous month:
Code: Select all
[MeasureMonth_Prev_1]
Measure=Time
Format=%B
Timestamp=([MeasureCurrentDay:Timestamp] - [MeasureCurrentDay:] * 86400)
DynamicVariables=1
FormatLocale=local
Code: Select all
[Rainmeter]
Update=3000
[Variables]
Color=255,255,255
Size=600
; --------------------------------------------------------------------------------
; Measures
; --------------------------------------------------------------------------------
[MeasureCurrentDay]
Measure=Time
Format=%d
[MeasureMonth_Prev_Day]
Measure=Time
Format=%d
Timestamp=([MeasureCurrentDay:Timestamp] - [MeasureCurrentDay:] * 86400)
DynamicVariables=1
[MeasureMonth_Prev_1]
Measure=Time
Format=%B
Timestamp=([MeasureCurrentDay:Timestamp] - [MeasureCurrentDay:] * 86400)
DynamicVariables=1
FormatLocale=local
[MeasureMonth_Prev_2]
Measure=Time
Format=%B
Timestamp=([MeasureMonth_Prev_Day:Timestamp] - [MeasureMonth_Prev_Day:] * 86400)
DynamicVariables=1
FormatLocale=local
[MeasureMonth_Next_1]
Measure=Time
Format=%B
Timestamp=([MeasureCurrentDay:Timestamp] + 31 * 86400)
DynamicVariables=1
FormatLocale=local
[MeasureMonth_Next_2]
Measure=Time
Format=%B
Timestamp=([MeasureCurrentDay:Timestamp] + 62 * 86400)
DynamicVariables=1
FormatLocale=local
[MeasureMonth]
Measure=Time
Format=%B
FormatLocale=local
[MeasureTime]
Measure=Time
Format=%R %p
FormatLocale=local
[MeasureDaynameDay]
Measure=Time
Format=%A %d
FormatLocale=local
; --------------------------------------------------------------------------------
; Meters:
; --------------------------------------------------------------------------------
[MonthPrev2]
Meter=String
MeasureName=MeasureMonth_Prev_2
FontSize=(#size#/20)
FontColor=#Color#,100
FontFace=Futurist Fixed-width
StringCase=Upper
AntiAlias=1
StringAlign=Center
X=(#Size#/2)
[MonthPrev1]
Meter=String
MeasureName=MeasureMonth_Prev_1
FontSize=(#size#/20)
FontColor=#Color#,150
FontFace=Futurist Fixed-width
StringCase=Upper
AntiAlias=1
StringAlign=Center
X=r
Y=(#size#/20)R
[Time]
Meter=String
MeasureName=MeasureTime
FontSize=(#size#/40)
FontColor=#Color#
FontFace=GalanoGrotesqueDEMO-Bold
StringCase=Upper
AntiAlias=1
StringAlign=Center
X=(#size#/4)
Y=R
DynamicVariables=1
[Month]
Meter=String
MeasureName=MeasureMonth
FontSize=(#size#/10)
FontColor=#Color#
FontFace=GalanoGrotesqueDEMO-Bold
StringCase=Upper
AntiAlias=1
StringAlign=Center
X=(#Size#/2)
Y=(-#size#/20)R
[DaynameDay]
Meter=String
MeasureName=MeasureDaynameDay
FontSize=(#size#/40)
FontColor=#Color#
FontFace=GalanoGrotesqueDEMO-Bold
StringCase=Upper
AntiAlias=1
StringAlign=Center
X=(#size#*3/4)
Y=(-#size#/40)R
DynamicVariables=1
[MonthNext1]
Meter=String
MeasureName=MeasureMonth_Next_1
FontSize=(#size#/20)
FontColor=#Color#,150
FontFace=Futurist Fixed-width
StringCase=Upper
AntiAlias=1
StringAlign=Center
X=(#Size#/2)
Y=(#size#/40)R
[MonthNext2]
Meter=String
MeasureName=MeasureMonth_Next_2
FontSize=(#size#/20)
FontColor=#Color#,100
FontFace=Futurist Fixed-width
StringCase=Upper
AntiAlias=1
StringAlign=Center
X=r
Y=(#size#/20)R
-
- Posts: 2
- Joined: October 19th, 2020, 6:53 am
Re: Change Hour of a skin [FRENCH]...
Thank you for your responsiveness! Everything is now at the top of the top.
I understand better now... It is true that we must still be a bit grounded in this. In the old .ini file, I tried to put a bit everywhere below the "[Measure]" this: TimeStampLocale = FRA but unfortunately it did not work.
I hope to have your help again in the future...for other posts that I will do.
Thanks again for the help
I understand better now... It is true that we must still be a bit grounded in this. In the old .ini file, I tried to put a bit everywhere below the "[Measure]" this: TimeStampLocale = FRA but unfortunately it did not work.
I hope to have your help again in the future...for other posts that I will do.
Thanks again for the help
-
- Posts: 571
- Joined: February 28th, 2011, 3:20 pm
- Location: Vienna, Austria
-
- Rainmeter Sage
- Posts: 16169
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Change Hour of a skin [FRENCH]...
Here (second table) you can find a list of language codes, however unfortunately as far as I can tell, not all of those codes are working in Rainmeter.ikarus1969 wrote: ↑October 19th, 2020, 7:49 am The documentation of this option is documented with the time measure: https://docs.rainmeter.net/manual-beta/measures/time/#FormatLocale
-
- Developer
- Posts: 22629
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Change Hour of a skin [FRENCH]...
Can you give an example of one that doesn't work with Rainmeter?
-
- Rainmeter Sage
- Posts: 2605
- Joined: March 23rd, 2015, 5:26 pm
Re: Change Hour of a skin [FRENCH]...
I don't know if this is exactly on topic, but a lot of the locale codes don't work perfectly 100%. What I mean is, assuming Windows locales are somewhat accurate, the formatting of dates and times doesn't follow for the separator characters. In other words, some locales use periods on dates (10.19.2020). The day/month names work fine (AFAIK), but the separators are always colons and slashes/dashes (I forget which).
These aren't a big deal, since they can all be fixed with substitutes (assuming you know how to figure out what the substitute should be).
-
- Rainmeter Sage
- Posts: 16169
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Change Hour of a skin [FRENCH]...
No, I can't. I realized after I posted my previous reply, that I made a mistake. Where not all those language codes did work was the weather.com a while ago, but didn't even check recently.
So, sorry, was my mistake.