Use a unique text-domain, wporg-5ftf

This commit is contained in:
Jb 2019-11-23 10:23:00 +01:00
parent a11e3c5fa5
commit 52fd2b08dc
2 changed files with 12 additions and 12 deletions

View file

@ -20,25 +20,25 @@ get_header(); ?>
<?php if ( have_posts() ) : ?> <?php if ( have_posts() ) : ?>
<header class="page-header"> <header class="page-header">
<h1 class="page-title"><?php esc_html_e( 'Pledges', 'wordpressorg' ); ?></h1> <h1 class="page-title"><?php esc_html_e( 'Pledges', 'wporg-5ftf' ); ?></h1>
<div class="page-header-callout"> <div class="page-header-callout">
<a class="button" href="<?php echo esc_url( $new_pledge_link ); ?>" > <a class="button" href="<?php echo esc_url( $new_pledge_link ); ?>" >
<?php esc_html_e( 'Pledge your company', 'wordpressorg' ); ?> <?php esc_html_e( 'Pledge your company', 'wporg-5ftf' ); ?>
</a> </a>
</div> </div>
<div class="page-header-controls"> <div class="page-header-controls">
<form method="get" action="<?php echo esc_url( get_post_type_archive_link( CPT_ID ) ); ?>"> <form method="get" action="<?php echo esc_url( get_post_type_archive_link( CPT_ID ) ); ?>">
<label for="pledge-sort"><?php esc_html_e( 'Sort pledges by', 'wordpressorg' ); ?></label> <label for="pledge-sort"><?php esc_html_e( 'Sort pledges by', 'wporg-5ftf' ); ?></label>
<select class="custom-select" id="pledge-sort" name="order"> <select class="custom-select" id="pledge-sort" name="order">
<option value="" <?php selected( $pledge_order, '' ); ?>> <option value="" <?php selected( $pledge_order, '' ); ?>>
<?php esc_html_e( 'Random', 'wordpressorg' ); ?> <?php esc_html_e( 'Random', 'wporg-5ftf' ); ?>
</option> </option>
<option value="alphabetical" <?php selected( $pledge_order, 'alphabetical' ); ?>> <option value="alphabetical" <?php selected( $pledge_order, 'alphabetical' ); ?>>
<?php esc_html_e( 'Alphabetical', 'wordpressorg' ); ?> <?php esc_html_e( 'Alphabetical', 'wporg-5ftf' ); ?>
</option> </option>
<option value="hours" <?php selected( $pledge_order, 'hours' ); ?>> <option value="hours" <?php selected( $pledge_order, 'hours' ); ?>>
<?php esc_html_e( 'Total Hours', 'wordpressorg' ); ?> <?php esc_html_e( 'Total Hours', 'wporg-5ftf' ); ?>
</option> </option>
</select> </select>
<span class="screen-reader-text"> <span class="screen-reader-text">

View file

@ -62,15 +62,15 @@ get_header();
</div> </div>
<?php if ( ! empty( $contributors ) ) : ?> <?php if ( ! empty( $contributors ) ) : ?>
<h2><?php esc_html_e( 'Contributions', 'wporg' ); ?></h2> <h2><?php esc_html_e( 'Contributions', 'wporg-5ftf' ); ?></h2>
<p> <p>
<?php <?php
echo wp_kses_post( sprintf( echo wp_kses_post( sprintf(
__( '%1$s sponsors %2$s for a total of <strong>%3$s</strong> hours per week.', 'wporg' ), __( '%1$s sponsors %2$s for a total of <strong>%3$s</strong> hours per week.', 'wporg-5ftf' ),
get_the_title(), get_the_title(),
sprintf( sprintf(
_n( '<strong>%d</strong> contributor', '<strong>%d</strong> contributors', $contribution_data['contributors'], 'wporg' ), _n( '<strong>%d</strong> contributor', '<strong>%d</strong> contributors', $contribution_data['contributors'], 'wporg-5ftf' ),
number_format_i18n( absint( $contribution_data['contributors'] ) ) number_format_i18n( absint( $contribution_data['contributors'] ) )
), ),
number_format_i18n( absint( $contribution_data['hours'] ) ) number_format_i18n( absint( $contribution_data['hours'] ) )
@ -80,7 +80,7 @@ get_header();
<p> <p>
<?php <?php
echo wp_kses_post( sprintf( echo wp_kses_post( sprintf(
__( 'Contributors from %s work on the following teams:', 'wporg' ), __( 'Contributors from %s work on the following teams:', 'wporg-5ftf' ),
get_the_title() get_the_title()
) ); ) );
?> ?>
@ -122,14 +122,14 @@ get_header();
<?php endforeach; ?> <?php endforeach; ?>
</ul> </ul>
<?php else : ?> <?php else : ?>
<p><?php esc_html_e( 'No confirmed contributors yet.', 'wporg' ); ?></p> <p><?php esc_html_e( 'No confirmed contributors yet.', 'wporg-5ftf' ); ?></p>
<?php endif; ?> <?php endif; ?>
</div> </div>
<footer class="entry-footer"> <footer class="entry-footer">
<div class="report-wrapper"> <div class="report-wrapper">
<a href="<?php the_permalink( $report_page ); ?>"> <a href="<?php the_permalink( $report_page ); ?>">
<?php esc_html_e( 'Report a problem', 'wporg' ); ?> <?php esc_html_e( 'Report a problem', 'wporg-5ftf' ); ?>
</a> </a>
</div> </div>