Currently, the CURRENTMONTH magic word outputs the current month in two digits,
however, some languages are mostly uses the single digit for the first nine
months, the proposed changes will add the ability to render the current month
number in single digit for the first nine months, this magic word is useful
especially for the East Asian languages. Although there's a magic word
CURRENTDAY and CURRENTDAY2 already, changes are provided in below for consistency:
- the existing CURRENTMONTH will be changed into CURRENTMONTH2 (same functionary);
- the new CURRENTMONTH magic word is used to render the currentmonth in single
digit for first nine months.
For example:
The current month is April,
the output of the {{CURRENTMONTH}} is 4, and using {{CURRENTMONTH2}} is 04.
And if the current month is May,
the output of the {{CURRENTMONTH}} is 5, and using {{CURRENTMONTH2}} is 05.
For applying the proposed changes, those files are need to be changed:
- includes/MagicWord.php
- includes/Parser.php
- languages/Language.php
hope my patch works. :)
Man
Version: unspecified
Severity: enhancement