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

Replace a load of references to the wiki with docs links #17900

Merged
merged 1 commit into from
Jul 21, 2020

Conversation

aydun
Copy link
Contributor

@aydun aydun commented Jul 20, 2020

Overview

Change some code comments & help links from the old wiki to new docs.
Change docs link from 'stable' to 'latest' (avoids redirection)

@civibot
Copy link

civibot bot commented Jul 20, 2020

(Standard links)

@civibot civibot bot added the master label Jul 20, 2020
@eileenmcnaughton
Copy link
Contributor

@aydun looks like you need to negotiate a bit with jenkins

@MikeyMJCO can you review this?

@homotechsual
Copy link
Contributor

Looks good to me!

@colemanw
Copy link
Member

@aydun the style warnings were:

Job.php:59, EndLine, Priority: High
--
Whitespace found at end of line


Job.php:73, EndLine, Priority: High
--
Whitespace found at end of line


Job.php:73, EmptyLines, Priority: High
--
Functions must not contain multiple empty lines in a row; found 2 empty lines

@eileenmcnaughton
Copy link
Contributor

I think with the @MikeyMJCO stamp of approval you just need the jenkins one & this is mergeable

@eileenmcnaughton
Copy link
Contributor

ok-without-test as only comment blocks involved

@homotechsual
Copy link
Contributor

There are non-comment changes - to the help link destinations/code.

$message->addHelp(
ts('A default mailbox must be configured for email bounce processing.') . '<br />' .
ts("Learn more in the <a %1>online documentation</a>.", [1 => $docUrl])
CRM_Utils_System::docURL2('user/advanced-configuration/email-system-configuration/')
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we loosing the original link text here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes ... in some places we have things like this one: "Learn more in the online documentation" with a link, other places "See the XXX section in the documentation" with a link, others use the default rendering of "(Learn more ...)" with a link. I've adopted the more concise, default form.

So this one changes from:
"A default mailbox must be configured for email bounce processing. Learn more in the online documentation."
to
"A default mailbox must be configured for email bounce processing. (Learn more...)"

Copy link
Contributor

Choose a reason for hiding this comment

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

I prefer the more concise form.

Copy link
Contributor

Choose a reason for hiding this comment

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

However I can't see where the "Learn more..." text is being passed in here.

Copy link
Contributor

Choose a reason for hiding this comment

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

Nope, I see it - in the docUrl functions.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's generated by docURL2()

@@ -606,7 +605,7 @@ public function checkExtensions() {
__FUNCTION__,
ts('There are currently no extensions on the CiviCRM public extension directory which are compatible with version %1. If you want to install an extension which is not marked as compatible, you may be able to <a %2>download and install extensions manually</a> (depending on access to your web server).', [
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this will need to be changed so its

Suggested change
ts('There are currently no extensions on the CiviCRM public extension directory which are compatible with version %1. If you want to install an extension which is not marked as compatible, you may be able to <a %2>download and install extensions manually</a> (depending on access to your web server).', [
ts('There are currently no extensions on the CiviCRM public extension directory which are compatible with version %1. If you want to install an extension which is not marked as compatible, you may be able to <a href="%2">download and install extensions manually</a> (depending on access to your web server).', [

Copy link
Contributor

Choose a reason for hiding this comment

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

I think the original is correct, or at least the civi standard, because it allows adding/removing/changing the attributes without breaking already translated strings. See https://docs.civicrm.org/dev/en/latest/translation/#avoid-tags-inside-strings where it talks about hyperlinks inside big text blocks.

Copy link
Contributor

Choose a reason for hiding this comment

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

I guess my thinking is that wit the proposed change the href= is getting droped in param 2 so it needs to either get restored there or be added here

Copy link
Contributor

@demeritcowboy demeritcowboy Jul 21, 2020

Choose a reason for hiding this comment

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

Oh ok I see. Then it would be <a %2> and the href would be part of the array param 2 string same as before.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right, it's lost the href. Changed now to default form

<div class="help">
{ts 1=$docLink}These settings are used to configure mailer properties for the optional CiviMail component and may allow you to significantly optimize performance. Please read the %1 documentation, and make sure you understand it before modifying default values. (These settings are NOT used for the built-in 'Email - send now' feature).{/ts}
{ts}These settings are used to configure mailer properties for the optional CiviMail component and may allow you to significantly optimize performance. Please read the documentation, and make sure you understand it before modifying default values. (These settings are NOT used for the built-in 'Email - send now' feature).{/ts} {docURL page="sysadmin/setup/civimail/outbound"}
Copy link
Contributor

Choose a reason for hiding this comment

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

should we not still be passing through the text="xxx"here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

See comment above

<p>{ts}Activities are 'interactions with contacts' which you want to record and track. CiviCRM has several reserved (e.g. 'built-in') activity types (meetings, phone calls, emails sent). Create additional 'activity types' here if you need to record other types of activities. For example, you might want to add 'Job Interview', or 'Site Audit', etc.{/ts}</p>
{capture assign=crmURL}{crmURL p='civicrm/admin/custom/group' q='reset=1'}{/capture}
<p>{ts 1=$crmURL}Subject, location, date/time and description fields are provided for all activity types. You can add custom fields for tracking additional information about activities <a href='%1'>here</a>.{/ts}</p>
<p>{ts 1=$docLink}Scheduled and Completed Activities are searchable by type and/or activity date using 'Advanced Search'. Other applications may record activities for CiviCRM contacts using our APIs. For more information, refer to the online %1.{/ts}</p>
<p>{ts}Scheduled and Completed Activities are searchable by type and/or activity date using 'Advanced Search'. Other applications may record activities for CiviCRM contacts using our APIs.{/ts} {docURL page="dev/api"} </p>
Copy link
Contributor

Choose a reason for hiding this comment

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

Again should we still be passing through the text here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

See comment above

@seamuslee001
Copy link
Contributor

I've added a few comments on where I think things could be improved

Change docs links to 'latest' not 'stable'
@aydun
Copy link
Contributor Author

aydun commented Jul 21, 2020

Fixed the style issues (although not on lines I originally changed). Changed CRM/Utils/Check/Component/Env.php and standardised a few more messages there.

@colemanw
Copy link
Member

Looks like all the review comments have been addressed and jenkins is happy.

@colemanw colemanw merged commit ff5ac94 into civicrm:master Jul 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants