-function update_1278() {
- Config::set('system', 'maintenance', 1);
- Config::set('system', 'maintenance_reason', L10n::t('%s: Updating post-type.', DBM::date().' '.date('e')));
+
+// Post-update script of PR 5751
+function update_1293() {
+ $allGenders = DBA::select('contact', ['id', 'gender']);
+ $allLangs = L10n::getAvailableLanguages();
+ $success = 0;
+ $fail = 0;
+ foreach ($allGenders as $key=>$gender) {
+ foreach ($allLangs as $key=>$lang) {
+
+ $a = new \stdClass();
+ $a->strings = [];
+
+ // First we get the the localizations
+ if (file_exists("view/lang/$lang/strings.php")) {
+ include "view/lang/$lang/strings.php";
+ }
+ if (file_exists("addon/morechoice/lang/$lang/strings.php")) {
+ include "addon/morechoice/lang/$lang/strings.php";
+ }