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

[REF] Simplify ACL page template #14288

Merged
merged 1 commit into from
May 22, 2019

Conversation

MegaphoneJon
Copy link
Contributor

Overview

I noticed that the ACL page template says "Drupal Access Control" on Backdrop. When I went to look at it, I realized that there was no need for the complex conditionals at all.

Before

ACL page works except with a bad label on Backdrop.

After

ACL page still works, Backdrop label is accurate, file has 25% fewer lines and no conditionals.

@civibot
Copy link

civibot bot commented May 21, 2019

(Standard links)

@civibot civibot bot added the master label May 21, 2019
@MegaphoneJon
Copy link
Contributor Author

Oh - I tested on D7, D8, Backdrop, and WP, not Joomla though.

@eileenmcnaughton
Copy link
Contributor

@mlutfy this looks good to me - no translation concerns?

{elseif $config->userFramework EQ 'WordPress'}
<p>{ts 1=$ufAccessURL}Use <a href='%1'>WordPress Access Control</a> to manage basic access to CiviCRM components and menu items. Use CiviCRM ACLs to control access to specific CiviCRM contact groups. You can also configure ACLs to grant or deny access to specific Events, Profiles, and/or Custom Data Fields.{/ts}</p>
{/if}
<p>{ts 1=$ufAccessURL 2=$jAccessParams 3=$config->userFramework}Use <a href='%1' %2>%3 Access Control</a> to manage basic access to CiviCRM components and menu items. Use CiviCRM ACLs to control access to specific CiviCRM contact groups. You can also configure ACLs to grant or deny access to specific Events, Profiles, and/or Custom Data Fields.{/ts}</p>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have mixed feelings about this, because it is exposing a machine-name that happens to be convenient in English, but given that it's the ACL admin form, I'm not opposed to the cleanup.

Also, the expression %1 Access Control is already present in that page, so this is not introducing a regression from the point of view of i18n.

You can ignore this:

  • It's a form of concatenation which may not fit in all languages, although it should be OK in the languages I know, so maybe not a big deal.

  • In non-latin languages, people may or may not translate the CMS name. For example, Друпал in Russian (although the current Russian translation of CiviCRM uses 'Drupal' and not 'Друпал', which may sound obvious, but McDonalds in Russia is Макдоналдс, for example).

  • Does "Use Drupal8 Access Control" sound OK? (given that this is a geeky admin form, I don't really mind, but it is a bit inconsistent)

  • I would have recommended to use "Content Management System Access Control", but I have to admit that it's both annoyingly long and vague.

@mlutfy mlutfy merged commit 5efd875 into civicrm:master May 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants