Skip to content

Commit

Permalink
pkp/pkp-lib#10729 fix I9707_WeblateUILocales, consider locales in arr…
Browse files Browse the repository at this point in the history
…ays and setting values
  • Loading branch information
bozana committed Dec 18, 2024
1 parent 182fb97 commit c25bc53
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions classes/migration/upgrade/v3_5_0/I9707_WeblateUILocales.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

/**
* @file classes/migration/upgrade/v3_5_0/I9707_WeblateUILocales.php
*
* Copyright (c) 2024 Simon Fraser University
* Copyright (c) 2024 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* @class I9707_WeblateUILocales
*
* @brief Map old UI locales to Weblate locales
*/

namespace APP\migration\upgrade\v3_5_0;

class I9707_WeblateUILocales extends \PKP\migration\upgrade\v3_5_0\I9707_WeblateUILocales
{
protected string $CONTEXT_TABLE = 'journals';
protected string $CONTEXT_SETTINGS_TABLE = 'journal_settings';
protected string $CONTEXT_COLUMN = 'journal_id';
}
2 changes: 1 addition & 1 deletion dbscripts/xml/upgrade.xml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
<migration class="PKP\migration\upgrade\v3_5_0\I9771_OrcidMigration"/>
<migration class="APP\migration\upgrade\v3_5_0\I5885_RenameReviewReminderSettingsName"/>
<migration class="PKP\migration\upgrade\v3_5_0\COA75_AddUserRoleEndEmail"/>
<migration class="PKP\migration\upgrade\v3_5_0\I9707_WeblateUILocales"/>
<migration class="APP\migration\upgrade\v3_5_0\I9707_WeblateUILocales"/>
</upgrade>

<!-- update plugin configuration - should be done as the final upgrade task -->
Expand Down

0 comments on commit c25bc53

Please sign in to comment.