stable

Clone or download

Read-only

Remove wrong usage of $Language->getText for ugroups

Ugroups name and desc can be internationalized. The tool to detect bad usage is launch with the following command: php $HOME/tab2gettext/index.php broken-gettext-usage --src-dir $HOME/tuleap \PermissionsManager::getUgroupNameByObjectIdAndPermissionType() seems to not be used anymore therefore it has been removed. Part of request #14706: Decrease count of bad usages of Language->getText() Change-Id: Ic129e104c6a2eb61330699c6f7571aac23c99c14

Modified Files

Name
M plugins/docman/include/ApprovalTable/Reviewer/ReviewerFactory.class.php +1 −1 Go to diff View file
M plugins/docman/include/Docman_PermissionsExport.class.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_ChangesetValue_PermissionsOnArtifact.class.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/DateReminder/Tracker_DateReminder.class.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/DateReminder/Tracker_DateReminderRenderer.class.php +2 −2 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_List_Bind_Users.class.php +6 −6 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_PermissionsOnArtifact.class.php +2 −2 Go to diff View file
M plugins/tracker/include/tracker_permissions.php +2 −2 Go to diff View file
M plugins/tracker_date_reminder/include/TrackerDateReminder_ArtifactFieldHtml.class.php +1 −1 Go to diff View file
M src/common/Project/Admin/ProjectHistoryResultsPresenter.php +1 −1 Go to diff View file
M src/common/Project/ProjectUGroup.php +1 −1 Go to diff View file
A src/common/User/UserGroup/DescriptionTranslator.php +69 −0 Go to diff View file
M src/common/User/UserGroup/NameTranslator.php +53 −16 Go to diff View file
M src/common/docmanv1/XMLExportData.class.php +1 −1 Go to diff View file
M src/common/permission/PermissionsManager.class.php +0 −29 Go to diff View file
M src/common/tracker/HTML/ArtifactTypeHtml.class.php +5 −5 Go to diff View file
M src/www/include/utils.php +17 −45 Go to diff View file
M src/www/project/admin/permission_request.php +2 −2 Go to diff View file
M src/www/project/admin/permissions.php +35 −34 Go to diff View file
M src/www/project/admin/project_admin_utils.php +1 −1 Go to diff View file
M src/www/project/admin/ugroup_utils.php +1 −1 Go to diff View file
M src/www/project/export/user_groups_export.php +2 −2 Go to diff View file
M tests/unit/common/Project/Admin/PermissionsPerGroup/PermissionPerGroupBuilderTest.php +1 −0 Go to diff View file
M tests/unit/common/Project/Admin/ProjectUGroup/UGroupListPresenterBuilderTest.php +2 −0 Go to diff View file