Skip to content

Commit

Permalink
pkp/pkp-lib#8598 Code Base locale changes
Browse files Browse the repository at this point in the history
  • Loading branch information
defstat committed Feb 8, 2023
1 parent d7efcd6 commit e1d2553
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config.TEMPLATE.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@
[i18n]

; Default locale
locale = en_US
locale = en

; Database connection character set
connection_charset = utf8
Expand Down
1 change: 1 addition & 0 deletions dbscripts/xml/upgrade.xml
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@
<migration class="APP\migration\upgrade\v3_4_0\I6306_EnableCategories"/>
<migration class="PKP\migration\upgrade\v3_4_0\I8592_SiteNotificationSubscriptions"/>
<migration class="APP\migration\upgrade\v3_4_0\I6241_RequiredGenres"/>
<migration class="APP\migration\upgrade\v3_4_0\MergeLocalesMigration"/>
<data file="dbscripts/xml/upgrade/3.4.0_preupdate_email_templates.xml" />
<note file="docs/release-notes/README-3.4.0" />
</upgrade>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* @class ArticlePubMedXmlFilter
*
* @brief Class that converts a Article to a PubMed XML document.
*/

Expand Down Expand Up @@ -88,7 +89,7 @@ public function &process(&$submissions)
$publication = $submission->getCurrentPublication();

$locale = $publication->getData('locale');
if ($locale == 'en_US') {
if ($locale == 'en') {
$articleNode->appendChild($doc->createElement('ArticleTitle'))->appendChild($doc->createTextNode($publication->getLocalizedTitle($locale)));
} else {
$articleNode->appendChild($doc->createElement('VernacularTitle'))->appendChild($doc->createTextNode($publication->getLocalizedTitle($locale)));
Expand Down

0 comments on commit e1d2553

Please sign in to comment.