From 08dddeeb632964a2089a6487f0ccf393fd88c92d Mon Sep 17 00:00:00 2001 From: Clifford Paulick Date: Wed, 16 May 2018 17:20:58 -0500 Subject: [PATCH] Text that's better for translations. Add .pot file --- languages/tribe-ext-pdf-tickets.pot | 74 +++++++++++++++++++++++++++++ tribe-ext-pdf-tickets.php | 11 ++--- 2 files changed, 77 insertions(+), 8 deletions(-) create mode 100644 languages/tribe-ext-pdf-tickets.pot diff --git a/languages/tribe-ext-pdf-tickets.pot b/languages/tribe-ext-pdf-tickets.pot new file mode 100644 index 0000000..f3ab24b --- /dev/null +++ b/languages/tribe-ext-pdf-tickets.pot @@ -0,0 +1,74 @@ +#, fuzzy +msgid "" +msgstr "" +"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" +"Project-Id-Version: Event Tickets Extension: PDF Tickets\n" +"POT-Creation-Date: 2018-05-16 17:20-0500\n" +"PO-Revision-Date: 2018-05-16 17:20-0500\n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 2.0.6\n" +"X-Poedit-Basepath: ..\n" +"X-Poedit-Flags-xgettext: --add-comments=translators:\n" +"X-Poedit-WPHeader: tribe-ext-pdf-tickets.php\n" +"X-Poedit-SourceCharset: UTF-8\n" +"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;" +"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;" +"_nx_noop:3c,1,2;__ngettext_noop:1,2\n" +"X-Poedit-SearchPath-0: .\n" +"X-Poedit-SearchPathExcluded-0: *.js\n" + +#: tribe-ext-pdf-tickets.php:158 +#, php-format +msgid "" +"%s requires PHP version %s or newer to work (as well as the `mbstring` and " +"`gd` PHP extensions). Please contact your website host and inquire about " +"updating PHP." +msgstr "" + +#: tribe-ext-pdf-tickets.php:203 +#, php-format +msgid "Permalinks must be enabled in order to use %s." +msgstr "" + +#: tribe-ext-pdf-tickets.php:211 +#, php-format +msgid "" +"Change your Permalink settings or deactivate this plugin." +msgstr "" + +#: tribe-ext-pdf-tickets.php:532 +msgctxt "The URL rewrite base for a PDF Ticket file download" +msgid "download" +msgstr "" + +#: tribe-ext-pdf-tickets.php:1248 +msgctxt "The anchor text for a PDF Ticket link" +msgid "PDF Ticket" +msgstr "" + +#. Plugin Name of the plugin/theme +msgid "Event Tickets Extension: PDF Tickets" +msgstr "" + +#. Plugin URI of the plugin/theme +msgid "https://github.com/mt-support/tribe-ext-pdf-tickets" +msgstr "" + +#. Description of the plugin/theme +msgid "" +"Event Tickets' RSVP, Tribe Commerce PayPal, WooCommerce, and/or Easy Digital " +"Downloads ticket emails will become PDF files saved to your Uploads " +"directory and then get attached to the ticket emails." +msgstr "" + +#. Author of the plugin/theme +msgid "Modern Tribe, Inc." +msgstr "" + +#. Author URI of the plugin/theme +msgid "http://m.tri.be/1971" +msgstr "" diff --git a/tribe-ext-pdf-tickets.php b/tribe-ext-pdf-tickets.php index 58535b2..39894c0 100644 --- a/tribe-ext-pdf-tickets.php +++ b/tribe-ext-pdf-tickets.php @@ -208,12 +208,7 @@ public function init() { if ( 'options-permalink.php' !== $pagenow ) { $message .= '

'; - $message .= sprintf( '%s', - esc_url( admin_url( 'options-permalink.php' ) ), - __( 'Change your Permalink settings', 'tribe-ext-pdf-tickets' ) - ); - - $message .= __( ' or deactivate this plugin.', 'tribe-ext-pdf-tickets' ); + $message .= sprintf( __( 'Change your Permalink settings or deactivate this plugin.', esc_url( admin_url( 'options-permalink.php' ) ), 'tribe-ext-pdf-tickets' ) ); $message .= '

'; } @@ -534,7 +529,7 @@ private function get_download_base_slug() { $base = sprintf( '%s_%s', sanitize_title_with_dashes( $tickets_bases['tickets'][0] ), - sanitize_key( __( 'download', 'tribe-ext-pdf-tickets' ) ) + sanitize_key( _x( 'download', 'The URL rewrite base for a PDF Ticket file download', 'tribe-ext-pdf-tickets' ) ) ); return $base; @@ -1250,7 +1245,7 @@ public function email_attach_pdf( $attachments ) { * @return string */ public function ticket_link( $attendee_id ) { - $text = __( 'PDF Ticket', 'tribe-ext-pdf-tickets' ); + $text = _x( 'PDF Ticket', 'The anchor text for a PDF Ticket link', 'tribe-ext-pdf-tickets' ); /** * Customize the ticket link's anchor text, such as to add the