Add text domain to importer strings
This commit is contained in:
@@ -526,7 +526,7 @@ if ( class_exists( 'WP_Importer' ) ) {
|
|||||||
$size = size_format( $bytes );
|
$size = size_format( $bytes );
|
||||||
$upload_dir = wp_upload_dir();
|
$upload_dir = wp_upload_dir();
|
||||||
if ( ! empty( $upload_dir['error'] ) ) :
|
if ( ! empty( $upload_dir['error'] ) ) :
|
||||||
?><div class="error"><p><?php _e('Before you can upload your import file, you will need to fix the following error:'); ?></p>
|
?><div class="error"><p><?php _e('Before you can upload your import file, you will need to fix the following error:', 'sportspress'); ?></p>
|
||||||
<p><strong><?php echo $upload_dir['error']; ?></strong></p></div><?php
|
<p><strong><?php echo $upload_dir['error']; ?></strong></p></div><?php
|
||||||
else :
|
else :
|
||||||
?>
|
?>
|
||||||
@@ -541,7 +541,7 @@ if ( class_exists( 'WP_Importer' ) ) {
|
|||||||
<input type="file" id="upload" name="import" size="25" />
|
<input type="file" id="upload" name="import" size="25" />
|
||||||
<input type="hidden" name="action" value="save" />
|
<input type="hidden" name="action" value="save" />
|
||||||
<input type="hidden" name="max_file_size" value="<?php echo $bytes; ?>" />
|
<input type="hidden" name="max_file_size" value="<?php echo $bytes; ?>" />
|
||||||
<small><?php printf( __('Maximum size: %s' ), $size ); ?></small>
|
<small><?php printf( __( 'Maximum size: %s', 'sportspress' ), $size ); ?></small>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -599,7 +599,7 @@ if ( class_exists( 'WP_Importer' ) ) {
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<p class="submit">
|
<p class="submit">
|
||||||
<input type="submit" class="button" value="<?php esc_attr_e( 'Upload file and import' ); ?>" />
|
<input type="submit" class="button" value="<?php esc_attr_e( 'Upload file and import', 'sportspress' ); ?>" />
|
||||||
</p>
|
</p>
|
||||||
</form>
|
</form>
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
@@ -293,7 +293,7 @@ if ( class_exists( 'WP_Importer' ) ) {
|
|||||||
$size = size_format( $bytes );
|
$size = size_format( $bytes );
|
||||||
$upload_dir = wp_upload_dir();
|
$upload_dir = wp_upload_dir();
|
||||||
if ( ! empty( $upload_dir['error'] ) ) :
|
if ( ! empty( $upload_dir['error'] ) ) :
|
||||||
?><div class="error"><p><?php _e('Before you can upload your import file, you will need to fix the following error:'); ?></p>
|
?><div class="error"><p><?php _e('Before you can upload your import file, you will need to fix the following error:', 'sportspress'); ?></p>
|
||||||
<p><strong><?php echo $upload_dir['error']; ?></strong></p></div><?php
|
<p><strong><?php echo $upload_dir['error']; ?></strong></p></div><?php
|
||||||
else :
|
else :
|
||||||
?>
|
?>
|
||||||
@@ -302,13 +302,13 @@ if ( class_exists( 'WP_Importer' ) ) {
|
|||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>
|
||||||
<label for="upload"><?php _e( 'Choose a file from your computer:' ); ?></label>
|
<label for="upload"><?php _e( 'Choose a file from your computer:', 'sportspress' ); ?></label>
|
||||||
</th>
|
</th>
|
||||||
<td>
|
<td>
|
||||||
<input type="file" id="upload" name="import" size="25" />
|
<input type="file" id="upload" name="import" size="25" />
|
||||||
<input type="hidden" name="action" value="save" />
|
<input type="hidden" name="action" value="save" />
|
||||||
<input type="hidden" name="max_file_size" value="<?php echo $bytes; ?>" />
|
<input type="hidden" name="max_file_size" value="<?php echo $bytes; ?>" />
|
||||||
<small><?php printf( __('Maximum size: %s' ), $size ); ?></small>
|
<small><?php printf( __( 'Maximum size: %s', 'sportspress' ), $size ); ?></small>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -326,7 +326,7 @@ if ( class_exists( 'WP_Importer' ) ) {
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<p class="submit">
|
<p class="submit">
|
||||||
<input type="submit" class="button" value="<?php esc_attr_e( 'Upload file and import' ); ?>" />
|
<input type="submit" class="button" value="<?php esc_attr_e( 'Upload file and import', 'sportspress' ); ?>" />
|
||||||
</p>
|
</p>
|
||||||
</form>
|
</form>
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
@@ -250,7 +250,7 @@ if ( class_exists( 'WP_Importer' ) ) {
|
|||||||
$size = size_format( $bytes );
|
$size = size_format( $bytes );
|
||||||
$upload_dir = wp_upload_dir();
|
$upload_dir = wp_upload_dir();
|
||||||
if ( ! empty( $upload_dir['error'] ) ) :
|
if ( ! empty( $upload_dir['error'] ) ) :
|
||||||
?><div class="error"><p><?php _e('Before you can upload your import file, you will need to fix the following error:'); ?></p>
|
?><div class="error"><p><?php _e('Before you can upload your import file, you will need to fix the following error:', 'sportspress'); ?></p>
|
||||||
<p><strong><?php echo $upload_dir['error']; ?></strong></p></div><?php
|
<p><strong><?php echo $upload_dir['error']; ?></strong></p></div><?php
|
||||||
else :
|
else :
|
||||||
?>
|
?>
|
||||||
@@ -259,13 +259,13 @@ if ( class_exists( 'WP_Importer' ) ) {
|
|||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>
|
||||||
<label for="upload"><?php _e( 'Choose a file from your computer:' ); ?></label>
|
<label for="upload"><?php _e( 'Choose a file from your computer:', 'sportspress' ); ?></label>
|
||||||
</th>
|
</th>
|
||||||
<td>
|
<td>
|
||||||
<input type="file" id="upload" name="import" size="25" />
|
<input type="file" id="upload" name="import" size="25" />
|
||||||
<input type="hidden" name="action" value="save" />
|
<input type="hidden" name="action" value="save" />
|
||||||
<input type="hidden" name="max_file_size" value="<?php echo $bytes; ?>" />
|
<input type="hidden" name="max_file_size" value="<?php echo $bytes; ?>" />
|
||||||
<small><?php printf( __('Maximum size: %s' ), $size ); ?></small>
|
<small><?php printf( __( 'Maximum size: %s', 'sportspress' ), $size ); ?></small>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -283,7 +283,7 @@ if ( class_exists( 'WP_Importer' ) ) {
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<p class="submit">
|
<p class="submit">
|
||||||
<input type="submit" class="button" value="<?php esc_attr_e( 'Upload file and import' ); ?>" />
|
<input type="submit" class="button" value="<?php esc_attr_e( 'Upload file and import', 'sportspress' ); ?>" />
|
||||||
</p>
|
</p>
|
||||||
</form>
|
</form>
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
Reference in New Issue
Block a user