Fix the bug for dates between 1912 and 1941 in Thai language
authorsuperyetkin <superyetkin@yahoo.com>
Sat, 21 Apr 2018 21:12:02 +0000 (00:12 +0300)
committerSuperyetkin <superyetkin@yahoo.com>
Sat, 12 May 2018 15:10:13 +0000 (15:10 +0000)
commit3aaa2367b254a0152cd965bcab5c24476f9ae8ba
tree6c30d5a61a8cfa8be387af63b643c0f1ed4659a9
parenta40aac7b72a24f91d25c68b5730a9807c48e6d39
Fix the bug for dates between 1912 and 1941 in Thai language

Added an if-else block to see if the parameters passed to the function
designate a year between 1912 and 1941 or not. Resulting month values
are also adjusted.
Added a unit test for the related formatting.

Bug: T68648
Change-Id: Ic676b5c140de8878971a786a1a1811770a848016
languages/Language.php
tests/phpunit/languages/LanguageTest.php