Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkp/pkp-lib#10729 fix I9707_WeblateUILocales, consider locales in arrays and setting values #1791

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 = 'presses';
protected string $CONTEXT_SETTINGS_TABLE = 'press_settings';
protected string $CONTEXT_COLUMN = 'press_id';
}
2 changes: 1 addition & 1 deletion dbscripts/xml/upgrade.xml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
<migration class="PKP\migration\upgrade\v3_5_0\COA75_AddUserRoleEndEmail"/>
<migration class="APP\migration\upgrade\v3_5_0\I10561_OnixFilter"/>
<migration class="APP\migration\upgrade\v3_5_0\I10511_RemoveSeriesMenuItems"/>
<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
Loading