mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-05 10:25:45 +03:00
Use a unique text-domain, wporg-5ftf (#110)
* Use a unique text-domain, wporg-5ftf * Fix plugin i18n strings * Remove unwanted text-domains from WPCS checks and fix missed old text-domains * Remove type=array from phpcs * Re-add type=array * Small WPCS fix * WPCS: replace var with
This commit is contained in:
parent
aec40e6c7e
commit
0754ae0b28
17 changed files with 108 additions and 108 deletions
|
@ -17,7 +17,7 @@ use WP_Post;
|
|||
<p>
|
||||
<?php
|
||||
printf(
|
||||
wp_kses_post( __( "Thank you for confirming your address! We've emailed confirmation links to the contributors you mentioned, and your pledge will show up in <a href=\"%s\">the directory</a> once one contributor confirms their participation.", 'wporg' ) ),
|
||||
wp_kses_post( __( 'Thank you for confirming your address! We’ve emailed confirmation links to the contributors you mentioned, and your pledge will show up in <a href=\"%s\">the directory</a> once one contributor confirms their participation.', 'wporg-5ftf' ) ),
|
||||
esc_url( $directory_url )
|
||||
);
|
||||
?>
|
||||
|
@ -26,7 +26,7 @@ use WP_Post;
|
|||
<?php if ( $pledge instanceof WP_Post ) : ?>
|
||||
<p>
|
||||
<?php echo wp_kses_post( sprintf(
|
||||
__( 'In the meantime, your pledge will be visible here: %s', 'wporg' ),
|
||||
__( 'In the meantime, your pledge will be visible here: %s', 'wporg-5ftf' ),
|
||||
sprintf(
|
||||
'<a href="%1$s">%1$s</a>',
|
||||
esc_url( get_permalink( $pledge ) )
|
||||
|
@ -36,7 +36,7 @@ use WP_Post;
|
|||
<?php endif; ?>
|
||||
|
||||
<p>
|
||||
<?php esc_html_e( "Thanks again for pledging your organization's resources to contribute to WordPress! We can do great things together!", 'wporg' ); ?>
|
||||
<?php esc_html_e( 'Thanks again for pledging your organization’s resources to contribute to WordPress! We can do great things together!', 'wporg-5ftf' ); ?>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ use function WordPressDotOrg\FiveForTheFuture\get_views_path;
|
|||
type="submit"
|
||||
id="5ftf-pledge-submit"
|
||||
name="action"
|
||||
value="<?php esc_attr_e( 'Update Pledge', 'wporg' ); ?>"
|
||||
value="<?php esc_attr_e( 'Update Pledge', 'wporg-5ftf' ); ?>"
|
||||
/>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
@ -24,12 +24,12 @@ require __DIR__ . '/partial-result-messages.php';
|
|||
|
||||
<div id="form-messages" class="notice notice-success notice-alt">
|
||||
<p>
|
||||
<?php esc_html_e( "Thanks for pledging to Five for the Future! Your new pledge profile has been created, and we've emailed you a link to confirm your address. Once that's done, we'll also email confirmation links to the contributors you named in your pledge.", 'wporg' ); ?>
|
||||
<?php esc_html_e( "Thanks for pledging to Five for the Future! Your new pledge profile has been created, and we've emailed you a link to confirm your address. Once that's done, we'll also email confirmation links to the contributors you named in your pledge.", 'wporg-5ftf' ); ?>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<?php echo wp_kses_post( sprintf(
|
||||
__( "After those steps are completed (and at least one contributor confirms), your pledge will appear in <a href=\"%s\">the directory</a>. Once each contributor has confirmed, they'll appear on your pledge as well.", 'wporg' ),
|
||||
__( "After those steps are completed (and at least one contributor confirms), your pledge will appear in <a href=\"%s\">the directory</a>. Once each contributor has confirmed, they'll appear on your pledge as well.", 'wporg-5ftf' ),
|
||||
esc_url( $directory_url )
|
||||
) ); ?>
|
||||
</p>
|
||||
|
@ -37,7 +37,7 @@ require __DIR__ . '/partial-result-messages.php';
|
|||
<p>
|
||||
<?php echo wp_kses_post(
|
||||
sprintf(
|
||||
__( 'Do you want to hire additional employees to contribute to WordPress? <a href="%s">Consider posting a job listing on jobs.wordpress.net</a>.', 'wporg' ),
|
||||
__( 'Do you want to hire additional employees to contribute to WordPress? <a href="%s">Consider posting a job listing on jobs.wordpress.net</a>.', 'wporg-5ftf' ),
|
||||
'https://jobs.wordpress.net'
|
||||
)
|
||||
); ?>
|
||||
|
@ -59,7 +59,7 @@ require __DIR__ . '/partial-result-messages.php';
|
|||
type="submit"
|
||||
id="5ftf-pledge-submit"
|
||||
name="action"
|
||||
value="<?php esc_attr_e( 'Submit Pledge', 'wporg' ); ?>"
|
||||
value="<?php esc_attr_e( 'Submit Pledge', 'wporg-5ftf' ); ?>"
|
||||
/>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
@ -7,7 +7,7 @@ namespace WordPressDotOrg\FiveForTheFuture\View;
|
|||
|
||||
<div class="form-field">
|
||||
<label for="5ftf-pledge-contributors">
|
||||
<?php esc_html_e( 'Contributor Usernames', 'wordpressorg' ); ?>
|
||||
<?php esc_html_e( 'Contributor Usernames', 'wporg-5ftf' ); ?>
|
||||
</label>
|
||||
<input
|
||||
type="text"
|
||||
|
@ -19,6 +19,6 @@ namespace WordPressDotOrg\FiveForTheFuture\View;
|
|||
aria-describedby="5ftf-pledge-contributors-help"
|
||||
/>
|
||||
<p id="5ftf-pledge-contributors-help">
|
||||
<?php esc_html_e( 'Separate each WordPress.org username with a comma.', 'wordpressorg' ); ?>
|
||||
<?php esc_html_e( 'Separate each WordPress.org username with a comma.', 'wporg-5ftf' ); ?>
|
||||
</p>
|
||||
</div>
|
||||
|
|
|
@ -13,7 +13,7 @@ use WP_Post;
|
|||
|
||||
<div class="form-field">
|
||||
<label for="5ftf-pledge-email">
|
||||
<?php esc_html_e( 'Administrator Email Address', 'wordpressorg' ); ?>
|
||||
<?php esc_html_e( 'Administrator Email Address', 'wporg-5ftf' ); ?>
|
||||
</label>
|
||||
<input
|
||||
type="email"
|
||||
|
@ -26,19 +26,19 @@ use WP_Post;
|
|||
<?php echo $readonly ? 'readonly' : ''; ?>
|
||||
/>
|
||||
<p id="5ftf-pledge-email-help">
|
||||
<?php esc_html_e( "This address will be used to confirm your organization’s contribution profile, and later manage any changes. Please make sure that it's a group address (e.g., wp-contributors@example.com) so that it persists across employee transitions.", 'wordpressorg' ); ?>
|
||||
<?php esc_html_e( 'This address will be used to confirm your organization’s contribution profile, and later manage any changes. Please make sure that it’s a group address (e.g., wp-contributors@example.com) so that it persists across employee transitions.', 'wporg-5ftf' ); ?>
|
||||
</p>
|
||||
|
||||
<?php if ( is_admin() ) : ?>
|
||||
<?php if ( $data['pledge-email-confirmed'] ) : ?>
|
||||
<p class="email-status is-confirmed">
|
||||
<span class="dashicons dashicons-yes-alt" aria-hidden="true"></span>
|
||||
<?php esc_html_e( 'Confirmed', 'wporg' ); ?>
|
||||
<?php esc_html_e( 'Confirmed', 'wporg-5ftf' ); ?>
|
||||
</p>
|
||||
<?php else : ?>
|
||||
<p class="email-status is-unconfirmed">
|
||||
<span class="dashicons dashicons-warning" aria-hidden="true"></span>
|
||||
<?php esc_html_e( 'Unconfirmed', 'wporg' ); ?>
|
||||
<?php esc_html_e( 'Unconfirmed', 'wporg-5ftf' ); ?>
|
||||
</p>
|
||||
<?php submit_button(
|
||||
'Resend Confirmation',
|
||||
|
|
|
@ -7,7 +7,7 @@ namespace WordPressDotOrg\FiveForTheFuture\View;
|
|||
|
||||
<div class="form-field">
|
||||
<label for="5ftf-org-name">
|
||||
<?php esc_html_e( 'Organization Name', 'wordpressorg' ); ?>
|
||||
<?php esc_html_e( 'Organization Name', 'wporg-5ftf' ); ?>
|
||||
</label>
|
||||
<input
|
||||
type="text"
|
||||
|
@ -22,7 +22,7 @@ namespace WordPressDotOrg\FiveForTheFuture\View;
|
|||
<?php if ( ! is_admin() ) : ?>
|
||||
<div class="form-field form-field__logo">
|
||||
<label for="5ftf-org-logo">
|
||||
<?php esc_html_e( 'Logo', 'wordpressorg' ); ?>
|
||||
<?php esc_html_e( 'Logo', 'wporg-5ftf' ); ?>
|
||||
</label>
|
||||
<br />
|
||||
<input
|
||||
|
@ -35,7 +35,7 @@ namespace WordPressDotOrg\FiveForTheFuture\View;
|
|||
|
||||
<div class="form-field">
|
||||
<label for="5ftf-org-url">
|
||||
<?php esc_html_e( 'Website Address', 'wordpressorg' ); ?>
|
||||
<?php esc_html_e( 'Website Address', 'wporg-5ftf' ); ?>
|
||||
</label>
|
||||
<input
|
||||
type="url"
|
||||
|
@ -50,7 +50,7 @@ namespace WordPressDotOrg\FiveForTheFuture\View;
|
|||
|
||||
<div class="form-field">
|
||||
<label for="5ftf-org-description">
|
||||
<?php esc_html_e( 'Organization Blurb', 'wordpressorg' ); ?>
|
||||
<?php esc_html_e( 'Organization Blurb', 'wporg-5ftf' ); ?>
|
||||
</label>
|
||||
<textarea
|
||||
id="5ftf-org-description"
|
||||
|
|
|
@ -10,7 +10,7 @@ use function WordPressDotOrg\FiveForTheFuture\get_views_path;
|
|||
|
||||
<script type="text/template" id="tmpl-5ftf-contributor-lists">
|
||||
<# if ( data.publish.length ) { #>
|
||||
<h3 class="contributor-list-heading"><?php esc_html_e( 'Confirmed', 'wporg' ); ?></h3>
|
||||
<h3 class="contributor-list-heading"><?php esc_html_e( 'Confirmed', 'wporg-5ftf' ); ?></h3>
|
||||
<table class="contributor-list publish striped widefat">
|
||||
<thead>
|
||||
<th scope="col"><?php esc_html_e( 'Contributor', 'wporg-5ftf' ); ?></th>
|
||||
|
@ -21,7 +21,7 @@ use function WordPressDotOrg\FiveForTheFuture\get_views_path;
|
|||
</table>
|
||||
<# } #>
|
||||
<# if ( data.pending.length ) { #>
|
||||
<h3 class="contributor-list-heading"><?php esc_html_e( 'Unconfirmed', 'wporg' ); ?></h3>
|
||||
<h3 class="contributor-list-heading"><?php esc_html_e( 'Unconfirmed', 'wporg-5ftf' ); ?></h3>
|
||||
<table class="contributor-list pending striped widefat">
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -84,7 +84,7 @@ use function WordPressDotOrg\FiveForTheFuture\get_views_path;
|
|||
);
|
||||
?>
|
||||
<?php else : ?>
|
||||
<p><?php esc_html_e( 'There are no contributors added to this pledge yet.', 'wporg' ); ?></p>
|
||||
<p><?php esc_html_e( 'There are no contributors added to this pledge yet.', 'wporg-5ftf' ); ?></p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
|
@ -99,6 +99,6 @@ use function WordPressDotOrg\FiveForTheFuture\get_views_path;
|
|||
class="button-primary"
|
||||
data-action="add-contributor"
|
||||
>
|
||||
<?php esc_html_e( 'Add new contributors', 'wporg' ); ?>
|
||||
<?php esc_html_e( 'Add new contributors', 'wporg-5ftf' ); ?>
|
||||
</button>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue