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) |
||
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,
=Introduction=
Currently you can modified phrases associated with the following:▼
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.▼
'''Cumulus 1.9.x'''
*Forecasting
*Moonphases
*Additional sensor names
'''Cumulus MX'''
▲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.
*Solar
=Modifying the phrases=
* [LeafTempCaptions]
* [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=
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]
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>
A variety of translated files are coming soon in the other [[Languages]] section
|
edits