mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Changed some spacing and added a comment as per Snipe
This commit is contained in:
parent
82dd601661
commit
12ed8800d1
|
@ -1343,7 +1343,8 @@ class Helper
|
|||
* @return string []
|
||||
*/
|
||||
|
||||
public static $language_map = ['af' => 'af-ZA', // Afrikaans
|
||||
public static $language_map = [
|
||||
'af' => 'af-ZA', // Afrikaans
|
||||
'am' => 'am-ET', // Amharic
|
||||
'ar' => 'ar-SA', // Arabic
|
||||
'bg' => 'bg-BG', // Bulgarian
|
||||
|
@ -1413,6 +1414,8 @@ class Helper
|
|||
if (strlen($new_locale) <= 4) {
|
||||
return $new_locale; //"new locale" apparently wasn't quite so new
|
||||
}
|
||||
|
||||
// This does a *reverse* search against our new language map array - given the value, find the *key* for it
|
||||
$legacy_locale = array_search($new_locale, self::$language_map);
|
||||
|
||||
if($legacy_locale !== false) {
|
||||
|
|
Loading…
Reference in a new issue