5,838
edits
m (→Modifying the phrases: Add note that strings.ini does not need to contain all lines in samplestings.ini) |
(Mention Solar for MX and some minor grammatical improvements) |
||
Line 1: | Line 1: | ||
The file strings.ini allows the customisation of a number of phrases, | 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. | ||
=Introduction= | |||
Esentially ''strings.ini'' is constructed by including parameters from ''samplestring.ini''. 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. | |||
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. | |||
Currently you can modify phrases associated with the following: | |||
'''Cumulus 1.9.x''' | |||
*Forecasting | *Forecasting | ||
*Moonphases | *Moonphases | ||
Line 11: | Line 17: | ||
*Additional sensor names | *Additional sensor names | ||
'''Cumulus MX''' | |||
*Solar | |||
=Modifying the phrases= | =Modifying the phrases= | ||
Line 55: | Line 62: | ||
* [LeafTempCaptions] | * [LeafTempCaptions] | ||
* [LeafWetnesscaptions] | * [LeafWetnesscaptions] | ||
=Solar= | |||
[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. | |||
Remember that these minutes and seconds are calculated based on times for last Dawn and next Dusk that may be on different days, so they are approximate in terms of the current local time. | |||
=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. | 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] | ||
Line 249: | Line 270: | ||
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]] |
edits