Add text domain to importer strings

This commit is contained in:
Brian Miyaji
2014-03-21 20:13:31 +11:00
parent 11d0f0ef01
commit 4c6990cd7a
3 changed files with 11 additions and 11 deletions

View File

@@ -526,7 +526,7 @@ if ( class_exists( 'WP_Importer' ) ) {
$size = size_format( $bytes );
$upload_dir = wp_upload_dir();
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
else :
?>
@@ -541,7 +541,7 @@ if ( class_exists( 'WP_Importer' ) ) {
<input type="file" id="upload" name="import" size="25" />
<input type="hidden" name="action" value="save" />
<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>
</tr>
<tr>
@@ -599,7 +599,7 @@ if ( class_exists( 'WP_Importer' ) ) {
</tbody>
</table>
<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>
</form>
<?php

View File

@@ -293,7 +293,7 @@ if ( class_exists( 'WP_Importer' ) ) {
$size = size_format( $bytes );
$upload_dir = wp_upload_dir();
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
else :
?>
@@ -302,13 +302,13 @@ if ( class_exists( 'WP_Importer' ) ) {
<tbody>
<tr>
<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>
<td>
<input type="file" id="upload" name="import" size="25" />
<input type="hidden" name="action" value="save" />
<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>
</tr>
<tr>
@@ -326,7 +326,7 @@ if ( class_exists( 'WP_Importer' ) ) {
</tbody>
</table>
<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>
</form>
<?php

View File

@@ -250,7 +250,7 @@ if ( class_exists( 'WP_Importer' ) ) {
$size = size_format( $bytes );
$upload_dir = wp_upload_dir();
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
else :
?>
@@ -259,13 +259,13 @@ if ( class_exists( 'WP_Importer' ) ) {
<tbody>
<tr>
<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>
<td>
<input type="file" id="upload" name="import" size="25" />
<input type="hidden" name="action" value="save" />
<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>
</tr>
<tr>
@@ -283,7 +283,7 @@ if ( class_exists( 'WP_Importer' ) ) {
</tbody>
</table>
<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>
</form>
<?php