Skip to content

Instantly share code, notes, and snippets.

@codeforfun-jp
Created Oct 20, 2020
Embed
What would you like to do?
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