Merge pull request #820 from mailpoet/translations

Fix translations based on translators' feedback [MAILPOET-819]
This commit is contained in:
mrcasual
2017-02-21 13:20:24 +01:00
committed by GitHub
22 changed files with 54 additions and 53 deletions

View File

@ -169,7 +169,7 @@ define([
}, },
beforeSave: function() { beforeSave: function() {
// TODO: Add a loading animation instead // TODO: Add a loading animation instead
this.$('.mailpoet_autosaved_at').text('Saving...'); this.$('.mailpoet_autosaved_at').text(MailPoet.I18n.t('saving'));
}, },
afterSave: function(json, response) { afterSave: function(json, response) {
this.validateNewsletter(json); this.validateNewsletter(json);

View File

@ -75,7 +75,8 @@ class Menu {
add_screen_option('per_page', array( add_screen_option('per_page', array(
'label' => _x( 'label' => _x(
'Number of newsletters per page', 'Number of newsletters per page',
'newsletters per page (screen options)' 'newsletters per page (screen options)',
'mailpoet'
), ),
'option' => 'mailpoet_newsletters_per_page' 'option' => 'mailpoet_newsletters_per_page'
)); ));
@ -97,7 +98,8 @@ class Menu {
add_screen_option('per_page', array( add_screen_option('per_page', array(
'label' => _x( 'label' => _x(
'Number of forms per page', 'Number of forms per page',
'forms per page (screen options)' 'forms per page (screen options)',
'mailpoet'
), ),
'option' => 'mailpoet_forms_per_page' 'option' => 'mailpoet_forms_per_page'
)); ));
@ -119,7 +121,8 @@ class Menu {
add_screen_option('per_page', array( add_screen_option('per_page', array(
'label' => _x( 'label' => _x(
'Number of subscribers per page', 'Number of subscribers per page',
'subscribers per page (screen options)' 'subscribers per page (screen options)',
'mailpoet'
), ),
'option' => 'mailpoet_subscribers_per_page' 'option' => 'mailpoet_subscribers_per_page'
)); ));
@ -142,7 +145,8 @@ class Menu {
add_screen_option('per_page', array( add_screen_option('per_page', array(
'label' => _x( 'label' => _x(
'Number of segments per page', 'Number of segments per page',
'segments per page (screen options)' 'segments per page (screen options)',
'mailpoet'
), ),
'option' => 'mailpoet_segments_per_page' 'option' => 'mailpoet_segments_per_page'
)); ));

View File

@ -116,7 +116,7 @@ class NewsletterBlank121Column {
), ),
array( array(
"type" => "text", "type" => "text",
"text" => __("<h1 style=\"text-align: center;\"><strong>Let's Get Started!</strong></h1>\n<p>It's time to design your newsletter! In the right sidebar, you'll find four menu items that will help you customize your newsletter:</p>\n<ol>\n<li>Content</li>\n<li>Layout</li>\n<li>Styles</li>\n<li>Preview</li>\n</ol>", 'mailpoet') "text" => __("<h1 style=\"text-align: center;\"><strong>Let's Get Started!</strong></h1>\n<p>It's time to design your newsletter! In the right sidebar, you'll find four menu items that will help you customize your newsletter:</p>\n<ol>\n<li>Content</li>\n<li>Columns</li>\n<li>Styles</li>\n<li>Preview</li>\n</ol>", 'mailpoet')
), ),
array( array(
"type" => "divider", "type" => "divider",

View File

@ -116,7 +116,7 @@ class NewsletterBlank12Column {
), ),
array( array(
"type" => "text", "type" => "text",
"text" => __("<h1 style=\"text-align: center;\"><strong>Let's Get Started!</strong></h1>\n<p></p>\n<p>It's time to design your newsletter! In the right sidebar, you'll find 4 menu items that will help you customize your newsletter:</p>\n<ol>\n<li>Content</li>\n<li>Layout</li>\n<li>Styles</li>\n<li>Preview</li>\n</ol>", 'mailpoet') "text" => __("<h1 style=\"text-align: center;\"><strong>Let's Get Started!</strong></h1>\n<p></p>\n<p>It's time to design your newsletter! In the right sidebar, you'll find 4 menu items that will help you customize your newsletter:</p>\n<ol>\n<li>Content</li>\n<li>Columns</li>\n<li>Styles</li>\n<li>Preview</li>\n</ol>", 'mailpoet')
), ),
array( array(
"type" => "divider", "type" => "divider",

View File

@ -116,7 +116,7 @@ class NewsletterBlank13Column {
), ),
array( array(
"type" => "text", "type" => "text",
"text" => __("<h1 style=\"text-align: center;\"><strong>Let's Get Started! </strong></h1>\n<p></p>\n<p>It's time to design your newsletter! In the right sidebar, you'll find four menu items that will help you customize your newsletter:</p>\n<ol>\n<li>Content</li>\n<li>Layout</li>\n<li>Styles</li>\n<li>Preview</li>\n</ol>", 'mailpoet') "text" => __("<h1 style=\"text-align: center;\"><strong>Let's Get Started! </strong></h1>\n<p></p>\n<p>It's time to design your newsletter! In the right sidebar, you'll find four menu items that will help you customize your newsletter:</p>\n<ol>\n<li>Content</li>\n<li>Columns</li>\n<li>Styles</li>\n<li>Preview</li>\n</ol>", 'mailpoet')
), ),
array( array(
"type" => "divider", "type" => "divider",

View File

@ -116,7 +116,7 @@ class NewsletterBlank1Column {
), ),
array( array(
"type" => "text", "type" => "text",
"text" => __("<h1 style=\"text-align: center;\"><strong>Let's Get Started! </strong></h1>\n<p></p>\n<p>It's time to design your newsletter! In the right sidebar, you'll find 4 menu items that will help you customize your newsletter:</p>\n<ol>\n<li>Content</li>\n<li>Layout</li>\n<li>Styles</li>\n<li>Preview</li>\n</ol>", 'mailpoet') "text" => __("<h1 style=\"text-align: center;\"><strong>Let's Get Started! </strong></h1>\n<p></p>\n<p>It's time to design your newsletter! In the right sidebar, you'll find 4 menu items that will help you customize your newsletter:</p>\n<ol>\n<li>Content</li>\n<li>Columns</li>\n<li>Styles</li>\n<li>Preview</li>\n</ol>", 'mailpoet')
) )
) )
) )

View File

@ -320,7 +320,7 @@ class StoreDiscount {
) )
), array( ), array(
"type" => "text", "type" => "text",
"text" => __("<p><em>Terms and Conditions:</em></p>\n<ul>\n<li><span style=\"line-height: 1.6em; background-color: inherit;\">Must be used by midnight EST December 15 2016.</span></li>\n<li><span style=\"line-height: 1.6em; background-color: inherit;\">Discount does not include shipping.</span></li>\n<li><span style=\"line-height: 1.6em; background-color: inherit;\">Cannot be used in conjunction with any other offer.</span></li>\n</ul>", 'mailpoet') "text" => __("<p><em>Terms and Conditions:</em></p>\n<ul>\n<li><span style=\"line-height: 1.6em; background-color: inherit;\">Must be used by midnight EST December 15 2036.</span></li>\n<li><span style=\"line-height: 1.6em; background-color: inherit;\">Discount does not include shipping.</span></li>\n<li><span style=\"line-height: 1.6em; background-color: inherit;\">Cannot be used in conjunction with any other offer.</span></li>\n</ul>", 'mailpoet')
), array( ), array(
"type" => "social", "type" => "social",
"iconSet" => "grey", "iconSet" => "grey",

View File

@ -13,7 +13,7 @@
id="field_type" id="field_type"
name="type" name="type"
data-parsley-required="true" data-parsley-required="true"
data-parsley-required-message="<%= __('Please specify a type') %>" data-parsley-required-message="<%= __('Please specify a type.') %>"
> >
<option value="">--</option> <option value="">--</option>
<option <option
@ -50,7 +50,7 @@
name="name" name="name"
value="{{ name }}" value="{{ name }}"
data-parsley-required="true" data-parsley-required="true"
data-parsley-required-message="<%= __('Please specify a name') %>" data-parsley-required-message="<%= __('Please specify a name.') %>"
/> />
</p> </p>
<hr /> <hr />

View File

@ -21,7 +21,7 @@
'selectedAllLabel': __('All %d forms are selected.'), 'selectedAllLabel': __('All %d forms are selected.'),
'selectAllLink': __('Select all forms on all pages'), 'selectAllLink': __('Select all forms on all pages'),
'clearSelection': __('Clear selection'), 'clearSelection': __('Clear selection'),
'permanentlyDeleted': __('%d forms permanently deleted'), 'permanentlyDeleted': __('%d forms permanently deleted.'),
'selectBulkAction': __('Select bulk action'), 'selectBulkAction': __('Select bulk action'),
'bulkActions': __('Bulk Actions'), 'bulkActions': __('Bulk Actions'),
'apply': __('Apply'), 'apply': __('Apply'),

View File

@ -334,6 +334,7 @@
'previewShouldOpenInNewTab': __('Your preview should open in a new tab. Please ensure your browser is not blocking popups from this page.'), 'previewShouldOpenInNewTab': __('Your preview should open in a new tab. Please ensure your browser is not blocking popups from this page.'),
'newsletterPreview': __('Newsletter Preview'), 'newsletterPreview': __('Newsletter Preview'),
'newsletterBodyIsCorrupted': __('Contents of this newsletter are corrupted and may be lost, you may need to add new content to this newsletter, or create a new one. If possible, please contact us and report this issue.'), 'newsletterBodyIsCorrupted': __('Contents of this newsletter are corrupted and may be lost, you may need to add new content to this newsletter, or create a new one. If possible, please contact us and report this issue.'),
'saving': __('Saving...'),
}) %> }) %>
<% endblock %> <% endblock %>

View File

@ -27,13 +27,13 @@
'tabNotificationTitle': __('Post Notifications'), 'tabNotificationTitle': __('Post Notifications'),
'searchLabel': __('Search'), 'searchLabel': __('Search'),
'loadingItems': __('Loading newsletters...'), 'loadingItems': __('Loading emails...'),
'noItemsFound': __("Nothing here yet! But, don't fret - there's no reason to get upset. Pretty soon, youll be sending emails faster than a turbo-jet."), 'noItemsFound': __("Nothing here yet! But, don't fret - there's no reason to get upset. Pretty soon, youll be sending emails faster than a turbo-jet."),
'selectAllLabel': __('All newsletters on this page are selected.'), 'selectAllLabel': __('All emails on this page are selected.'),
'selectedAllLabel': __('All %d newsletters are selected.'), 'selectedAllLabel': __('All %d emails are selected.'),
'selectAllLink': __('Select all newsletters on all pages'), 'selectAllLink': __('Select all emails on all pages'),
'clearSelection': __('Clear selection'), 'clearSelection': __('Clear selection'),
'permanentlyDeleted': __('%d newsletters were permanently deleted.'), 'permanentlyDeleted': __('%d emails were permanently deleted.'),
'selectBulkAction': __('Select bulk action'), 'selectBulkAction': __('Select bulk action'),
'bulkActions': __('Bulk Actions'), 'bulkActions': __('Bulk Actions'),
'apply': __('Apply'), 'apply': __('Apply'),
@ -66,12 +66,12 @@
'viewHistory': __('View history'), 'viewHistory': __('View history'),
'createdOn': __('Created on'), 'createdOn': __('Created on'),
'lastModifiedOn': __('Last modified on'), 'lastModifiedOn': __('Last modified on'),
'oneNewsletterTrashed': __('1 newsletter was moved to the trash.'), 'oneNewsletterTrashed': __('1 email was moved to the trash.'),
'multipleNewslettersTrashed': __('%$1d newsletters were moved to the trash.'), 'multipleNewslettersTrashed': __('%$1d emails were moved to the trash.'),
'oneNewsletterDeleted': __('1 newsletter was permanently deleted.'), 'oneNewsletterDeleted': __('1 email was permanently deleted.'),
'multipleNewslettersDeleted': __('%$1d newsletters were permanently deleted.'), 'multipleNewslettersDeleted': __('%$1d emails were permanently deleted.'),
'oneNewsletterRestored': __('1 newsletter has been recovered from the trash.'), 'oneNewsletterRestored': __('1 email has been restored from the Trash.'),
'multipleNewslettersRestored': __('%$1d newsletters have been recovered from the trash.'), 'multipleNewslettersRestored': __('%$1d emails have been restored from the Trash.'),
'trash': __('Trash'), 'trash': __('Trash'),
'moveToTrash': __('Move to trash'), 'moveToTrash': __('Move to trash'),
'edit': __('Edit'), 'edit': __('Edit'),
@ -132,8 +132,8 @@
'second': __('2nd'), 'second': __('2nd'),
'third': __('3rd'), 'third': __('3rd'),
'nth': __('%$1dth'), 'nth': __('%$1dth'),
'last': __('last'), 'last': _x('last', 'e.g. monthly every last Monday'),
'next': __('Next'), 'next': _x('Next', 'Button label: Next step'),
'selectEventToSendWelcomeEmail': __('When is this Welcome Email sent?'), 'selectEventToSendWelcomeEmail': __('When is this Welcome Email sent?'),

View File

@ -32,14 +32,14 @@
'unsubscribed': __('Unsubscribed'), 'unsubscribed': __('Unsubscribed'),
'bounced': __('Bounced'), 'bounced': __('Bounced'),
'createdOn': __('Created on'), 'createdOn': __('Created on'),
'oneSegmentTrashed': __('1 list was moved to the trash'), 'oneSegmentTrashed': __('1 list was moved to the trash.'),
'multipleSegmentsTrashed': __('%$1d lists were moved to the trash'), 'multipleSegmentsTrashed': __('%$1d lists were moved to the trash.'),
'oneSegmentDeleted': __('1 list was permanently deleted'), 'oneSegmentDeleted': __('1 list was permanently deleted.'),
'multipleSegmentsDeleted': __('%$1d lists were permanently deleted.'), 'multipleSegmentsDeleted': __('%$1d lists were permanently deleted.'),
'oneSegmentRestored': __('1 list has been restored from the trash'), 'oneSegmentRestored': __('1 list has been restored from the Trash.'),
'multipleSegmentsRestored': __('%$1d lists have been restored from the trash'), 'multipleSegmentsRestored': __('%$1d lists have been restored from the Trash.'),
'duplicate': __('Duplicate'), 'duplicate': __('Duplicate'),
'listDuplicated': __('List "%$1s" has been duplicated'), 'listDuplicated': __('List "%$1s" has been duplicated.'),
'update': __('Update'), 'update': __('Update'),
'forceSync': __('Force Sync'), 'forceSync': __('Force Sync'),
'readMore': __('Read More'), 'readMore': __('Read More'),

View File

@ -46,7 +46,7 @@
type="submit" type="submit"
class="button button-primary" class="button button-primary"
name="submit" name="submit"
value="<%= ('Save settings') %>" value="<%= __('Save settings') %>"
/> />
</p> </p>
</form> </form>

View File

@ -31,7 +31,7 @@
<%= __('Select what will activate your newsletter queue.') %> <%= __('Select what will activate your newsletter queue.') %>
<a href="http://docs.mailpoet.com/article/129-what-is-the-newsletter-task-scheduler" <a href="http://docs.mailpoet.com/article/129-what-is-the-newsletter-task-scheduler"
target="_blank" target="_blank"
><%= __('Read more.') %></a> ><%= _x('Read more.', 'support article link label') %></a>
</p> </p>
</th> </th>
<td> <td>
@ -114,7 +114,7 @@
<a <a
href="http://docs.mailpoet.com/article/130-sharing-your-data-with-us" href="http://docs.mailpoet.com/article/130-sharing-your-data-with-us"
target="_blank" target="_blank"
><%= __('Read more.') %></a> ><%= _x('Read more.', 'support article link label') %></a>
</p> </p>
</th> </th>
<td> <td>
@ -168,7 +168,7 @@
$(function() { $(function() {
$('#mailpoet_reinstall').on('click', function() { $('#mailpoet_reinstall').on('click', function() {
if(confirm( if(confirm(
"<%= __('Are you sure? All of your MailPoet data will be permanently erased (newsletters, statistics, subscribers, etc.)') %>" "<%= __('Are you sure? All of your MailPoet data will be permanently erased (newsletters, statistics, subscribers, etc.).') %>"
)) { )) {
MailPoet.Modal.loading(true); MailPoet.Modal.loading(true);
MailPoet.Ajax.post({ MailPoet.Ajax.post({

View File

@ -47,7 +47,7 @@
<%= __("Email notifications") %> <%= __("Email notifications") %>
</label> </label>
<p class="description"> <p class="description">
<%= __('These email addresses will receive notifications (separate each address with a comma)') %> <%= __('These email addresses will receive notifications (separate each address with a comma).') %>
</p> </p>
</th> </th>
<td> <td>
@ -148,7 +148,7 @@
<%= __('Subscribe in registration form') %> <%= __('Subscribe in registration form') %>
</label> </label>
<p class="description"> <p class="description">
<%= __('Allow users who register as a WordPress user on your website to subscribe to a MailPoet list (in addition to the "WordPress Users" list.)') %> <%= __('Allow users who register as a WordPress user on your website to subscribe to a MailPoet list (in addition to the "WordPress Users" list).') %>
</p> </p>
</th> </th>
<td> <td>

View File

@ -120,11 +120,7 @@
<p class="mailpoet_description"> <p class="mailpoet_description">
<strong><%= __('For SMTP, SendGrid or Amazon SES') %></strong> <strong><%= __('For SMTP, SendGrid or Amazon SES') %></strong>
<br /> <br />
<%= __('We only recommend using a third-party service if you are a technical user. Tread carefully.') %> <%= __('We only recommend using a third-party service if you are a technical user.') %>
<a
href="http://docs.mailpoet.com/article/154-why-use-an-email-service-provider"
target="_blank"
><%= __('Read more.') %></a>
</p> </p>
<div class="mailpoet_status"> <div class="mailpoet_status">

View File

@ -130,7 +130,7 @@
<%= __('Email content') %> <%= __('Email content') %>
</label> </label>
<p class="description"> <p class="description">
<%= __("Don't forget to include:<br /><br />[activation_link]Confirm your subscription.[/activation_link].<br /><br />Optional: [lists_to_confirm].") %> <%= __("Don't forget to include:<br /><br />[activation_link]Confirm your subscription.[/activation_link]<br /><br />Optional: [lists_to_confirm].") %>
</p> </p>
</th> </th>
<td> <td>

View File

@ -45,7 +45,7 @@
<tr> <tr>
<th scope="row"> <th scope="row">
<label for="export_lists"> <label for="export_lists">
<%= __('Pick a list') %> <%= __('Pick one or multiple lists') %>
</label> </label>
</th> </th>
<td> <td>

View File

@ -34,12 +34,12 @@
<%= localize({ <%= localize({
'noMailChimpLists': __('No active lists found'), 'noMailChimpLists': __('No active lists found'),
'serverError': __('Server error:'), 'serverError': __('Server error:'),
'select': __('Selecto', 'Form input type'), 'select': __('Select', 'Form input type'),
'csvKBLink': csvKBLink, 'csvKBLink': csvKBLink,
'wrongFileFormat': __('Only comma-separated (CSV) file formats are supported.'), 'wrongFileFormat': __('Only comma-separated (CSV) file formats are supported.'),
'maxPostSizeNotice': __('Your CSV is over %s and is too big to process. Please split the file into two or more sections.')|replace({'%s': maxPostSize}), 'maxPostSizeNotice': __('Your CSV is over %s and is too big to process. Please split the file into two or more sections.')|replace({'%s': maxPostSize}),
'dataProcessingError': __("Your data could not be processed. Please make sure it is in the correct format."), 'dataProcessingError': __("Your data could not be processed. Please make sure it is in the correct format."),
'noValidRecords': __('No valid records were found. This file needs to be formatted in a CSV style (comma-separated.) Look at some [link]examples on our support site.[/link]'), 'noValidRecords': __('No valid records were found. This file needs to be formatted in a CSV style (comma-separated). Look at some [link]examples on our support site.[/link]'),
'importNoticeSkipped': __('%1$s records had issues and were skipped.'), 'importNoticeSkipped': __('%1$s records had issues and were skipped.'),
'importNoticeInvalid': __('%1$s emails are not valid: %2$s'), 'importNoticeInvalid': __('%1$s emails are not valid: %2$s'),
'importNoticeDuplicate': __('%1$s emails appear more than once in your file: %2$s'), 'importNoticeDuplicate': __('%1$s emails appear more than once in your file: %2$s'),

View File

@ -108,9 +108,9 @@
<tbody> <tbody>
<tr> <tr>
<th scope="row"> <th scope="row">
<%= ('Did these subscribers ask to be in your list?') %> <%= __('Did these subscribers ask to be in your list?') %>
<p class="description"> <p class="description">
<%= ('If the answer is "no", consider yourself a spammer.') %> <%= __('If the answer is "no", consider yourself a spammer.') %>
<br/> <br/>
<%= <%=
__('[link]Read more at our Knowledge Base[/link]') __('[link]Read more at our Knowledge Base[/link]')
@ -126,7 +126,7 @@
<tr> <tr>
<th scope="row"> <th scope="row">
<a href="javascript:;" <a href="javascript:;"
class="button-primary button-disabled wysija mailpoet_process"><%= ('Next step') %> </a> class="button-primary button-disabled wysija mailpoet_process"><%= __('Next step') %> </a>
</th> </th>
</tr> </tr>
</tbody> </tbody>

View File

@ -134,7 +134,7 @@
<input id="new_segment_name" type="text" name="name"/> <input id="new_segment_name" type="text" name="name"/>
</p> </p>
<p class="mailpoet_validation_error" data-error="segment_name_required"> <p class="mailpoet_validation_error" data-error="segment_name_required">
<%= __('Please specify a name') %> <%= __('Please specify a name.') %>
</p> </p>
<p class="mailpoet_validation_error" data-error="segment_name_not_unique"> <p class="mailpoet_validation_error" data-error="segment_name_not_unique">
<%= __('Another record already exists. Please specify a different "%1$s".')|format('name') %> <%= __('Another record already exists. Please specify a different "%1$s".')|format('name') %>

View File

@ -65,7 +65,7 @@
<p><%= __("About once a month, we send out a pretty cool newsletter ourselves.") %></p> <p><%= __("About once a month, we send out a pretty cool newsletter ourselves.") %></p>
<p><%= __("Sign up to get: Tips and tricks, special offers and important plugin updates!") %></p> <p><%= __("Sign up to get: Tips and tricks, special offers and important plugin updates!") %></p>
<p> <p>
<iframe width="380" scrolling="no" frameborder="0" src="http://www.mailpoet.com/?wysija-page=1&controller=subscribers&action=wysija_outter&wysija_form=5&external_site=1&wysijap=subscriptions-3" class="iframe-wysija" vspace="0" tabindex="0" style="border-style: none; display:block; visibility: visible; background-color: #f1f1f1!important;" marginwidth="0" marginheight="0" hspace="0" allowtransparency="true" title="Subscribe To Our Newsletter"></iframe> <iframe width="380" scrolling="no" frameborder="0" src="http://www.mailpoet.com/?wysija-page=1&controller=subscribers&action=wysija_outter&wysija_form=5&external_site=1&wysijap=subscriptions-3" class="iframe-wysija" vspace="0" tabindex="0" style="border-style: none; display:block; visibility: visible; background-color: #f1f1f1!important;" marginwidth="0" marginheight="0" hspace="0" allowtransparency="true" title="<%= __("Subscribe To Our Newsletter") %>"></iframe>
</p> </p>
</div> </div>