Strings.ini: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
540 bytes added ,  10:14, 9 May 2021
m
m (→‎Modifying the phrases: add to category)
 
(2 intermediate revisions by the same user not shown)
Line 33: Line 33:
=Modifying the phrases=
=Modifying the phrases=


[[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.
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. 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 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 78: Line 79:


=Solar=
=Solar=
Please note, the calculations used are approximate, this is a "fun" feature, not a "serious" feature.


[Solar]
[Solar]
  MoreDaylightTomorrow=There will be {0}min {1}s more daylight tomorrow
  MoreDaylightTomorrow=There will be {0}min {1}s more daylight tomorrow


  LessDaylightTomorrow=There will be {0}min {1}s less 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.
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).


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.
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=
5,838

edits

Navigation menu