Skip to content

Commit

Permalink
Merge pull request #17021 from totten/5.25-language-labels
Browse files Browse the repository at this point in the history
CRM_Core_I18n - Provide a better label for new/unknown locales
  • Loading branch information
seamuslee001 authored Apr 8, 2020
2 parents 0475828 + 8a0dba7 commit 9e4f1a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Core/I18n.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public static function languages($justEnabled = FALSE) {
if (preg_match('/^[a-z][a-z]_[A-Z][A-Z]$/', $filename)) {
$codes[] = $filename;
if (!isset($all[$filename])) {
$all[$filename] = $labels[$filename];
$all[$filename] = $labels[$filename] ?? "($filename)";
}
}
}
Expand Down

0 comments on commit 9e4f1a4

Please sign in to comment.