Improve translatability
This commit is contained in:
parent
1ae0d412d2
commit
2159f757a5
1 changed files with 10 additions and 10 deletions
|
@ -28,18 +28,18 @@ if (isset($_POST['email'], $_POST['password']) && !empty($_POST['planet'])) {
|
||||||
$planet = strtolower($_POST['planet']);
|
$planet = strtolower($_POST['planet']);
|
||||||
$planetName = strtoupper($planet[0]) . substr($planet, 1);
|
$planetName = strtoupper($planet[0]) . substr($planet, 1);
|
||||||
$planets = array(
|
$planets = array(
|
||||||
__('mercury'),
|
strtolower(__('Mercury')),
|
||||||
__('venus'),
|
strtolower(__('Venus')),
|
||||||
__('earth'),
|
strtolower(__('Earth')),
|
||||||
__('mars'),
|
strtolower(__('Mars')),
|
||||||
__('jupiter'),
|
strtolower(__('Jupiter')),
|
||||||
__('saturn'),
|
strtolower(__('Saturn')),
|
||||||
__('uranus'),
|
strtolower(__('Uranus')),
|
||||||
__('neptune'),
|
strtolower(__('Neptune')),
|
||||||
);
|
);
|
||||||
$not_planets = array(
|
$not_planets = array(
|
||||||
__('pluto'),
|
strtolower(__('Pluto')),
|
||||||
__('sun'),
|
strtolower(__('Sun')),
|
||||||
);
|
);
|
||||||
|
|
||||||
if (in_array($planet, array_merge($planets, $not_planets))) {
|
if (in_array($planet, array_merge($planets, $not_planets))) {
|
||||||
|
|
Loading…
Reference in a new issue