WooCommerce PDF Invoices & Packing Slips - Version 1.4.8

Version Description

  • Translations: Added Finnish (Thanks Sami Mkel/Contrast.fi!)
Download this release

Release Info

Developer pomegranate
Plugin Icon 128x128 WooCommerce PDF Invoices & Packing Slips
Version 1.4.8
Comparing to
See all releases

Code changes from version 1.4.7 to 1.4.8

includes/class-wcpdf-export.php CHANGED
@@ -65,6 +65,7 @@ if ( ! class_exists( 'WooCommerce_PDF_Invoices_Export' ) ) {
65
  do_action( 'wpo_wcpdf_process_template_order', $template_type, $order_id );
66
  $this->order = new WC_Order( $order_id );
67
  $template = $this->template_path . '/' . $template_type . '.php';
 
68
 
69
  if (!file_exists($template)) {
70
  die('Template not found! Check if the following file exists: <pre>'.$template.'</pre><br/>');
65
  do_action( 'wpo_wcpdf_process_template_order', $template_type, $order_id );
66
  $this->order = new WC_Order( $order_id );
67
  $template = $this->template_path . '/' . $template_type . '.php';
68
+ $template = apply_filters( 'wpo_wcpdf_template_file', $template, $template_type );
69
 
70
  if (!file_exists($template)) {
71
  die('Template not found! Check if the following file exists: <pre>'.$template.'</pre><br/>');
includes/class-wcpdf-writepanels.php CHANGED
@@ -6,6 +6,7 @@
6
  if ( !class_exists( 'WooCommerce_PDF_Invoices_Writepanels' ) ) {
7
 
8
  class WooCommerce_PDF_Invoices_Writepanels {
 
9
 
10
  /**
11
  * Constructor
@@ -25,6 +26,11 @@ if ( !class_exists( 'WooCommerce_PDF_Invoices_Writepanels' ) ) {
25
 
26
  $this->general_settings = get_option('wpo_wcpdf_general_settings');
27
  $this->template_settings = get_option('wpo_wcpdf_template_settings');
 
 
 
 
 
28
  }
29
 
30
  /**
@@ -54,8 +60,9 @@ if ( !class_exists( 'WooCommerce_PDF_Invoices_Writepanels' ) ) {
54
  'wpo-wcpdf',
55
  'wpo_wcpdf_ajax',
56
  array(
57
- 'ajaxurl' => admin_url( 'admin-ajax.php' ), // URL to WordPress ajax handling page
58
- 'nonce' => wp_create_nonce('generate_wpo_wcpdf')
 
59
  )
60
  );
61
  }
@@ -77,14 +84,28 @@ if ( !class_exists( 'WooCommerce_PDF_Invoices_Writepanels' ) ) {
77
  * Add PDF actions to the orders listing
78
  */
79
  public function add_listing_actions( $order ) {
80
- ?>
81
- <a href="<?php echo wp_nonce_url( admin_url( 'admin-ajax.php?action=generate_wpo_wcpdf&template_type=invoice&order_ids=' . $order->id ), 'generate_wpo_wcpdf' ); ?>" class="button tips wpo_wcpdf" target="_blank" alt="<?php esc_attr_e( 'PDF invoice', 'wpo_wcpdf' ); ?>" data-tip="<?php esc_attr_e( 'PDF invoice', 'wpo_wcpdf' ); ?>">
82
- <img src="<?php echo WooCommerce_PDF_Invoices::$plugin_url . 'images/invoice.png'; ?>" alt="<?php esc_attr_e( 'PDF invoice', 'wpo_wcpdf' ); ?>" width="16">
83
- </a>
84
- <a href="<?php echo wp_nonce_url( admin_url( 'admin-ajax.php?action=generate_wpo_wcpdf&template_type=packing-slip&order_ids=' . $order->id ), 'generate_wpo_wcpdf' ); ?>" class="button tips wpo_wcpdf" target="_blank" alt="<?php esc_attr_e( 'PDF Packing Slip', 'wpo_wcpdf' ); ?>" data-tip="<?php esc_attr_e( 'PDF Packing Slip', 'wpo_wcpdf' ); ?>">
85
- <img src="<?php echo WooCommerce_PDF_Invoices::$plugin_url . 'images/packing-slip.png'; ?>" alt="<?php esc_attr_e( 'PDF Packing Slip', 'wpo_wcpdf' ); ?>" width="16">
86
- </a>
87
- <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
88
  }
89
 
90
  /**
@@ -140,7 +161,7 @@ if ( !class_exists( 'WooCommerce_PDF_Invoices_Writepanels' ) ) {
140
  );
141
  }
142
 
143
- return $actions;
144
  }
145
 
146
  /**
@@ -155,10 +176,29 @@ if ( !class_exists( 'WooCommerce_PDF_Invoices_Writepanels' ) ) {
155
  */
156
  public function create_box_content() {
157
  global $post_id;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
158
  ?>
159
  <ul class="wpo_wcpdf-actions">
160
- <li><a href="<?php echo wp_nonce_url( admin_url( 'admin-ajax.php?action=generate_wpo_wcpdf&template_type=invoice&order_ids=' . $post_id ), 'generate_wpo_wcpdf' ); ?>" class="button" target="_blank" alt="<?php esc_attr_e( 'PDF Invoice', 'wpo_wcpdf' ); ?>"><?php _e( 'PDF invoice', 'wpo_wcpdf' ); ?></a></li>
161
- <li><a href="<?php echo wp_nonce_url( admin_url( 'admin-ajax.php?action=generate_wpo_wcpdf&template_type=packing-slip&order_ids=' . $post_id ), 'generate_wpo_wcpdf' ); ?>" class="button" target="_blank" alt="<?php esc_attr_e( 'PDF Packing Slip', 'wpo_wcpdf' ); ?>"><?php _e( 'PDF Packing Slip', 'wpo_wcpdf' ); ?></a></li>
 
 
 
162
  </ul>
163
  <?php
164
  }
@@ -168,15 +208,15 @@ if ( !class_exists( 'WooCommerce_PDF_Invoices_Writepanels' ) ) {
168
  */
169
  public function bulk_actions() {
170
  global $post_type;
171
-
 
172
  if ( 'shop_order' == $post_type ) {
173
  ?>
174
  <script type="text/javascript">
175
  jQuery(document).ready(function() {
176
- jQuery('<option>').val('invoice').text('<?php _e( 'PDF Invoices', 'wpo_wcpdf' )?>').appendTo("select[name='action']");
177
- jQuery('<option>').val('invoice').text('<?php _e( 'PDF Invoices', 'wpo_wcpdf' )?>').appendTo("select[name='action2']");
178
- jQuery('<option>').val('packing-slip').text('<?php _e( 'PDF Packing Slips', 'wpo_wcpdf' )?>').appendTo("select[name='action']");
179
- jQuery('<option>').val('packing-slip').text('<?php _e( 'PDF Packing Slips', 'wpo_wcpdf' )?>').appendTo("select[name='action2']");
180
  });
181
  </script>
182
  <?php
6
  if ( !class_exists( 'WooCommerce_PDF_Invoices_Writepanels' ) ) {
7
 
8
  class WooCommerce_PDF_Invoices_Writepanels {
9
+ public $bulk_actions;
10
 
11
  /**
12
  * Constructor
26
 
27
  $this->general_settings = get_option('wpo_wcpdf_general_settings');
28
  $this->template_settings = get_option('wpo_wcpdf_template_settings');
29
+
30
+ $this->bulk_actions = array(
31
+ 'invoice' => __( 'PDF Invoices', 'wpo_wcpdf' ),
32
+ 'packing-slip' => __( 'PDF Packing Slips', 'wpo_wcpdf' ),
33
+ );
34
  }
35
 
36
  /**
60
  'wpo-wcpdf',
61
  'wpo_wcpdf_ajax',
62
  array(
63
+ 'ajaxurl' => admin_url( 'admin-ajax.php' ), // URL to WordPress ajax handling page
64
+ 'nonce' => wp_create_nonce('generate_wpo_wcpdf'),
65
+ 'bulk_actions' => array_keys( apply_filters( 'wpo_wcpdf_bulk_actions', $this->bulk_actions ) ),
66
  )
67
  );
68
  }
84
  * Add PDF actions to the orders listing
85
  */
86
  public function add_listing_actions( $order ) {
87
+ $listing_actions = array(
88
+ 'invoice' => array (
89
+ 'url' => wp_nonce_url( admin_url( 'admin-ajax.php?action=generate_wpo_wcpdf&template_type=invoice&order_ids=' . $order->id ), 'generate_wpo_wcpdf' ),
90
+ 'img' => WooCommerce_PDF_Invoices::$plugin_url . 'images/invoice.png',
91
+ 'alt' => esc_attr__( 'PDF Invoice', 'wpo_wcpdf' ),
92
+ ),
93
+ 'packing-slip' => array (
94
+ 'url' => wp_nonce_url( admin_url( 'admin-ajax.php?action=generate_wpo_wcpdf&template_type=packing-slip&order_ids=' . $order->id ), 'generate_wpo_wcpdf' ),
95
+ 'img' => WooCommerce_PDF_Invoices::$plugin_url . 'images/packing-slip.png',
96
+ 'alt' => esc_attr__( 'PDF Packing Slip', 'wpo_wcpdf' ),
97
+ ),
98
+ );
99
+
100
+ $listing_actions = apply_filters( 'wpo_wcpdf_listing_actions', $listing_actions, $order );
101
+
102
+ foreach ($listing_actions as $action => $data) {
103
+ ?>
104
+ <a href="<?php echo $data['url']; ?>" class="button tips wpo_wcpdf <?php echo $action; ?>" target="_blank" alt="<?php echo $data['alt']; ?>" data-tip="<?php echo $data['alt']; ?>">
105
+ <img src="<?php echo $data['img']; ?>" alt="<?php echo $data['alt']; ?>" width="16">
106
+ </a>
107
+ <?php
108
+ }
109
  }
110
 
111
  /**
161
  );
162
  }
163
 
164
+ return apply_filters( 'wpo_wcpdf_myaccount_actions', $actions, $order );
165
  }
166
 
167
  /**
176
  */
177
  public function create_box_content() {
178
  global $post_id;
179
+
180
+ $meta_actions = array(
181
+ 'invoice' => array (
182
+ 'url' => wp_nonce_url( admin_url( 'admin-ajax.php?action=generate_wpo_wcpdf&template_type=invoice&order_ids=' . $post_id ), 'generate_wpo_wcpdf' ),
183
+ 'alt' => esc_attr__( 'PDF Invoice', 'wpo_wcpdf' ),
184
+ 'title' => __( 'PDF Invoice', 'wpo_wcpdf' ),
185
+ ),
186
+ 'packing-slip' => array (
187
+ 'url' => wp_nonce_url( admin_url( 'admin-ajax.php?action=generate_wpo_wcpdf&template_type=packing-slip&order_ids=' . $post_id ), 'generate_wpo_wcpdf' ),
188
+ 'alt' => esc_attr__( 'PDF Packing Slip', 'wpo_wcpdf' ),
189
+ 'title' => __( 'PDF Packing Slip', 'wpo_wcpdf' ),
190
+ ),
191
+ );
192
+
193
+ $meta_actions = apply_filters( 'wpo_wcpdf_meta_box_actions', $meta_actions );
194
+
195
  ?>
196
  <ul class="wpo_wcpdf-actions">
197
+ <?php
198
+ foreach ($meta_actions as $action => $data) {
199
+ printf('<li><a href="%1$s" class="button" target="_blank" alt="%2$s">%3$s</a></li>', $data['url'], $data['alt'],$data['title']);
200
+ }
201
+ ?>
202
  </ul>
203
  <?php
204
  }
208
  */
209
  public function bulk_actions() {
210
  global $post_type;
211
+ $bulk_actions = apply_filters( 'wpo_wcpdf_bulk_actions', $this->bulk_actions );
212
+
213
  if ( 'shop_order' == $post_type ) {
214
  ?>
215
  <script type="text/javascript">
216
  jQuery(document).ready(function() {
217
+ <?php foreach ($bulk_actions as $action => $title) { ?>
218
+ jQuery('<option>').val('<?php echo $action; ?>').text('<?php echo $title; ?>').appendTo("select[name='action'], select[name='action2']");
219
+ <?php } ?>
 
220
  });
221
  </script>
222
  <?php
js/script.js CHANGED
@@ -1,21 +1,21 @@
1
  jQuery(document).ready(function($) {
2
-
3
- $("#doaction, #doaction2").click(function (event) {
4
- var actionselected = $(this).attr("id").substr(2);
5
- var pdf = $('select[name="' + actionselected + '"]').val();
6
- if ( pdf == "packing-slip" || pdf == "invoice") {
7
  event.preventDefault();
 
8
  var checked = [];
9
  $('tbody th.check-column input[type="checkbox"]:checked').each(
10
- function() {
11
- checked.push($(this).val());
12
- }
13
  );
14
 
15
  var order_ids=checked.join('x');
16
- url = wpo_wcpdf_ajax.ajaxurl+'?action=generate_wpo_wcpdf&template_type='+pdf+'&order_ids='+order_ids+'&_wpnonce='+wpo_wcpdf_ajax.nonce;
17
  window.open(url,'_blank');
18
- }
19
- });
20
  });
21
 
1
  jQuery(document).ready(function($) {
2
+ $("#doaction, #doaction2").click(function (event) {
3
+ var actionselected = $(this).attr("id").substr(2);
4
+ var action = $('select[name="' + actionselected + '"]').val();
5
+ if ( $.inArray(action, wpo_wcpdf_ajax.bulk_actions) !== -1 ) {
 
6
  event.preventDefault();
7
+ var template = action;
8
  var checked = [];
9
  $('tbody th.check-column input[type="checkbox"]:checked').each(
10
+ function() {
11
+ checked.push($(this).val());
12
+ }
13
  );
14
 
15
  var order_ids=checked.join('x');
16
+ url = wpo_wcpdf_ajax.ajaxurl+'?action=generate_wpo_wcpdf&template_type='+template+'&order_ids='+order_ids+'&_wpnonce='+wpo_wcpdf_ajax.nonce;
17
  window.open(url,'_blank');
18
+ }
19
+ });
20
  });
21
 
languages/wpo_wcpdf-fi.mo ADDED
Binary file
languages/wpo_wcpdf-fi.po ADDED
@@ -0,0 +1,478 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: WooCommerce PDF Invoices & Packing Slips\n"
4
+ "POT-Creation-Date: 2014-09-18 15:11+0100\n"
5
+ "PO-Revision-Date: 2014-10-11 08:29+0200\n"
6
+ "Last-Translator: \n"
7
+ "Language-Team: Contrast Digital Oy <hello@contrast.fi>\n"
8
+ "Language: fi_FI\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.6.2\n"
13
+ "X-Poedit-Basepath: ../\n"
14
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
15
+ "X-Poedit-SourceCharset: UTF-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;_x;_n:1,2\n"
17
+ "X-Poedit-SearchPath-0: .\n"
18
+
19
+ #: includes/class-wcpdf-export.php:168 includes/class-wcpdf-export.php:173
20
+ #: includes/class-wcpdf-export.php:178 includes/class-wcpdf-export.php:189
21
+ #: includes/class-wcpdf-export.php:202
22
+ msgid "You do not have sufficient permissions to access this page."
23
+ msgstr "Sinulla ei ole tarvittavia oikeuksia tälle sivulle."
24
+
25
+ # This is a filename (prefix). do not use spaces or special characters!
26
+ #: includes/class-wcpdf-export.php:223 includes/class-wcpdf-export.php:303
27
+ msgid "invoice"
28
+ msgid_plural "invoices"
29
+ msgstr[0] "lasku"
30
+ msgstr[1] "laskut"
31
+
32
+ # This is a filename (prefix). do not use spaces or special characters!
33
+ #: includes/class-wcpdf-export.php:225
34
+ msgid "packing-slip"
35
+ msgid_plural "packing-slips"
36
+ msgstr[0] "lähetyslista"
37
+ msgstr[1] "lähetyslistat"
38
+
39
+ #: includes/class-wcpdf-settings.php:36 includes/class-wcpdf-settings.php:37
40
+ #: includes/class-wcpdf-writepanels.php:176
41
+ #: includes/class-wcpdf-writepanels.php:177
42
+ msgid "PDF Invoices"
43
+ msgstr "PDF-laskut"
44
+
45
+ #: includes/class-wcpdf-settings.php:60
46
+ msgid "Settings"
47
+ msgstr "Asetukset"
48
+
49
+ #: includes/class-wcpdf-settings.php:82
50
+ msgid "General"
51
+ msgstr "Yleiset"
52
+
53
+ #: includes/class-wcpdf-settings.php:83
54
+ msgid "Template"
55
+ msgstr "Sivupohja"
56
+
57
+ #: includes/class-wcpdf-settings.php:92
58
+ msgid "WooCommerce PDF Invoices"
59
+ msgstr "WooCommerce PDF-laskut"
60
+
61
+ #: includes/class-wcpdf-settings.php:98
62
+ msgid "Status"
63
+ msgstr "Tila"
64
+
65
+ #: includes/class-wcpdf-settings.php:109
66
+ #, php-format
67
+ msgid ""
68
+ "Upload all invoices automatically to your dropbox!<br/>Check out the %s "
69
+ "extension."
70
+ msgstr ""
71
+ "Lataa kaikki laskut automaattisesti Dropbox-tiliisi!<br/>Tutustu %s -"
72
+ "lisäosaan."
73
+
74
+ #: includes/class-wcpdf-settings.php:119
75
+ #, php-format
76
+ msgid ""
77
+ "Looking for more advanced templates? Check out the Premium PDF Invoice & "
78
+ "Packing Slips templates at %s."
79
+ msgstr ""
80
+ "Etsitkö edistyneempiä sivupohjia? Tutustu Premium PDF Invoice & Packing "
81
+ "Slips -sivupohjiin osoitteessa %s."
82
+
83
+ #: includes/class-wcpdf-settings.php:120
84
+ #, php-format
85
+ msgid "For custom templates, contact us at %s."
86
+ msgstr "Haluatko räätälöidyt sivupohjat, ota yhteyttä meihin osoitteessa %s."
87
+
88
+ #: includes/class-wcpdf-settings.php:175
89
+ msgid "General settings"
90
+ msgstr "Yleiset asetukset"
91
+
92
+ #: includes/class-wcpdf-settings.php:182
93
+ msgid "How do you want to view the PDF?"
94
+ msgstr "Miten haluat esittää PDF-tiedoston?"
95
+
96
+ #: includes/class-wcpdf-settings.php:190
97
+ msgid "Download the PDF"
98
+ msgstr "Lataa PDF-tiedosto"
99
+
100
+ #: includes/class-wcpdf-settings.php:191
101
+ msgid "Open the PDF in a new browser tab/window"
102
+ msgstr "Avaa PDF-tiedosto uudessa selainikkunassa/välilehdellä"
103
+
104
+ #: includes/class-wcpdf-settings.php:201
105
+ msgid "Attach invoice to:"
106
+ msgstr "Liitä lasku:"
107
+
108
+ #: includes/class-wcpdf-settings.php:209
109
+ msgid "Admin New Order email"
110
+ msgstr "Ylläpitäjän ‘Uusi tilaus’-viesti"
111
+
112
+ #: includes/class-wcpdf-settings.php:210
113
+ msgid "Customer Processing Order email"
114
+ msgstr "Asiakkaan ‘Tilaus on käsittelyssä’-sähköposti"
115
+
116
+ #: includes/class-wcpdf-settings.php:211
117
+ msgid "Customer Completed Order email"
118
+ msgstr "Asiakkaan ‘Tilaus valmis’-sähköposti"
119
+
120
+ #: includes/class-wcpdf-settings.php:212
121
+ msgid "Customer Invoice email"
122
+ msgstr "Asiakkaan ‘Lasku’-sähköposti"
123
+
124
+ #: includes/class-wcpdf-settings.php:214
125
+ #, php-format
126
+ msgid ""
127
+ "It looks like the temp folder (<code>%s</code>) is not writable, check the "
128
+ "permissions for this folder! Without having write access to this folder, the "
129
+ "plugin will not be able to email invoices."
130
+ msgstr ""
131
+ "Näyttää siltä, että temp-tiedosto (<code>%s</code>) on kirjoitussuojattu, "
132
+ "tarkista tiedosto-oikeudet tälle kensiolle. Ilman kirjoitusoikeutta tämä "
133
+ "lisäosa ei pysty lähettämään laskuja sähköpostilla."
134
+
135
+ #: includes/class-wcpdf-settings.php:220
136
+ msgid "Enable invoice number column in the orders list"
137
+ msgstr "Aktivoi laskun numerot sarake Tilaukset-listalla."
138
+
139
+ #: includes/class-wcpdf-settings.php:259
140
+ msgid "PDF Template settings"
141
+ msgstr "PDF-sivupohjan asetukset"
142
+
143
+ #: includes/class-wcpdf-settings.php:271
144
+ msgid "Choose a template"
145
+ msgstr "Valitse sivupohja"
146
+
147
+ #: includes/class-wcpdf-settings.php:279
148
+ #, php-format
149
+ msgid ""
150
+ "Want to use your own template? Copy all the files from <code>%s</code> to "
151
+ "<code>%s</code> to customize them"
152
+ msgstr ""
153
+ "Haluatko käyttää omaa sivupohjaasi? Kopioi kaikki tiedostot kansiosta, <code>"
154
+ "%s</code> kansioon, <code>%s</code> muokataksesi niitä."
155
+
156
+ #: includes/class-wcpdf-settings.php:285
157
+ msgid "Paper size"
158
+ msgstr "Paperin koko"
159
+
160
+ #: includes/class-wcpdf-settings.php:293
161
+ msgid "A4"
162
+ msgstr "A4"
163
+
164
+ #: includes/class-wcpdf-settings.php:294
165
+ msgid "Letter"
166
+ msgstr "Kirje"
167
+
168
+ #: includes/class-wcpdf-settings.php:301
169
+ msgid "Shop header/logo"
170
+ msgstr "Kaupan logo"
171
+
172
+ #: includes/class-wcpdf-settings.php:308
173
+ msgid "Select or upload your invoice header/logo"
174
+ msgstr "Valitse tai lataa laskun logo"
175
+
176
+ #: includes/class-wcpdf-settings.php:309
177
+ msgid "Set image"
178
+ msgstr "Aseta kuva"
179
+
180
+ #: includes/class-wcpdf-settings.php:310
181
+ msgid "Remove image"
182
+ msgstr "Poista kuva"
183
+
184
+ #: includes/class-wcpdf-settings.php:317
185
+ msgid "Shop Name"
186
+ msgstr "Kaupan nimi"
187
+
188
+ #: includes/class-wcpdf-settings.php:330
189
+ msgid "Shop Address"
190
+ msgstr "Kaupan osoite"
191
+
192
+ #: includes/class-wcpdf-settings.php:362
193
+ msgid "Footer: terms & conditions, policies, etc."
194
+ msgstr "Alapalkki: ehdot, periaatteet jne…"
195
+
196
+ #: includes/class-wcpdf-settings.php:377
197
+ msgid "Number to display on invoice"
198
+ msgstr "Laskun numero"
199
+
200
+ #: includes/class-wcpdf-settings.php:385
201
+ msgid "WooCommerce order number"
202
+ msgstr "WooCommerce tilausnumero"
203
+
204
+ #: includes/class-wcpdf-settings.php:386
205
+ msgid "Built-in sequential invoice number"
206
+ msgstr "Sisäänrakennettu juokseva laskunnumero"
207
+
208
+ #: includes/class-wcpdf-settings.php:388
209
+ msgid ""
210
+ "If you are using the WooCommerce Sequential Order Numbers plugin, select the "
211
+ "WooCommerce order number"
212
+ msgstr ""
213
+ "Jos käytät WooCommerce Sequential Order Numbers -lisäosaa, valitse "
214
+ "WooCommerce tilausnumero."
215
+
216
+ #: includes/class-wcpdf-settings.php:394
217
+ msgid "Next invoice number (without prefix/suffix etc.)"
218
+ msgstr "Seuraavan laskun numero (ilman etu/takaliitteitä tms.)"
219
+
220
+ #: includes/class-wcpdf-settings.php:402
221
+ msgid ""
222
+ "This is the number that will be used on the next invoice that is created. By "
223
+ "default, numbering starts from the WooCommerce Order Number of the first "
224
+ "invoice that is created and increases for every new invoice. Note that if "
225
+ "you override this and set it lower than the highest (PDF) invoice number, "
226
+ "this could create double invoice numbers!"
227
+ msgstr ""
228
+ "Tmä numero näytetään seuraavassa laskussa, joka luodaan. Oletusarvoisesti "
229
+ "numerointi alkaa ensimmäisen tilauksen, jolle lasku luodaan, WooCommercen "
230
+ "tilausnumerosta. Laskunumerot jatkuvat tästä eteenpäin juoksevasti, eli "
231
+ "kasvavat aina yhdellä. Huomioithan, että jos ohitat tämän asetukset ja "
232
+ "asetat sen alemmaksi kuin ylin (PDF) laskunumero, saattaa esiintyä kaksi "
233
+ "identtistä laskunnumeroa. Suosittelemme, että asetukseen ei kosketa."
234
+
235
+ #: includes/class-wcpdf-settings.php:408
236
+ msgid "Invoice number format"
237
+ msgstr "Laskun numeron muoto"
238
+
239
+ #: includes/class-wcpdf-settings.php:417
240
+ msgid "Prefix"
241
+ msgstr "Etuliite"
242
+
243
+ #: includes/class-wcpdf-settings.php:419
244
+ msgid ""
245
+ "to use the order year and/or month, use [order_year] or [order_month] "
246
+ "respectively"
247
+ msgstr ""
248
+ "käyttääksesi vuotta ja/tai kuukautta, käytä [order_year] tai [order_month] "
249
+ "tarvittaessa"
250
+
251
+ #: includes/class-wcpdf-settings.php:422
252
+ msgid "Suffix"
253
+ msgstr "Takaliite"
254
+
255
+ #: includes/class-wcpdf-settings.php:427
256
+ msgid "Padding"
257
+ msgstr "Padding"
258
+
259
+ #: includes/class-wcpdf-settings.php:429
260
+ msgid "enter the number of digits here - enter \"6\" to display 42 as 000042"
261
+ msgstr "syötä lukujen määrä tähän - syötä 6 näyttääksesi 42 seuraavasti 000042"
262
+
263
+ #: includes/class-wcpdf-settings.php:432
264
+ msgid ""
265
+ "note: if you have already created a custom invoice number format with a "
266
+ "filter, the above settings will be ignored"
267
+ msgstr ""
268
+ "huomio: jos olet jo luonut räätälöidyn laskun numeron muodon filtterillä, "
269
+ "yllä olevat asetukset ohitetaan"
270
+
271
+ #: includes/class-wcpdf-settings.php:440
272
+ msgid "Date to display on invoice"
273
+ msgstr "Laskulla näytettävä päivämäärä"
274
+
275
+ #: includes/class-wcpdf-settings.php:448
276
+ msgid "Order date"
277
+ msgstr "Tilauksen päiväys"
278
+
279
+ #: includes/class-wcpdf-settings.php:449
280
+ msgid "Invoice date"
281
+ msgstr "Laskun päiväys"
282
+
283
+ #: includes/class-wcpdf-settings.php:457
284
+ msgid "Extra template fields"
285
+ msgstr "Lisäkentät"
286
+
287
+ #: includes/class-wcpdf-settings.php:464
288
+ msgid "Extra field 1"
289
+ msgstr "Lisäkenttä 1"
290
+
291
+ #: includes/class-wcpdf-settings.php:473
292
+ msgid "This is footer column 1 in the <i>Modern (Premium)</i> template"
293
+ msgstr "Tämä on alapalkin sarake 1 <i>Modern (Premium)</i> -sivupohjassa."
294
+
295
+ #: includes/class-wcpdf-settings.php:479
296
+ msgid "Extra field 2"
297
+ msgstr "Lisäkenttä 2"
298
+
299
+ #: includes/class-wcpdf-settings.php:488
300
+ msgid "This is footer column 2 in the <i>Modern (Premium)</i> template"
301
+ msgstr "Tämä on alapalkin sarake 2 <i>Modern (Premium)</i> -sivupohjassa."
302
+
303
+ #: includes/class-wcpdf-settings.php:494
304
+ msgid "Extra field 3"
305
+ msgstr "Lisäkenttä 3"
306
+
307
+ #: includes/class-wcpdf-settings.php:503
308
+ msgid "This is footer column 3 in the <i>Modern (Premium)</i> template"
309
+ msgstr "Tämä on alapalkin sarake 3 <i>Modern (Premium)</i> -sivupohjassa."
310
+
311
+ #: includes/class-wcpdf-settings.php:760
312
+ msgid "Image resolution"
313
+ msgstr "Kuvan resoluutio"
314
+
315
+ #: includes/class-wcpdf-settings.php:871
316
+ msgid ""
317
+ "These are used for the (optional) footer columns in the <em>Modern "
318
+ "(Premium)</em> template, but can also be used for other elements in your "
319
+ "custom template"
320
+ msgstr ""
321
+ "Nämä asetukset koskevat alapalkin kolumneja <em>Modern (Premium)</em> -"
322
+ "sivupohjassa, mutta niitä voidaan myös käyttää muissa elementeissä omissa "
323
+ "sivupohjissasi."
324
+
325
+ #: includes/class-wcpdf-writepanels.php:102
326
+ msgid "Invoice Number"
327
+ msgstr "Laskun numero"
328
+
329
+ #: includes/class-wcpdf-writepanels.php:139
330
+ msgid "Download invoice (PDF)"
331
+ msgstr "Lataa lasku (PDF)"
332
+
333
+ #: includes/class-wcpdf-writepanels.php:150
334
+ msgid "Create PDF"
335
+ msgstr "Luo PDF"
336
+
337
+ #: includes/class-wcpdf-writepanels.php:160
338
+ msgid "PDF invoice"
339
+ msgstr "PDF-laskut"
340
+
341
+ #: includes/class-wcpdf-writepanels.php:161
342
+ msgid "PDF Packing Slip"
343
+ msgstr "PDF-lähetyslista"
344
+
345
+ #: includes/class-wcpdf-writepanels.php:178
346
+ #: includes/class-wcpdf-writepanels.php:179
347
+ msgid "PDF Packing Slips"
348
+ msgstr "PDF-lähetyslistat"
349
+
350
+ #: includes/class-wcpdf-writepanels.php:192
351
+ msgid "PDF Invoice Number (unformatted!)"
352
+ msgstr "PDF laskunnumero (ei muotoiltu!)"
353
+
354
+ #: includes/class-wcpdf-writepanels.php:195
355
+ #: templates/pdf/Simple/invoice.php:37
356
+ msgid "Invoice Date:"
357
+ msgstr "Laskun Päiväys:"
358
+
359
+ #: includes/class-wcpdf-writepanels.php:196
360
+ msgid "h"
361
+ msgstr "t"
362
+
363
+ #: includes/class-wcpdf-writepanels.php:196
364
+ msgid "m"
365
+ msgstr "m"
366
+
367
+ #: templates/pdf/Simple/html-document-wrapper.php:6
368
+ #: templates/pdf/Simple/invoice.php:9 templates/pdf/Simple/invoice.php:21
369
+ msgid "Invoice"
370
+ msgstr "Lasku"
371
+
372
+ #: templates/pdf/Simple/html-document-wrapper.php:6
373
+ #: templates/pdf/Simple/packing-slip.php:9
374
+ #: templates/pdf/Simple/packing-slip.php:21
375
+ msgid "Packing Slip"
376
+ msgstr "Lähetyslista"
377
+
378
+ #: templates/pdf/Simple/invoice.php:40
379
+ #: templates/pdf/Simple/packing-slip.php:30
380
+ msgid "Order Date:"
381
+ msgstr "Tilauksen päiväys:"
382
+
383
+ #: templates/pdf/Simple/invoice.php:46
384
+ msgid "Invoice Number:"
385
+ msgstr "Laskun numero:"
386
+
387
+ #: templates/pdf/Simple/invoice.php:49
388
+ #: templates/pdf/Simple/packing-slip.php:32
389
+ msgid "Order Number:"
390
+ msgstr "Tilauksen numero:"
391
+
392
+ #: templates/pdf/Simple/invoice.php:56
393
+ msgid "Payment Method:"
394
+ msgstr "Maksutapa:"
395
+
396
+ #: templates/pdf/Simple/invoice.php:69
397
+ #: templates/pdf/Simple/packing-slip.php:45
398
+ msgid "Product"
399
+ msgstr "Tuote"
400
+
401
+ #: templates/pdf/Simple/invoice.php:70
402
+ #: templates/pdf/Simple/packing-slip.php:46
403
+ msgid "Quantity"
404
+ msgstr "Määrä"
405
+
406
+ #: templates/pdf/Simple/invoice.php:71
407
+ msgid "Price"
408
+ msgstr "Hinta"
409
+
410
+ #: templates/pdf/Simple/invoice.php:77
411
+ msgid "Description"
412
+ msgstr "Kuvaus"
413
+
414
+ #: templates/pdf/Simple/invoice.php:80
415
+ msgid "SKU"
416
+ msgstr "Tuotekoodi"
417
+
418
+ #: templates/pdf/Simple/invoice.php:81
419
+ #: templates/pdf/Simple/packing-slip.php:54
420
+ msgid "SKU:"
421
+ msgstr "Tuotekoodi:"
422
+
423
+ #: templates/pdf/Simple/invoice.php:82
424
+ #: templates/pdf/Simple/packing-slip.php:55
425
+ msgid "Weight:"
426
+ msgstr "Paino:"
427
+
428
+ #: templates/pdf/Simple/invoice.php:114
429
+ #: templates/pdf/Simple/packing-slip.php:69
430
+ msgid "Customer Notes"
431
+ msgstr "Asiakkaan huomiot"
432
+
433
+ #: woocommerce-pdf-invoices-packingslips.php:96
434
+ #, php-format
435
+ msgid ""
436
+ "WooCommerce PDF Invoices & Packing Slips requires %sWooCommerce%s to be "
437
+ "installed & activated!"
438
+ msgstr ""
439
+ "WooCommerce PDF Invoices & Packing Slips edellyttää %sWooCommerce%s -"
440
+ "asennusta ja aktivointia!"
441
+
442
+ #: woocommerce-pdf-invoices-packingslips.php:191
443
+ #: woocommerce-pdf-invoices-packingslips.php:227
444
+ msgid "N/A"
445
+ msgstr "-"
446
+
447
+ #: woocommerce-pdf-invoices-packingslips.php:264
448
+ msgid "Payment method"
449
+ msgstr "Maksutapa"
450
+
451
+ #: woocommerce-pdf-invoices-packingslips.php:275
452
+ msgid "Shipping method"
453
+ msgstr "Toimitustapa"
454
+
455
+ #: woocommerce-pdf-invoices-packingslips.php:375
456
+ msgid "Subtotal"
457
+ msgstr "Välisumma"
458
+
459
+ #: woocommerce-pdf-invoices-packingslips.php:397
460
+ msgid "Shipping"
461
+ msgstr "Toimitus"
462
+
463
+ #: woocommerce-pdf-invoices-packingslips.php:431
464
+ msgid "Discount"
465
+ msgstr "Alennus"
466
+
467
+ #: woocommerce-pdf-invoices-packingslips.php:470
468
+ msgid "VAT"
469
+ msgstr "Arvonlisävero"
470
+
471
+ #: woocommerce-pdf-invoices-packingslips.php:507
472
+ msgid "Total ex. VAT"
473
+ msgstr "Yhteensä (ei sis. Alv)"
474
+
475
+ #: woocommerce-pdf-invoices-packingslips.php:510
476
+ msgid "Total"
477
+ msgstr "Yhteensä"
478
+
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: pomegranate
3
  Tags: woocommerce, print, pdf, bulk, packing slips, invoices, delivery notes, invoice, packing slip, export, email
4
  Requires at least: 3.5 and WooCommerce 2.0
5
  Tested up to: 4.0 and WooCommerce 2.2
6
- Stable tag: 1.4.7
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -182,6 +182,9 @@ This usually only happens on batch actions. PDF creation is a memory intensive j
182
 
183
  == Changelog ==
184
 
 
 
 
185
  = 1.4.7 =
186
  * Fix: check if image file exists locally, fallback to url if not (CDN compatibility)
187
  * Fix: make deleting invoice date possible
3
  Tags: woocommerce, print, pdf, bulk, packing slips, invoices, delivery notes, invoice, packing slip, export, email
4
  Requires at least: 3.5 and WooCommerce 2.0
5
  Tested up to: 4.0 and WooCommerce 2.2
6
+ Stable tag: 1.4.8
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
182
 
183
  == Changelog ==
184
 
185
+ = 1.4.8 =
186
+ * Translations: Added Finnish (Thanks Sami Mäkelä/Contrast.fi!)
187
+
188
  = 1.4.7 =
189
  * Fix: check if image file exists locally, fallback to url if not (CDN compatibility)
190
  * Fix: make deleting invoice date possible
woocommerce-pdf-invoices-packingslips.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WooCommerce PDF Invoices & Packing Slips
4
  * Plugin URI: http://www.wpovernight.com
5
  * Description: Create, print & email PDF invoices & packing slips for WooCommerce orders.
6
- * Version: 1.4.7
7
  * Author: Ewout Fernhout
8
  * Author URI: http://www.wpovernight.com
9
  * License: GPLv2 or later
@@ -19,6 +19,7 @@ if ( !class_exists( 'WooCommerce_PDF_Invoices' ) ) {
19
  public static $plugin_url;
20
  public static $plugin_path;
21
  public static $plugin_basename;
 
22
 
23
  public $writepanels;
24
  public $settings;
@@ -32,6 +33,7 @@ if ( !class_exists( 'WooCommerce_PDF_Invoices' ) ) {
32
  self::$plugin_basename = plugin_basename(__FILE__);
33
  self::$plugin_url = plugin_dir_url(self::$plugin_basename);
34
  self::$plugin_path = trailingslashit(dirname(__FILE__));
 
35
 
36
  // load the localisation & classes
37
  add_action( 'plugins_loaded', array( $this, 'translations' ) ); // or use init?
3
  * Plugin Name: WooCommerce PDF Invoices & Packing Slips
4
  * Plugin URI: http://www.wpovernight.com
5
  * Description: Create, print & email PDF invoices & packing slips for WooCommerce orders.
6
+ * Version: 1.4.8
7
  * Author: Ewout Fernhout
8
  * Author URI: http://www.wpovernight.com
9
  * License: GPLv2 or later
19
  public static $plugin_url;
20
  public static $plugin_path;
21
  public static $plugin_basename;
22
+ public static $version;
23
 
24
  public $writepanels;
25
  public $settings;
33
  self::$plugin_basename = plugin_basename(__FILE__);
34
  self::$plugin_url = plugin_dir_url(self::$plugin_basename);
35
  self::$plugin_path = trailingslashit(dirname(__FILE__));
36
+ self::$version = '1.4.8';
37
 
38
  // load the localisation & classes
39
  add_action( 'plugins_loaded', array( $this, 'translations' ) ); // or use init?