Skip to content

Commit

Permalink
pkp/pkp-lib#10785 introduce LocaleConversion::toBcp47()
Browse files Browse the repository at this point in the history
  • Loading branch information
bozana committed Feb 5, 2025
1 parent 0ee7f42 commit fc4bd37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion WebFeedGatewayPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
use PKP\category\Category;
use PKP\core\Registry;
use PKP\facades\Locale;
use PKP\i18n\LocaleConversion;
use PKP\plugins\GatewayPlugin;
use PKP\userGroup\UserGroup;

Expand Down Expand Up @@ -129,7 +130,7 @@ public function fetch($args, $request): bool
'feedUrl' => $request->getRequestUrl(),
'userGroups' => $userGroups,
'includeIdentifiers' => $includeIdentifiers,
'language' => str_replace(['_', '@'], '-', Locale::getLocale()),
'language' => LocaleConversion::toBcp47(Locale::getLocale()),
]
)
->setHeaders(['content-type: ' . static::FEED_MIME_TYPE[$feedType] . '; charset=utf-8'])
Expand Down

0 comments on commit fc4bd37

Please sign in to comment.