diff options
author | wn_ <[email protected]> | 2022-11-12 16:20:59 +0000 |
---|---|---|
committer | wn_ <[email protected]> | 2022-11-12 16:20:59 +0000 |
commit | d376cd61426d151aaf59d01aef6f39d230599972 (patch) | |
tree | 56c8818743f7731164bb85f0a3afb0529984ede5 /lib/gettext | |
parent | 602e8684258062937d7f554ab7889e8e02318c96 (diff) |
Address upcoming string interpolation deprecation.
https://wiki.php.net/rfc/deprecate_dollar_brace_string_interpolation
Diffstat (limited to 'lib/gettext')
-rw-r--r-- | lib/gettext/gettext.inc.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/gettext/gettext.inc.php b/lib/gettext/gettext.inc.php index ef36924c7..60a41ddfa 100644 --- a/lib/gettext/gettext.inc.php +++ b/lib/gettext/gettext.inc.php @@ -88,18 +88,18 @@ function get_list_of_locales($locale) { if ($modifier) { if ($country) { if ($charset) - array_push($locale_names, "${lang}_$country.$charset@$modifier"); - array_push($locale_names, "${lang}_$country@$modifier"); + array_push($locale_names, "{$lang}_$country.$charset@$modifier"); + array_push($locale_names, "{$lang}_$country@$modifier"); } elseif ($charset) - array_push($locale_names, "${lang}.$charset@$modifier"); + array_push($locale_names, "{$lang}.$charset@$modifier"); array_push($locale_names, "$lang@$modifier"); } if ($country) { if ($charset) - array_push($locale_names, "${lang}_$country.$charset"); - array_push($locale_names, "${lang}_$country"); + array_push($locale_names, "{$lang}_$country.$charset"); + array_push($locale_names, "{$lang}_$country"); } elseif ($charset) - array_push($locale_names, "${lang}.$charset"); + array_push($locale_names, "{$lang}.$charset"); array_push($locale_names, $lang); } |