Skip to content

Commit

Permalink
Merge branch 'release-7.10.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed May 5, 2023
2 parents 6ec16f8 + 474d4bb commit 478f2cc
Show file tree
Hide file tree
Showing 17 changed files with 153 additions and 25 deletions.
29 changes: 29 additions & 0 deletions locales/pt-BR/dac.rdf.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
msgid ""
msgstr ""
"Project-Id-Version: tao-3x\n"
"PO-Revision-Date: 2023-04-21 15:46\n"
"Last-Translator: TAO Translation Team <translation@tao.lu>\n"
"MIME-Version: 1.0\n"
"Language: pt\n"
"sourceLanguage: en-US\n"
"targetLanguage: en-US\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Crowdin-Project: tao-3x\n"
"X-Crowdin-Project-ID: 582145\n"
"X-Crowdin-Language: pt-BR\n"
"X-Crowdin-File: /taoDacSimple/locales/en-US/dac.rdf.po\n"
"X-Crowdin-File-ID: 1439\n"
"Language-Team: Portuguese, Brazilian\n"

# http://www.tao.lu/Ontologies/TAO.rdf#DacAdministrator
msgctxt "http://www.w3.org/2000/01/rdf-schema#label"
msgid "Data Access Administrator"
msgstr "Administrador de Acesso aos Dados"

# http://www.tao.lu/Ontologies/TAO.rdf#DacAdministrator
msgctxt "http://www.w3.org/2000/01/rdf-schema#comment"
msgid "Data Access Administrator role"
msgstr "Função de Administrador de Acesso aos Dados"

94 changes: 94 additions & 0 deletions locales/pt-BR/messages.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
msgid ""
msgstr ""
"Project-Id-Version: tao-3x\n"
"PO-Revision-Date: 2023-04-21 15:46\n"
"Last-Translator: TAO Translation Team <translation@tao.lu>\n"
"MIME-Version: 1.0\n"
"Language: pt\n"
"sourceLanguage: en-US\n"
"targetLanguage: en-US\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Poedit-Basepath: ../../\n"
"X-Poedit-KeywordsList: __\n"
"X-Poedit-SearchPath-0: .\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Crowdin-Project: tao-3x\n"
"X-Crowdin-Project-ID: 582145\n"
"X-Crowdin-Language: pt-BR\n"
"X-Crowdin-File: /taoDacSimple/locales/en-US/messages.po\n"
"X-Crowdin-File-ID: 1437\n"
"Language-Team: Portuguese, Brazilian\n"

msgid "%s classes and instances have been updated"
msgstr "%s classes e instâncias foram atualizadas"

msgid "Access control"
msgstr "Controle de Acesso"

msgid "Access Permissions for"
msgstr "Permissões de Acesso para"

msgid "Actions"
msgstr "Ações"

msgid "Add role(s)"
msgstr "Adicionar funções"

msgid "Add user(s)"
msgstr "Adicionar usuário(s)"

msgid "Error"
msgstr "ERRO"

msgid "grant"
msgstr "conceder"

msgid "Name"
msgstr "Nome:"

msgid "Permissions saved"
msgstr "Permissões salvas"

msgid "read"
msgstr "lidos"

msgid "Recursive"
msgstr "Recursiva"

msgid "Remove"
msgstr "Excluir"

msgid "role"
msgstr "Função"

msgid "Roles"
msgstr "Papéis"

msgid "Save"
msgstr "Salvar"

msgid "something went wrong during taoDacSimple uninstallation\n"
msgstr "algo deu errado durante a desinstalação taoDacSimple\n"

msgid "taoDacSimple extension correctly uninstalled"
msgstr "extensão taoDacSimple desinstalada corretamente"

msgid "Type"
msgstr "tipo"

msgid "Unable to process your request"
msgstr "Não foi possível processar sua solicitação"

msgid "user"
msgstr "usuário"

msgid "Users"
msgstr "Utilizadores"

msgid "write"
msgstr "escrever"

msgid "You must have one role or user that have the manage permission on this element."
msgstr "Você deve ter uma função ou usuário que tenha a permissão de gerenciar este elemento."

1 change: 1 addition & 0 deletions locales/pt-BR/messages_po.js

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions manifest.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<?php

use oat\taoDacSimple\model\Copy\ServiceProvider\CopyServiceProvider;
use oat\taoDacSimple\scripts\install\AttachEventHandler;
use oat\taoDacSimple\scripts\update\Updater;

/**
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
Expand All @@ -22,6 +18,9 @@
* Copyright (c) 2014-2022 (original work) Open Assessment Technologies SA;
*/

use oat\taoDacSimple\model\Copy\ServiceProvider\CopyServiceProvider;
use oat\taoDacSimple\scripts\install\AttachEventHandler;
use oat\taoDacSimple\scripts\update\Updater;
use oat\taoDacSimple\scripts\install\SetupDataAccess;
use oat\taoDacSimple\scripts\install\RegisterAction;
use oat\taoDacSimple\controller\AdminAccessController;
Expand Down
4 changes: 2 additions & 2 deletions model/PermissionProvider.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

declare(strict_types=1);

/**
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
Expand All @@ -21,6 +19,8 @@
*
*/

declare(strict_types=1);

namespace oat\taoDacSimple\model;

use common_exception_Error;
Expand Down
2 changes: 1 addition & 1 deletion model/PermissionsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ private function getResourcesToUpdate(ChangePermissionsCommand $command): array
return array_merge([$root], $root->getInstances()); // non-recursive
}

return [$root];
return [$root];
}

private function getActions(
Expand Down
4 changes: 2 additions & 2 deletions model/PermissionsServiceFactory.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

declare(strict_types=1);

/**
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
Expand All @@ -21,6 +19,8 @@
*
*/

declare(strict_types=1);

namespace oat\taoDacSimple\model;

use oat\oatbox\event\EventManager;
Expand Down
4 changes: 2 additions & 2 deletions model/PermissionsStrategyInterface.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

declare(strict_types=1);

/**
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
Expand All @@ -21,6 +19,8 @@
*
*/

declare(strict_types=1);

namespace oat\taoDacSimple\model;

interface PermissionsStrategyInterface
Expand Down
4 changes: 2 additions & 2 deletions model/SavePermissionsStrategy.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

declare(strict_types=1);

/**
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
Expand All @@ -21,6 +19,8 @@
*
*/

declare(strict_types=1);

namespace oat\taoDacSimple\model;

class SavePermissionsStrategy extends PermissionsStrategyAbstract
Expand Down
4 changes: 2 additions & 2 deletions model/SyncPermissionsStrategy.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

declare(strict_types=1);

/**
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
Expand All @@ -21,6 +19,8 @@
*
*/

declare(strict_types=1);

namespace oat\taoDacSimple\model;

class SyncPermissionsStrategy extends PermissionsStrategyAbstract
Expand Down
3 changes: 2 additions & 1 deletion model/action/AdminAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
/**
* Admin Action, based on xml:
*
* <action id="access-control-admin" name="Access control" url="/taoDacSimple/AdminAccessController/adminPermissions" group="tree" context="resource">
* <action id="access-control-admin" name="Access control" url="/taoDacSimple/AdminAccessController/adminPermissions"
* group="tree" context="resource">
* <icon id="icon-unlock" />
* </action>
*/
Expand Down
4 changes: 2 additions & 2 deletions model/event/DacAffectedUsersEvent.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

declare(strict_types=1);

/**
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
Expand All @@ -21,6 +19,8 @@
*
*/

declare(strict_types=1);

namespace oat\taoDacSimple\model\event;

use oat\oatbox\event\Event;
Expand Down
5 changes: 4 additions & 1 deletion scripts/tools/UpdateDataAccess.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ public function __invoke($params)
$updated += $this->addPermissionsToClass($class, $rights);
}

return new \common_report_Report(\common_report_Report::TYPE_SUCCESS, __('%s classes and instances have been updated', $updated));
return new \common_report_Report(
\common_report_Report::TYPE_SUCCESS,
__('%s classes and instances have been updated', $updated)
);
}


Expand Down
4 changes: 3 additions & 1 deletion scripts/uninstall/RemoveDataAccess.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ public function __invoke($params)

$this->getServiceManager()->register(PermissionInterface::SERVICE_ID, new FreeAccess());
} catch (\Exception $e) {
return \common_report_Report::createFailure(__("something went wrong during taoDacSimple uninstallation\n" . $e->getMessage()));
return \common_report_Report::createFailure(
__("something went wrong during taoDacSimple uninstallation\n" . $e->getMessage())
);
}

return \common_report_Report::createSuccess(__('taoDacSimple extension correctly uninstalled'));
Expand Down
1 change: 0 additions & 1 deletion test/unit/model/DataBaseAccessTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,4 +276,3 @@ public function fetchAll($mode = PDO::FETCH_BOTH, $fetch_argument = null, ...$ar
}
}
// @codingStandardsIgnoreEnd

4 changes: 2 additions & 2 deletions test/unit/model/SavePermissionsStrategyTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

declare(strict_types=1);

/**
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
Expand All @@ -21,6 +19,8 @@
*
*/

declare(strict_types=1);

namespace oat\taoDacSimple\test\unit\model;

use oat\taoDacSimple\model\SavePermissionsStrategy;
Expand Down
4 changes: 2 additions & 2 deletions test/unit/model/SyncPermissionsStrategyTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

declare(strict_types=1);

/**
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
Expand All @@ -21,6 +19,8 @@
*
*/

declare(strict_types=1);

namespace oat\taoDacSimple\test;

use oat\taoDacSimple\model\SyncPermissionsStrategy;
Expand Down

0 comments on commit 478f2cc

Please sign in to comment.