Skip to content

Instantly share code, notes, and snippets.

@codeforfun-jp
Created October 20, 2020 05:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codeforfun-jp/e818e329f6f5ba4c36ecd10c5f9597da to your computer and use it in GitHub Desktop.
Save codeforfun-jp/e818e329f6f5ba4c36ecd10c5f9597da to your computer and use it in GitHub Desktop.
Translation for MAMP 6.x
<?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