-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
Conversation
(Standard links)
|
@aydun looks like you need to negotiate a bit with jenkins @MikeyMJCO can you review this? |
Looks good to me! |
@aydun the style warnings were:
|
I think with the @MikeyMJCO stamp of approval you just need the jenkins one & this is mergeable |
ok-without-test as only comment blocks involved |
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/') |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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...)"
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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()
CRM/Utils/Check/Component/Env.php
Outdated
@@ -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).', [ |
There was a problem hiding this comment.
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
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).', [ |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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"} |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment above
I've added a few comments on where I think things could be improved |
Change docs links to 'latest' not 'stable'
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. |
Looks like all the review comments have been addressed and jenkins is happy. |
Overview
Change some code comments & help links from the old wiki to new docs.
Change docs link from 'stable' to 'latest' (avoids redirection)