Skip to content

Commit

Permalink
Text that's better for translations. Add .pot file
Browse files Browse the repository at this point in the history
  • Loading branch information
cliffordp committed May 16, 2018
1 parent 8d8ec4c commit 08dddee
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 8 deletions.
74 changes: 74 additions & 0 deletions languages/tribe-ext-pdf-tickets.pot
Original file line number Diff line number Diff line change
@@ -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 ""
"<a href=\"%s\">Change your Permalink settings</a> 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 ""
11 changes: 3 additions & 8 deletions tribe-ext-pdf-tickets.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,7 @@ public function init() {
if ( 'options-permalink.php' !== $pagenow ) {
$message .= '<p>';

$message .= sprintf( '<a href="%s">%s</a>',
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( __( '<a href="%s">Change your Permalink settings</a> or deactivate this plugin.', esc_url( admin_url( 'options-permalink.php' ) ), 'tribe-ext-pdf-tickets' ) );

$message .= '</p>';
}
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 08dddee

Please sign in to comment.