Skip to content
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

Americanize the plugin's strings #525

Merged
merged 1 commit into from
Nov 19, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
2,439 changes: 2,439 additions & 0 deletions src/assets/languages/gravity-forms-pdf-extended-en_AU.po

Large diffs are not rendered by default.

Binary file not shown.
2,439 changes: 2,439 additions & 0 deletions src/assets/languages/gravity-forms-pdf-extended-en_GB.po

Large diffs are not rendered by default.

Binary file not shown.
2,439 changes: 2,439 additions & 0 deletions src/assets/languages/gravity-forms-pdf-extended-en_NZ.po

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class Router implements Helper\Helper_Interface_Actions, Helper\Helper_Interface
* @since 4.0
*/
public function __call( $name, $arguments ) {
trigger_error( sprintf( esc_html__( '"%s" has been depreciated as of Gravity PDF 4.0', 'gravity-forms-pdf-extended' ), $name ), E_USER_DEPRECATED );
trigger_error( sprintf( esc_html__( '"%s" has been deprecated as of Gravity PDF 4.0', 'gravity-forms-pdf-extended' ), $name ), E_USER_DEPRECATED );
}

/**
Expand All @@ -167,7 +167,7 @@ public function __call( $name, $arguments ) {
* @since 4.0
*/
public static function __callStatic( $name, $arguments ) {
trigger_error( sprintf( esc_html__( '"%s" has been depreciated as of Gravity PDF 4.0', 'gravity-forms-pdf-extended' ), $name ), E_USER_DEPRECATED );
trigger_error( sprintf( esc_html__( '"%s" has been deprecated as of Gravity PDF 4.0', 'gravity-forms-pdf-extended' ), $name ), E_USER_DEPRECATED );
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/depreciated.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ abstract class GFPDF_Depreciated_Abstract {
* @param array $arguments An enumerated array containing the parameters passed to the $name'ed method
*/
public function __call( $name, $arguments ) {
trigger_error( sprintf( esc_html__( '"%s" has been depreciated as of Gravity PDF 4.0', 'gravity-forms-pdf-extended' ), $name ), E_USER_DEPRECATED );
trigger_error( sprintf( esc_html__( '"%s" has been deprecated as of Gravity PDF 4.0', 'gravity-forms-pdf-extended' ), $name ), E_USER_DEPRECATED );
}

/**
Expand All @@ -66,7 +66,7 @@ public function __call( $name, $arguments ) {
* @param array $arguments An enumerated array containing the parameters passed to the $name'ed method
*/
public static function __callStatic( $name, $arguments ) {
trigger_error( sprintf( esc_html__( '"%s" has been depreciated as of Gravity PDF 4.0', 'gravity-forms-pdf-extended' ), $name ), E_USER_DEPRECATED );
trigger_error( sprintf( esc_html__( '"%s" has been deprecated as of Gravity PDF 4.0', 'gravity-forms-pdf-extended' ), $name ), E_USER_DEPRECATED );
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/helper/Helper_Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ public function get_localised_script_data( Helper_Abstract_Options $options, Hel
'template_install_success' => esc_html__( 'Template successfully installed', 'gravity-forms-pdf-extended' ),
'installUpdatedText' => esc_html__( 'Template successfully updated', 'gravity-forms-pdf-extended' ),
'generic_upload_failure' => esc_html__( 'There was a problem with the upload. Reload the page and try again.', 'gravity-forms-pdf-extended' ),
'template_confirm_delete' => esc_html__( "Do you really want to delete this PDF template?\n\nClick 'Cancel' to go back, 'OK' to confirm the delete.", 'gravity-forms-pdf-extended' ),
'template_confirm_delete' => sprintf( esc_html__( "Do you really want to delete this PDF template?%sClick 'Cancel' to go back, 'OK' to confirm the delete.", 'gravity-forms-pdf-extended' ), "\n\n" ),
'templateDeleteError' => esc_html__( 'Could not delete template.', 'gravity-forms-pdf-extended' ),
'templateHeader' => esc_html__( 'Installed PDFs', 'gravity-forms-pdf-extended' ),
] );
Expand Down
16 changes: 8 additions & 8 deletions src/helper/Helper_Options_Fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function get_registered_fields() {
'std' => 'zadani',
'inputClass' => 'large',
'chosen' => true,
'tooltip' => '<h6>' . esc_html__( 'Templates', 'gravity-forms-pdf-extended' ) . '</h6>' . sprintf( esc_html__( 'Gravity PDF comes with %sfour completely-free and highly customisable designs%s. You can also purchase additional templates from our theme shop, hire us to integrate existing PDFs or, with a bit of technical know-how, build your own.', 'gravity-forms-pdf-extended' ), '<strong>', '</strong>' ),
'tooltip' => '<h6>' . esc_html__( 'Templates', 'gravity-forms-pdf-extended' ) . '</h6>' . sprintf( esc_html__( 'Gravity PDF comes with %sfour completely-free and highly customizable designs%s. You can also purchase additional templates from our theme shop, hire us to integrate existing PDFs or, with a bit of technical know-how, build your own.', 'gravity-forms-pdf-extended' ), '<strong>', '</strong>' ),
],

'default_font' => [
Expand All @@ -139,10 +139,10 @@ public function get_registered_fields() {

'default_font_colour' => [
'id' => 'default_font_colour',
'name' => esc_html__( 'Default Font Colour', 'gravity-forms-pdf-extended' ),
'name' => esc_html__( 'Default Font Color', 'gravity-forms-pdf-extended' ),
'type' => 'color',
'std' => '#000000',
'desc' => esc_html__( 'Set the default font colour used in PDFs.', 'gravity-forms-pdf-extended' ),
'desc' => esc_html__( 'Set the default font color used in PDFs.', 'gravity-forms-pdf-extended' ),
],

'default_rtl' => [
Expand Down Expand Up @@ -293,7 +293,7 @@ public function get_registered_fields() {
'std' => $this->get_option( 'default_template', 'zadani' ),
'inputClass' => 'large',
'chosen' => true,
'tooltip' => '<h6>' . esc_html__( 'Templates', 'gravity-forms-pdf-extended' ) . '</h6>' . sprintf( esc_html__( 'Gravity PDF comes with %sfour completely-free and highly customisable designs%s. You can also purchase additional templates from our theme shop, hire us to integrate existing PDFs or, with a bit of technical know-how, build your own.', 'gravity-forms-pdf-extended' ), '<strong>', '</strong>' ),
'tooltip' => '<h6>' . esc_html__( 'Templates', 'gravity-forms-pdf-extended' ) . '</h6>' . sprintf( esc_html__( 'Gravity PDF comes with %sfour completely-free and highly customizable designs%s. You can also purchase additional templates from our theme shop, hire us to integrate existing PDFs or, with a bit of technical know-how, build your own.', 'gravity-forms-pdf-extended' ), '<strong>', '</strong>' ),
],

'notification' => [
Expand Down Expand Up @@ -407,10 +407,10 @@ public function get_registered_fields() {

'font_colour' => [
'id' => 'font_colour',
'name' => esc_html__( 'Font Colour', 'gravity-forms-pdf-extended' ),
'name' => esc_html__( 'Font Color', 'gravity-forms-pdf-extended' ),
'type' => 'color',
'std' => $this->get_option( 'default_font_colour', '#000000' ),
'desc' => esc_html__( 'Set the font colour to use in the PDF.', 'gravity-forms-pdf-extended' ),
'desc' => esc_html__( 'Set the font color to use in the PDF.', 'gravity-forms-pdf-extended' ),
'class' => 'gfpdf_font_colour',
],

Expand Down Expand Up @@ -809,10 +809,10 @@ public function get_first_page_footer_field() {
public function get_background_color_field() {
return apply_filters( 'gfpdf_background_color_field_setting', [
'id' => 'background_color',
'name' => esc_html__( 'Background Colour', 'gravity-forms-pdf-extended' ),
'name' => esc_html__( 'Background Color', 'gravity-forms-pdf-extended' ),
'type' => 'color',
'std' => '#FFF',
'desc' => esc_html__( 'Set the background colour for all pages.', 'gravity-forms-pdf-extended' ),
'desc' => esc_html__( 'Set the background color for all pages.', 'gravity-forms-pdf-extended' ),
] );
}

Expand Down
2 changes: 1 addition & 1 deletion src/model/Model_Templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ public function check_for_valid_pdf_templates( $files = [] ) {

/* Check the first 8kiB contains the string RGForms or GFForms, which signifies our v3 templates */
if ( strpos( $file_data, 'RGForms' ) === false && strpos( $file_data, 'GFForms' ) === false ) {
throw new Exception( esc_html__( sprintf( 'The PHP file %s is not a valid PDF Template.', basename( $file ) ), 'gravity-forms-pdf-extended' ) );
throw new Exception( sprintf( esc_html__( 'The PHP file %s is not a valid PDF Template.', 'gravity-forms-pdf-extended' ), basename( $file ) ) );
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions src/templates/config/focus-gravity.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,17 @@ public function configuration() {
'fields' => [
'focusgravity_accent_colour' => [
'id' => 'focusgravity_accent_colour',
'name' => esc_html__( 'Accent Colour', 'gravity-forms-pdf-extended' ),
'name' => esc_html__( 'Accent Color', 'gravity-forms-pdf-extended' ),
'type' => 'color',
'desc' => esc_html__( 'The accent colour is used for the page and section titles, as well as the border.', 'gravity-forms-pdf-extended' ),
'desc' => esc_html__( 'The accent color is used for the page and section titles, as well as the border.', 'gravity-forms-pdf-extended' ),
'std' => '#e3e3e3',
],

'focusgravity_secondary_colour' => [
'id' => 'focusgravity_secondary_colour',
'name' => esc_html__( 'Secondary Colour', 'gravity-forms-pdf-extended' ),
'name' => esc_html__( 'Secondary Color', 'gravity-forms-pdf-extended' ),
'type' => 'color',
'desc' => esc_html__( 'The secondary colour is used with the field labels and for alternate rows.', 'gravity-forms-pdf-extended' ),
'desc' => esc_html__( 'The secondary color is used with the field labels and for alternate rows.', 'gravity-forms-pdf-extended' ),
'std' => '#eaf2fa',
],

Expand Down
4 changes: 2 additions & 2 deletions src/templates/config/rubix.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ public function configuration() {
'fields' => [
'rubix_container_background_colour' => [
'id' => 'rubix_container_background_colour',
'name' => esc_html__( 'Container Background Colour', 'gravity-forms-pdf-extended' ),
'name' => esc_html__( 'Container Background Color', 'gravity-forms-pdf-extended' ),
'type' => 'color',
'desc' => esc_html__( 'Control the colour of the field background.', 'gravity-forms-pdf-extended' ),
'desc' => esc_html__( 'Control the color of the field background.', 'gravity-forms-pdf-extended' ),
'std' => '#EEEEEE',
],
],
Expand Down
4 changes: 2 additions & 2 deletions src/templates/config/zadani.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ public function configuration() {
'fields' => [
'zadani_border_colour' => [
'id' => 'zadani_border_colour',
'name' => esc_html__( 'Field Border Colour', 'gravity-forms-pdf-extended' ),
'name' => esc_html__( 'Field Border Color', 'gravity-forms-pdf-extended' ),
'type' => 'color',
'desc' => esc_html__( 'Control the colour of the field border.', 'gravity-forms-pdf-extended' ),
'desc' => esc_html__( 'Control the color of the field border.', 'gravity-forms-pdf-extended' ),
'std' => '#CCCCCC',
],
],
Expand Down
2 changes: 1 addition & 1 deletion src/view/html/Actions/review_plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

<br>

<?php printf( esc_html__( "If you love how much time you've saved using Gravity PDF then do us a big favour and %sgive it a five-star rating on WordPress.org%s.", 'gravity-forms-pdf-extended' ), '<a href="https://wordpress.org/support/view/plugin-reviews/gravity-forms-pdf-extended">', '</a>' ); ?>
<?php printf( esc_html__( "If you love how much time you've saved using Gravity PDF then do us a big favor and %sgive it a five-star rating on WordPress.org%s.", 'gravity-forms-pdf-extended' ), '<a href="https://wordpress.org/support/view/plugin-reviews/gravity-forms-pdf-extended">', '</a>' ); ?>

<br>

Expand Down
2 changes: 1 addition & 1 deletion src/view/html/Welcome/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
</p>

<p>
<?php esc_html_e( "Once installed, you'll have full control over the font face, size and colour using our powerful settings interface.", 'gravity-forms-pdf-extended' ); ?>
<?php esc_html_e( "Once installed, you'll have full control over the font face, size and color using our powerful settings interface.", 'gravity-forms-pdf-extended' ); ?>
</p>

<p></p>
Expand Down
4 changes: 2 additions & 2 deletions src/view/html/Welcome/welcome.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<h1><?php esc_html_e( 'Welcome to Gravity PDF', 'gravity-forms-pdf-extended' ); ?></h1>

<div class="about-text">
<?php esc_html_e( "You're just minutes away from producing your first highly-customisable PDF document using Gravity Forms data.", 'gravity-forms-pdf-extended' ); ?>
<?php esc_html_e( "You're just minutes away from producing your first highly-customizable PDF document using Gravity Forms data.", 'gravity-forms-pdf-extended' ); ?>
</div>

<div class="gfpdf-badge"><?php printf( esc_html__( 'Version %s', 'gravity-forms-pdf-extended' ), $args['display_version'] ); ?></div>
Expand Down Expand Up @@ -121,7 +121,7 @@

<h3><?php esc_html_e( 'Custom Fonts', 'gravity-forms-pdf-extended' ); ?></h3>

<p><?php printf( esc_html__( 'Make your documents stand out by including your favourite fonts with our %ssimple font manager%s.', 'gravity-forms-pdf-extended' ), '<a href="https://gravitypdf.com/documentation/v4/user-custom-fonts/">', '</a>' ); ?></p>
<p><?php printf( esc_html__( 'Make your documents stand out by including your favorite fonts with our %ssimple font manager%s.', 'gravity-forms-pdf-extended' ), '<a href="https://gravitypdf.com/documentation/v4/user-custom-fonts/">', '</a>' ); ?></p>
</div>
</div>

Expand Down