{"id":29983,"date":"2012-12-24T12:46:46","date_gmt":"2012-12-24T20:46:46","guid":{"rendered":"http:\/\/tri.be\/support\/forums\/topic\/translate-and-modify-pdf\/"},"modified":"2012-12-24T12:46:46","modified_gmt":"2012-12-24T20:46:46","slug":"translate-and-modify-pdf","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/translate-and-modify-pdf\/","title":{"rendered":"Translate and Modify PDF"},"content":{"rendered":"<p>ello I made the purchase of the plugin, but I can not edit translate PDF file. I wanted to change the names that are in English for my lingual, but I can not, already searched all files and not found, only thing I found was this part, but I could not.<\/p>\n<p>Cod:<\/p>\n<p>    public function generate_order_PDF( $order_id ) {<\/p>\n<p>        $args = array( &#8216;post_type&#8217;   =&gt; $this-&gt;attendee_object,<br \/>\n                       &#8216;meta_key&#8217;    =&gt; $this-&gt;atendee_order_key,<br \/>\n                       &#8216;meta_value&#8217;  =&gt; $order_id );<\/p>\n<p>        $query = new WP_Query( $args );<\/p>\n<p>        if ( $query-&gt;found_posts == 0 )<br \/>\n            return;<\/p>\n<p>        $attendees = array();<\/p>\n<p>        foreach ( $query-&gt;posts as $post ) {<\/p>\n<p>            $attendees[] = array( &#8216;event_id&#8217;      =&gt; get_post_meta( $post-&gt;ID, $this-&gt;atendee_event_key, true ),<br \/>\n                                  &#8216;ticket_name&#8217;   =&gt; get_post( get_post_meta( $post-&gt;ID, $this-&gt;atendee_product_key, true ) )-&gt;post_title,<br \/>\n                                  &#8216;holder_name&#8217;   =&gt; get_post_meta( $order_id, &#8216;_billing_first_name&#8217;, true ) . &#8216; &#8216; . get_post_meta( $order_id, &#8216;_billing_last_name&#8217;, true ),<br \/>\n                                  &#8216;order_id&#8217;      =&gt; $order_id,<br \/>\n                                  &#8216;ticket_id&#8217;     =&gt; $post-&gt;ID,<br \/>\n                                  &#8216;security_code&#8217; =&gt; get_post_meta( $post-&gt;ID, $this-&gt;security_code, true )<\/p>\n<p>            );<br \/>\n        }<\/p>\n<p>        $upload = $this-&gt;generate_attendees_PDF( $attendees );<\/p>\n<p>        return $upload;<\/p>\n<p>    }<\/p>\n<p>&#8212;&#8212;&#8212;-<\/p>\n<p>Also I need to put the translation file, how do I? saved it in that format? .PO and .MO in \/plugins\/wootickets\/lang and not work.<\/p>\n<p>please, help me.<\/p>\n<p>Thanks,<\/p>\n","protected":false},"template":"","class_list":["post-29983","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Translate and Modify PDF -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/translate-and-modify-pdf\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Translate and Modify PDF -\" \/>\n<meta property=\"og:description\" content=\"ello I made the purchase of the plugin, but I can not edit translate PDF file. I wanted to change the names that are in English for my lingual, but I can not, already searched all files and not found, only thing I found was this part, but I could not. Cod: public function generate_order_PDF( [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/translate-and-modify-pdf\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/translate-and-modify-pdf\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/translate-and-modify-pdf\/\",\"name\":\"Translate and Modify PDF -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2012-12-24T20:46:46+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/translate-and-modify-pdf\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/translate-and-modify-pdf\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/translate-and-modify-pdf\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Ticket Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Event Tickets Plus\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Translate and Modify PDF\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Translate and Modify PDF -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/translate-and-modify-pdf\/","og_locale":"en_US","og_type":"article","og_title":"Translate and Modify PDF -","og_description":"ello I made the purchase of the plugin, but I can not edit translate PDF file. I wanted to change the names that are in English for my lingual, but I can not, already searched all files and not found, only thing I found was this part, but I could not. Cod: public function generate_order_PDF( [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/translate-and-modify-pdf\/","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/translate-and-modify-pdf\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/translate-and-modify-pdf\/","name":"Translate and Modify PDF -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2012-12-24T20:46:46+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/translate-and-modify-pdf\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/translate-and-modify-pdf\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/translate-and-modify-pdf\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Ticket Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/"},{"@type":"ListItem","position":4,"name":"Event Tickets Plus","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/"},{"@type":"ListItem","position":5,"name":"Translate and Modify PDF"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/29983","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/29983\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=29983"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}