Strings.ini: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
3,645 bytes added ,  10:14, 9 May 2021
m
m (→‎Modifying the phrases: add to category)
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
The file strings.ini allows the customisation of a number of phrases, including the associated webtags.
The '''optional''' file ''strings.ini'' allows the customisation of a number of phrases that are output by Cumulus.  It affects the output where shown (Cumulus 1.x.x) on the main screen, and where included (all Cumulus versions) in the web tags.


Currently you can modified phrases associated with the following:
=Introduction=


No Cumulus release includes a '''strings.ini''' file (note that unless you are running Cumulus in a Windows operating system, all characters in this file name must be lower case).  It is a file that a Cumulus user can add to customise some of the output that comes from Cumulus software.
Essentially, ''strings.ini'' is constructed by including one or more parameters taken from ''[[samplestring.ini]]'' (that file is in the distribution).  Each parameter is made up of an "attribute=value" pair, with the left hand side indicating what Cumulus is trying to output, and the right hand side indicating the phrase you want Cumulus to use instead. Please note, that for MX only, there are some exceptions where the LHS does not indicate the default output, the default is as per RHS in '''samplestrings.ini''', and these exceptions use embedded parameters on the RHS, for these exceptions you can modify the text surrounding certain output figures represented by imbedded {0} and {1}.
Note that you can only change the display of items that are already present in the samplestrings.ini file that is part of the distribution for whatever release of Cumulus you are running. You can't just add other items to the file and expect them to work.
Currently you can modify phrases associated with the following:
'''Legacy Cumulus 1.9.x'''
*Forecasting
*Forecasting
*Moonphases
*Moon phases
*Beaufort Scale
*Beaufort Scale
*Trend descriptions
*Trend descriptions
*Compass points
*Compass points
*Graph titles
*Graph titles (not applicable to MX)
*Additional sensor names
*Additional sensor names


Note that you can only change the display of items that are already present in the samplestrings.ini file (and hence in your strings.ini file). You can't just add other items to the file and expect them to work.
'''Cumulus MX (under development)'''
*Solar (not applicable to legacy Cumulus)
*Forecasting
*Moon phases
*Beaufort Scale
*Trend descriptions
*Compass points
*Extra sensor names (more extensive than legacy Cumulus)
 
(Please see [[Samplestring.ini]] page for full list of group names, appearing in square brackets [], for MX).


=Modifying the phrases=
=Modifying the phrases=


In the folder where you installed Cumulus, you will find a file called <tt>samplestrings.ini</tt>. Take a copy of this, leave it in the Cumulus installation folder, and name it <tt>strings.ini</tt>
[[Category:Cumulus Files]]
In the folder where you installed Cumulus, you will find a file called <tt>samplestrings.ini</tt>. Take a copy of this, leave it in the Cumulus installation folder, and rename it <tt>strings.ini</tt>. Note that your 'strings.ini' only needs to contain the rows with phrases you want to modify.


You can edit anything that follows the equals sign.  By default, there is always a particular phrase already there, but you can replace the right hand text with the equivalent in another language, or with a similar but more descriptive phase that is easier for you to understand.
You can edit anything that follows the equals sign.  By default, there is always a particular phrase already there, but you can replace the right hand text with the equivalent in another language, or with a similar but more descriptive phase that is easier for you to understand. If you do not want to change the right hand text, then the entire line can be deleted, and the default will be used by Cumulus.


'''You must restart Cumulus if you make changes to the Strings.ini file while Cumulus is running'''.  Cumulus only reads the file when it starts to run.
'''You must restart Cumulus if you make changes to the strings.ini file while Cumulus is running'''.  Cumulus (any flavour) only reads the file when it starts to run.


=Forecast phrases=
=Forecast phrases=
Line 46: Line 65:
This section [ExtraSensorCaptions] allows you to assign meaningful names to any addtional sensors you may have added to your WMR100/200 weather station.
This section [ExtraSensorCaptions] allows you to assign meaningful names to any addtional sensors you may have added to your WMR100/200 weather station.


==Extra Temperature Captions, Extra Humidity Captions, Extra Dew Point Captions, Soil Temperature Captions, Soil Moisture Captions, Leaf Temperature Captions, and leaf Wetness Captions==
=Extra Temperature Captions, Extra Humidity Captions, Extra Dew Point Captions, Soil Temperature Captions, Soil Moisture Captions, Leaf Temperature Captions, and Leaf Wetness Captions=
 
Check which of these are available for the release you are running. There may be more than those listed here.
 
Meaningful descriptive labels can be assigned to each extra Davis or Oregon Scientific sensor by editing the lines in the following sections and placing a more appropriate descriptive name to the right of the equals sign:
Meaningful descriptive labels can be assigned to each extra Davis or Oregon Scientific sensor by editing the lines in the following sections and placing a more appropriate descriptive name to the right of the equals sign:
* [ExtraTempCaptions]
* [ExtraTempCaptions]
Line 55: Line 77:
* [LeafTempCaptions]
* [LeafTempCaptions]
* [LeafWetnesscaptions]
* [LeafWetnesscaptions]
=Solar=
Please note, the calculations used are approximate, this is a "fun" feature, not a "serious" feature.
[Solar]
MoreDaylightTomorrow=There will be {0}min {1}s more daylight tomorrow
LessDaylightTomorrow=There will be {0}min {1}s less daylight tomorrow
The {0} and {1} strings are placeholders for where you want the minutes and seconds to appear. Note by default, there is no space between figure and units.
Legacy Cumulus 1: Remember that these minutes and seconds are calculated only at midnight based on times for '''last Dawn''' and ''next Dusk'' that will be on different dates (except between dusk and midnight), so they are approximate as they never relate to your current daytime period. However, this modification is only available in Cumulus 2 and 3 (MX).
MX: Recalculated during the day, so you may see the figures change depending on local time. Please remember, the dawn and dusk used may still be on different days.


=Example file=
=Example file=
As an example, a poor attempt at a French translation:


This example  of '''strings.ini''' has had some English phrases (see ''samplestrings.ini'') replaced by their French equivalents, and a few other terms have been changed to different English phrases just to give an example of what can be done.
<pre>[Forecast]
<pre>[Forecast]
Forecast=Forecast
Forecast=prévisions
notavailable=Not available
notavailable=pas disponibles
exceptional=Exceptional Weather
exceptional=temps exceptionnel
forecast1=Settled fine
forecast1=beau temps établi
forecast2=Fine weather
forecast2=beau temps
forecast3=Becoming fine
forecast3=tendance au beau temps
forecast4=Fine, becoming less settled
forecast4=beau temps, tendance à se dégrader
forecast5=Fine, possible showers
forecast5=beau, averses possibles
forecast6=Fairly fine, improving
forecast6=plutôt beau, en amélioration
forecast7=Fairly fine, possible showers early
forecast7=plutôt beau averses possibles en matinée
forecast8=Fairly fine, showery later
forecast8=assez beau, des averses en soirée
forecast9=Showery early, improving
forecast9=averses, en amélioration
forecast10=Changeable, mending
forecast10=variable, en amélioration
forecast11=Fairly fine, showers likely
forecast11=plutôt beau, averses probables
forecast12=Rather unsettled clearing later
forecast12=plutôt perturbé, s'améliorant
forecast13=Unsettled, probably improving
forecast13=perturbé, s'améliorant probablement
forecast14=Showery, bright intervals
forecast14=pluies éparses, belles éclaircies
forecast15=Showery, becoming less settled
forecast15=averses, temps se découvrant
forecast16=Changeable, some precipitation
forecast16=variable, quelques précipitations
forecast17=Unsettled, short fine intervals
forecast17=perturbé, de rares éclairces
forecast18=Unsettled, precipitation later
forecast18=variable, quelques précipitations tardives
forecast19=Unsettled, some precipitation
forecast19=variable, quelques précipitations
forecast20=Mostly very unsettled
forecast20=très perturbé
forecast21=Occasional precipitation, worsening
forecast21=précipitations occasionnelles, se dégradant
forecast22=Precipitation at times, very unsettled
forecast22=quelques précipitations, très perturbé
forecast23=Precipitation at frequent intervals
forecast23=Precipitations à intervalles fréquents
forecast24=Precipitation, very unsettled
forecast24=Pluie, très perturbé
forecast25=Stormy, may improve
forecast25=tempête, pourrait s'améliorer
forecast26=Stormy, much precipitation
forecast26=tempête, fortes pluies


[MoonPhases]
[MoonPhases]
Newmoon=New moon
Newmoon=nouvelle Lune
WaxingCrescent=Waxing Crescent
WaxingCrescent=premier croissant
FirstQuarter=First Quarter
FirstQuarter=premier quartier
WaxingGibbous=Waxing Gibbous
WaxingGibbous=Lune gibbeuse croissante
Fullmoon=Full moon
Fullmoon=Pleine Lune
WaningGibbous=Waning Gibbous
WaningGibbous=Lune gibbeuse décroissante
LastQuarter=Last Quarter
LastQuarter=dernier quartier
WaningCrescent=Waning Crescent
WaningCrescent=dernier croissant


[Beaufort]
[Beaufort]
Calm=Calm
Calm=Calme
Lightair=Light air
Lightair=très légère brise
Lightbreeze=Light breeze
Lightbreeze=brise légère
Gentlebreeze=Gentle breeze
Gentlebreeze=Petite brise
Moderatebreeze=Moderate breeze
Moderatebreeze=jolie brise
Freshbreeze=Fresh breeze
Freshbreeze=bonne brise
Strongbreeze=Strong breeze
Strongbreeze=vent frais
Neargale=Near gale
Neargale=grand frais
Gale=Gale
Gale=coup de vent
Stronggale=Strong gale
Stronggale=fort coup de vent
Storm=Storm
Storm=Tempête
Violentstorm=Violent storm
Violentstorm=Violente tempête
Hurricane=Hurricane
Hurricane=Ouragan


[Trends]
[Trends]
Risingveryrapidly=Rising very rapidly
Risingveryrapidly=hausse très rapide
Risingquickly=Rising quickly
Risingquickly=hausse rapide
Rising=Rising
Rising=hausse
Risingslowly=Rising slowly
Risingslowly=hausse lentement
Steady=Steady
Steady=stable
Fallingslowly=Falling slowly
Fallingslowly=chute lente
Falling=Falling
Falling=chute
Fallingquickly=Falling quickly
Fallingquickly=chute rapide
Fallingveryrapidly=Falling very rapidly
Fallingveryrapidly=chute très rapide


[Compass]
[Compass]
Line 145: Line 186:
[Graphs]
[Graphs]
SmallGraphWindSpeedTitle=Wind Speed
SmallGraphWindSpeedTitle=Wind Speed
SmallGraphOutsideTemperatureTitle=Outside Temperature  
SmallGraphOutsideTemperatureTitle=Air Temperature  
SmallGraphInsideTemperatureTitle=Inside Temperature
SmallGraphInsideTemperatureTitle=Inside Temperature
SmallGraphPressureTitle=Pressure  
SmallGraphPressureTitle=Atmospheric Pressure  
SmallGraphRainfallRateTitle=Rainfall Rate
SmallGraphRainfallRateTitle=Rainfall Rate
SmallGraphWindDirectionTitle=Wind Direction  
SmallGraphWindDirectionTitle=Wind Direction  
Line 159: Line 200:
LargeGraphWindSpeedTitle=Wind Speed
LargeGraphWindSpeedTitle=Wind Speed
LargeGraphWindGustTitle=Wind Gust
LargeGraphWindGustTitle=Wind Gust
LargeGraphOutsideTempTitle=Temperature
LargeGraphOutsideTempTitle=Air Temperature
LargeGraphHeatIndexTitle=Heat Index
LargeGraphHeatIndexTitle=Heat Index
LargeGraphDewPointTitle=Dew Point
LargeGraphDewPointTitle=Dew Point
Line 168: Line 209:
LargeGraphRainfallRateTitle=Rainfall Rate
LargeGraphRainfallRateTitle=Rainfall Rate
LargeGraphWindDirectionTitle=Wind Direction
LargeGraphWindDirectionTitle=Wind Direction
LargeGraphWindAvgDirectionTitle=Average
LargeGraphWindAvgDirectionTitle=Ave. Direction
LargeGraphMinTempTitle=Min Temp
LargeGraphMinTempTitle=Lowest Temp
LargeGraphMaxTempTitle=Max Temp
LargeGraphMaxTempTitle=Highest Temp
LargeGraphAvgTempTitle=Avg Temp
LargeGraphAvgTempTitle=Average Temp
LargeGraphInsideHumidityTitle=Inside Humidity
LargeGraphInsideHumidityTitle=Inside Humidity
LargeGraphOutsideHumidityTitle=Outside Humidity
LargeGraphOutsideHumidityTitle=Outside Humidity
Line 183: Line 224:
[ExtraSensorCaptions]
[ExtraSensorCaptions]
Solar=Solar
Solar=Solar
ExtraChannel2=Extra Channel 2
ExtraChannel2=My Channel 2
ExtraChannel3=Extra Channel 3
ExtraChannel3=My Channel 3
ExtraChannel4=Extra Channel 4
ExtraChannel4=My Channel 4
ExtraChannel5=Extra Channel 5
ExtraChannel5=unused Channel 5
ExtraChannel6=Extra Channel 6
ExtraChannel6=unused Channel 6
ExtraChannel7=Extra Channel 7
ExtraChannel7=unused Channel 7
ExtraChannel8=Extra Channel 8
ExtraChannel8=unused Channel 8
ExtraChannel9=Extra Channel 9
ExtraChannel9=spare Channel 9
ExtraChannel10=Extra Channel 10
ExtraChannel10=spare Channel 10


*[ExtraTempCaptions]
*[ExtraTempCaptions]
Sensor1=Sensor 1
Sensor1=shed 1
Sensor2=Sensor 2
Sensor2=greenhouse 2
Sensor3=Sensor 3
Sensor3=Spare 3
Sensor4=Sensor 4
Sensor4=Sensor 4
Sensor5=Sensor 5
Sensor5=Sensor 5
Line 202: Line 243:
Sensor7=Sensor 7
Sensor7=Sensor 7
Sensor8=Sensor 8
Sensor8=Sensor 8
Sensor9=Sensor 9
Sensor9=Spare 9
Sensor10=Sensor 10
Sensor10=Spare 10


*[ExtraHumCaptions]
*[ExtraHumCaptions]
Sensor1=Sensor 1
Sensor1=Sensor 1
Sensor2=Sensor 2
Sensor2=greenhouse 2
Sensor3=Sensor 3
Sensor3=Sensor 3
Sensor4=Sensor 4
Sensor4=Sensor 4
Line 214: Line 255:
Sensor7=Sensor 7
Sensor7=Sensor 7
Sensor8=Sensor 8
Sensor8=Sensor 8
Sensor9=Sensor 9
Sensor9=Spare 9
Sensor10=Sensor 10
Sensor10=Spare 10


*[ExtraDPCaptions]
*[ExtraDPCaptions]
Sensor1=Sensor 1
Sensor1=Sensor 1
Sensor2=Sensor 2
Sensor2=greenhouse 2
Sensor3=Sensor 3
Sensor3=Sensor 3
Sensor4=Sensor 4
Sensor4=Sensor 4
Line 230: Line 271:


*[SoilTempCaptions]
*[SoilTempCaptions]
Sensor1=Sensor 1
Sensor1=Soil 1
Sensor2=Sensor 2
Sensor2=Sensor 2
Sensor3=Sensor 3
Sensor3=Sensor 3
Line 249: Line 290:
Sensor2=Sensor 2
Sensor2=Sensor 2


* = value/section added v1.9.3 beta
 
^[Solar]
MoreDaylightTomorrow=Il y aura {0} minutes {1} secondes plus la lumière du jour demain
LessDaylightTomorrow=Il y aura {0} minutes {1} secondes moins la lumière du jour demain
 
* = value/section added v1.9.3 beta (Cumulus 1)
^ = value/section added v3 beta build 3023 (Cumulus MX)
</pre>
</pre>
A variety of translated files are coming soon in the other [[Languages]] section  
A variety of translated files are coming soon in the other [[Languages]] section  
[[Category: Configuration Files]]
[[Category: Configuration Files]]
5,838

edits

Navigation menu