-
-
Save codeforfun-jp/e818e329f6f5ba4c36ecd10c5f9597da to your computer and use it in GitHub Desktop.
Translation for MAMP 6.x
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
mb_internal_encoding('UTF-8'); | |
$configuration = (array) json_decode(file_get_contents('mamp.conf.json')); | |
$configuration['webstart_version'] = (string) '6'; | |
$configuration['os'] = (string) (mb_strtolower(substr(PHP_OS, 0, 3)) === 'win' ? 'win' : 'mac'); | |
$configuration['app_name'] = (string) (strpos(__FILE__, '/Library/') !== false) ? 'MAMP PRO' : 'MAMP'; | |
$configuration['language'] = (string) 'en'; | |
if (isset($_REQUEST['language']) === true) { | |
switch ($_REQUEST['language']) { | |
case 'English': | |
$configuration['language'] = 'en'; | |
break; | |
case 'German': | |
$configuration['language'] = 'de'; | |
break; | |
case 'Japanese': | |
$configuration['language'] = 'ja'; | |
break; | |
} | |
} | |
$configuration['remote_help_entry_point'] = (string) ''; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment