From 097c4d1da69feedec282c890c2a9b7cb6464b00f Mon Sep 17 00:00:00 2001 From: Tamara Zuk Date: Sat, 11 Apr 2015 05:28:06 -0400 Subject: [PATCH] Prepare version 1.0.0 * general clean up * made the newer GTS src default and reworked the setting * introduced `wc_google_trusted_stores_settings` filter * update POT file * updated Grunt packages --- ...erce-google-trusted-stores-integration.pot | 395 +++++++++--------- ...s-wc-google-trusted-stores-integration.php | 126 +++--- package.json | 20 +- readme.txt | 16 +- ...erce-google-trusted-stores-integration.php | 21 +- 5 files changed, 295 insertions(+), 283 deletions(-) diff --git a/i18n/languages/woocommerce-google-trusted-stores-integration.pot b/i18n/languages/woocommerce-google-trusted-stores-integration.pot index 317989c..584bd1f 100644 --- a/i18n/languages/woocommerce-google-trusted-stores-integration.pot +++ b/i18n/languages/woocommerce-google-trusted-stores-integration.pot @@ -1,8 +1,8 @@ -# Copyright (C) 2014 Enollo +# Copyright (C) 2015 enollo # This file is distributed under the same license as the WooCommerce Google Trusted Stores Integration package. msgid "" msgstr "" -"Project-Id-Version: WooCommerce Google Trusted Stores Integration 0.1.0-2\n" +"Project-Id-Version: WooCommerce Google Trusted Stores Integration 1.0.0\n" "Report-Msgid-Bugs-To: " "https://github.com/skyverge/woocommerce-google-trusted-stores-integration/" "issues\n" @@ -10,7 +10,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"PO-Revision-Date: 2014-MO-DA HO:MI+ZONE\n" +"PO-Revision-Date: 2015-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -82,44 +82,34 @@ msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:94 #: includes/class-wc-google-trusted-stores-integration.php:94 -msgid "Non-US" -msgstr "" - -#: build/includes/class-wc-google-trusted-stores-integration.php:95 -#: includes/class-wc-google-trusted-stores-integration.php:95 -msgid "Use the non-US Google Trusted Stores JavaScript" -msgstr "" - -#: build/includes/class-wc-google-trusted-stores-integration.php:101 -#: includes/class-wc-google-trusted-stores-integration.php:101 msgid "Google Shopping Options" msgstr "" -#: build/includes/class-wc-google-trusted-stores-integration.php:103 -#: includes/class-wc-google-trusted-stores-integration.php:103 +#: build/includes/class-wc-google-trusted-stores-integration.php:96 +#: includes/class-wc-google-trusted-stores-integration.php:96 msgid "" "The following options are recommended if you submit product feeds for " "Google Shopping.
Provide these fields only if you submit feeds for " "Google Shopping." msgstr "" -#: build/includes/class-wc-google-trusted-stores-integration.php:107 -#: includes/class-wc-google-trusted-stores-integration.php:107 +#: build/includes/class-wc-google-trusted-stores-integration.php:100 +#: includes/class-wc-google-trusted-stores-integration.php:100 msgid "Google Shopping" msgstr "" -#: build/includes/class-wc-google-trusted-stores-integration.php:108 -#: includes/class-wc-google-trusted-stores-integration.php:108 +#: build/includes/class-wc-google-trusted-stores-integration.php:101 +#: includes/class-wc-google-trusted-stores-integration.php:101 msgid "Enable Google Shopping" msgstr "" -#: build/includes/class-wc-google-trusted-stores-integration.php:115 -#: includes/class-wc-google-trusted-stores-integration.php:115 +#: build/includes/class-wc-google-trusted-stores-integration.php:108 +#: includes/class-wc-google-trusted-stores-integration.php:108 msgid "Google Shopping Account ID" msgstr "" -#: build/includes/class-wc-google-trusted-stores-integration.php:116 -#: includes/class-wc-google-trusted-stores-integration.php:116 +#: build/includes/class-wc-google-trusted-stores-integration.php:109 +#: includes/class-wc-google-trusted-stores-integration.php:109 msgid "" "Account ID from Google Shopping. This value should match the account ID you " "use to submit your product data feed you submit to Google " @@ -127,702 +117,725 @@ msgid "" "Shopping." msgstr "" -#: build/includes/class-wc-google-trusted-stores-integration.php:123 -#: includes/class-wc-google-trusted-stores-integration.php:123 +#: build/includes/class-wc-google-trusted-stores-integration.php:116 +#: includes/class-wc-google-trusted-stores-integration.php:116 msgid "Google Shopping Account Country" msgstr "" -#: build/includes/class-wc-google-trusted-stores-integration.php:124 -#: includes/class-wc-google-trusted-stores-integration.php:124 +#: build/includes/class-wc-google-trusted-stores-integration.php:117 +#: includes/class-wc-google-trusted-stores-integration.php:117 msgid "" "Account country from Google Shopping. This value should match the account " "country you use to submit your product data feed to Google Shopping." msgstr "" -#: build/includes/class-wc-google-trusted-stores-integration.php:133 -#: includes/class-wc-google-trusted-stores-integration.php:133 +#: build/includes/class-wc-google-trusted-stores-integration.php:126 +#: includes/class-wc-google-trusted-stores-integration.php:126 msgid "Language" msgstr "" -#: build/includes/class-wc-google-trusted-stores-integration.php:134 -#: includes/class-wc-google-trusted-stores-integration.php:134 +#: build/includes/class-wc-google-trusted-stores-integration.php:127 +#: includes/class-wc-google-trusted-stores-integration.php:127 msgid "" "Account language from Google Shopping. This value should match the account " "language you use to submit your product data feed to Google Shopping." msgstr "" +#: build/includes/class-wc-google-trusted-stores-integration.php:136 +#: includes/class-wc-google-trusted-stores-integration.php:136 +msgid "Advanced Options" +msgstr "" + +#: build/includes/class-wc-google-trusted-stores-integration.php:138 +#: includes/class-wc-google-trusted-stores-integration.php:138 +msgid "Use the following settings only if you having issues with validation." +msgstr "" + +#: build/includes/class-wc-google-trusted-stores-integration.php:143 +#: includes/class-wc-google-trusted-stores-integration.php:143 +msgid "Older JS source" +msgstr "" + +#: build/includes/class-wc-google-trusted-stores-integration.php:144 +#: includes/class-wc-google-trusted-stores-integration.php:144 +msgid "" +"Use the older Google Trusted Stores JavaScript. If you're unable to pass " +"Google Trusted Stores validation, try enabling this setting as your account " +"may still be using the older source code." +msgstr "" + +#: build/includes/class-wc-google-trusted-stores-integration.php:313 +#: includes/class-wc-google-trusted-stores-integration.php:313 +msgid "English" +msgstr "" + +#: build/includes/class-wc-google-trusted-stores-integration.php:314 +#: includes/class-wc-google-trusted-stores-integration.php:314 +msgid "Afar" +msgstr "" + +#: build/includes/class-wc-google-trusted-stores-integration.php:315 +#: includes/class-wc-google-trusted-stores-integration.php:315 +msgid "Abkhazian" +msgstr "" + +#: build/includes/class-wc-google-trusted-stores-integration.php:316 +#: includes/class-wc-google-trusted-stores-integration.php:316 +msgid "Afrikaans" +msgstr "" + +#: build/includes/class-wc-google-trusted-stores-integration.php:317 +#: includes/class-wc-google-trusted-stores-integration.php:317 +msgid "Amharic" +msgstr "" + +#: build/includes/class-wc-google-trusted-stores-integration.php:318 +#: includes/class-wc-google-trusted-stores-integration.php:318 +msgid "Arabic" +msgstr "" + #: build/includes/class-wc-google-trusted-stores-integration.php:319 #: includes/class-wc-google-trusted-stores-integration.php:319 -msgid "English" +msgid "Assamese" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:320 #: includes/class-wc-google-trusted-stores-integration.php:320 -msgid "Afar" +msgid "Aymara" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:321 #: includes/class-wc-google-trusted-stores-integration.php:321 -msgid "Abkhazian" +msgid "Azerbaijani" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:322 #: includes/class-wc-google-trusted-stores-integration.php:322 -msgid "Afrikaans" +msgid "Bashkir" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:323 #: includes/class-wc-google-trusted-stores-integration.php:323 -msgid "Amharic" +msgid "Byelorussian" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:324 #: includes/class-wc-google-trusted-stores-integration.php:324 -msgid "Arabic" +msgid "Bulgarian" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:325 #: includes/class-wc-google-trusted-stores-integration.php:325 -msgid "Assamese" +msgid "Bihari" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:326 #: includes/class-wc-google-trusted-stores-integration.php:326 -msgid "Aymara" +msgid "Bislama" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:327 #: includes/class-wc-google-trusted-stores-integration.php:327 -msgid "Azerbaijani" +msgid "Bengali/Bangla" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:328 #: includes/class-wc-google-trusted-stores-integration.php:328 -msgid "Bashkir" +msgid "Tibetan" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:329 #: includes/class-wc-google-trusted-stores-integration.php:329 -msgid "Byelorussian" +msgid "Breton" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:330 #: includes/class-wc-google-trusted-stores-integration.php:330 -msgid "Bulgarian" +msgid "Catalan" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:331 #: includes/class-wc-google-trusted-stores-integration.php:331 -msgid "Bihari" +msgid "Corsican" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:332 #: includes/class-wc-google-trusted-stores-integration.php:332 -msgid "Bislama" +msgid "Czech" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:333 #: includes/class-wc-google-trusted-stores-integration.php:333 -msgid "Bengali/Bangla" +msgid "Welsh" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:334 #: includes/class-wc-google-trusted-stores-integration.php:334 -msgid "Tibetan" +msgid "Danish" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:335 #: includes/class-wc-google-trusted-stores-integration.php:335 -msgid "Breton" +msgid "German" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:336 #: includes/class-wc-google-trusted-stores-integration.php:336 -msgid "Catalan" +msgid "Bhutani" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:337 #: includes/class-wc-google-trusted-stores-integration.php:337 -msgid "Corsican" +msgid "Greek" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:338 #: includes/class-wc-google-trusted-stores-integration.php:338 -msgid "Czech" +msgid "Esperanto" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:339 #: includes/class-wc-google-trusted-stores-integration.php:339 -msgid "Welsh" +msgid "Spanish" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:340 #: includes/class-wc-google-trusted-stores-integration.php:340 -msgid "Danish" +msgid "Estonian" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:341 #: includes/class-wc-google-trusted-stores-integration.php:341 -msgid "German" +msgid "Basque" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:342 #: includes/class-wc-google-trusted-stores-integration.php:342 -msgid "Bhutani" +msgid "Persian" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:343 #: includes/class-wc-google-trusted-stores-integration.php:343 -msgid "Greek" +msgid "Finnish" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:344 #: includes/class-wc-google-trusted-stores-integration.php:344 -msgid "Esperanto" +msgid "Fiji" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:345 #: includes/class-wc-google-trusted-stores-integration.php:345 -msgid "Spanish" +msgid "Faeroese" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:346 #: includes/class-wc-google-trusted-stores-integration.php:346 -msgid "Estonian" +msgid "French" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:347 #: includes/class-wc-google-trusted-stores-integration.php:347 -msgid "Basque" +msgid "Frisian" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:348 #: includes/class-wc-google-trusted-stores-integration.php:348 -msgid "Persian" +msgid "Irish" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:349 #: includes/class-wc-google-trusted-stores-integration.php:349 -msgid "Finnish" +msgid "Scots/Gaelic" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:350 #: includes/class-wc-google-trusted-stores-integration.php:350 -msgid "Fiji" +msgid "Galician" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:351 #: includes/class-wc-google-trusted-stores-integration.php:351 -msgid "Faeroese" +msgid "Guarani" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:352 #: includes/class-wc-google-trusted-stores-integration.php:352 -msgid "French" +msgid "Gujarati" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:353 #: includes/class-wc-google-trusted-stores-integration.php:353 -msgid "Frisian" +msgid "Hausa" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:354 #: includes/class-wc-google-trusted-stores-integration.php:354 -msgid "Irish" +msgid "Hindi" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:355 #: includes/class-wc-google-trusted-stores-integration.php:355 -msgid "Scots/Gaelic" +msgid "Croatian" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:356 #: includes/class-wc-google-trusted-stores-integration.php:356 -msgid "Galician" +msgid "Hungarian" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:357 #: includes/class-wc-google-trusted-stores-integration.php:357 -msgid "Guarani" +msgid "Armenian" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:358 #: includes/class-wc-google-trusted-stores-integration.php:358 -msgid "Gujarati" +msgid "Interlingua" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:359 #: includes/class-wc-google-trusted-stores-integration.php:359 -msgid "Hausa" +msgid "Interlingue" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:360 #: includes/class-wc-google-trusted-stores-integration.php:360 -msgid "Hindi" +msgid "Inupiak" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:361 #: includes/class-wc-google-trusted-stores-integration.php:361 -msgid "Croatian" +msgid "Indonesian" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:362 #: includes/class-wc-google-trusted-stores-integration.php:362 -msgid "Hungarian" +msgid "Icelandic" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:363 #: includes/class-wc-google-trusted-stores-integration.php:363 -msgid "Armenian" +msgid "Italian" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:364 #: includes/class-wc-google-trusted-stores-integration.php:364 -msgid "Interlingua" +msgid "Hebrew" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:365 #: includes/class-wc-google-trusted-stores-integration.php:365 -msgid "Interlingue" +msgid "Japanese" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:366 #: includes/class-wc-google-trusted-stores-integration.php:366 -msgid "Inupiak" +msgid "Yiddish" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:367 #: includes/class-wc-google-trusted-stores-integration.php:367 -msgid "Indonesian" +msgid "Javanese" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:368 #: includes/class-wc-google-trusted-stores-integration.php:368 -msgid "Icelandic" +msgid "Georgian" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:369 #: includes/class-wc-google-trusted-stores-integration.php:369 -msgid "Italian" +msgid "Kazakh" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:370 #: includes/class-wc-google-trusted-stores-integration.php:370 -msgid "Hebrew" +msgid "Greenlandic" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:371 #: includes/class-wc-google-trusted-stores-integration.php:371 -msgid "Japanese" +msgid "Cambodian" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:372 #: includes/class-wc-google-trusted-stores-integration.php:372 -msgid "Yiddish" +msgid "Kannada" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:373 #: includes/class-wc-google-trusted-stores-integration.php:373 -msgid "Javanese" +msgid "Korean" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:374 #: includes/class-wc-google-trusted-stores-integration.php:374 -msgid "Georgian" +msgid "Kashmiri" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:375 #: includes/class-wc-google-trusted-stores-integration.php:375 -msgid "Kazakh" +msgid "Kurdish" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:376 #: includes/class-wc-google-trusted-stores-integration.php:376 -msgid "Greenlandic" +msgid "Kirghiz" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:377 #: includes/class-wc-google-trusted-stores-integration.php:377 -msgid "Cambodian" +msgid "Latin" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:378 #: includes/class-wc-google-trusted-stores-integration.php:378 -msgid "Kannada" +msgid "Lingala" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:379 #: includes/class-wc-google-trusted-stores-integration.php:379 -msgid "Korean" +msgid "Laothian" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:380 #: includes/class-wc-google-trusted-stores-integration.php:380 -msgid "Kashmiri" +msgid "Lithuanian" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:381 #: includes/class-wc-google-trusted-stores-integration.php:381 -msgid "Kurdish" +msgid "Latvian/Lettish" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:382 #: includes/class-wc-google-trusted-stores-integration.php:382 -msgid "Kirghiz" +msgid "Malagasy" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:383 #: includes/class-wc-google-trusted-stores-integration.php:383 -msgid "Latin" +msgid "Maori" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:384 #: includes/class-wc-google-trusted-stores-integration.php:384 -msgid "Lingala" +msgid "Macedonian" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:385 #: includes/class-wc-google-trusted-stores-integration.php:385 -msgid "Laothian" +msgid "Malayalam" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:386 #: includes/class-wc-google-trusted-stores-integration.php:386 -msgid "Lithuanian" +msgid "Mongolian" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:387 #: includes/class-wc-google-trusted-stores-integration.php:387 -msgid "Latvian/Lettish" +msgid "Moldavian" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:388 #: includes/class-wc-google-trusted-stores-integration.php:388 -msgid "Malagasy" +msgid "Marathi" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:389 #: includes/class-wc-google-trusted-stores-integration.php:389 -msgid "Maori" +msgid "Malay" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:390 #: includes/class-wc-google-trusted-stores-integration.php:390 -msgid "Macedonian" +msgid "Maltese" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:391 #: includes/class-wc-google-trusted-stores-integration.php:391 -msgid "Malayalam" +msgid "Burmese" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:392 #: includes/class-wc-google-trusted-stores-integration.php:392 -msgid "Mongolian" +msgid "Nauru" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:393 #: includes/class-wc-google-trusted-stores-integration.php:393 -msgid "Moldavian" +msgid "Nepali" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:394 #: includes/class-wc-google-trusted-stores-integration.php:394 -msgid "Marathi" +msgid "Dutch" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:395 #: includes/class-wc-google-trusted-stores-integration.php:395 -msgid "Malay" +msgid "Norwegian" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:396 #: includes/class-wc-google-trusted-stores-integration.php:396 -msgid "Maltese" +msgid "Occitan" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:397 #: includes/class-wc-google-trusted-stores-integration.php:397 -msgid "Burmese" +msgid "(Afan)/Oromoor/Oriya" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:398 #: includes/class-wc-google-trusted-stores-integration.php:398 -msgid "Nauru" +msgid "Punjabi" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:399 #: includes/class-wc-google-trusted-stores-integration.php:399 -msgid "Nepali" +msgid "Polish" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:400 #: includes/class-wc-google-trusted-stores-integration.php:400 -msgid "Dutch" +msgid "Pashto/Pushto" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:401 #: includes/class-wc-google-trusted-stores-integration.php:401 -msgid "Norwegian" +msgid "Portuguese" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:402 #: includes/class-wc-google-trusted-stores-integration.php:402 -msgid "Occitan" +msgid "Quechua" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:403 #: includes/class-wc-google-trusted-stores-integration.php:403 -msgid "(Afan)/Oromoor/Oriya" +msgid "Rhaeto-Romance" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:404 #: includes/class-wc-google-trusted-stores-integration.php:404 -msgid "Punjabi" +msgid "Kirundi" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:405 #: includes/class-wc-google-trusted-stores-integration.php:405 -msgid "Polish" +msgid "Romanian" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:406 #: includes/class-wc-google-trusted-stores-integration.php:406 -msgid "Pashto/Pushto" +msgid "Russian" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:407 #: includes/class-wc-google-trusted-stores-integration.php:407 -msgid "Portuguese" +msgid "Kinyarwanda" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:408 #: includes/class-wc-google-trusted-stores-integration.php:408 -msgid "Quechua" +msgid "Sanskrit" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:409 #: includes/class-wc-google-trusted-stores-integration.php:409 -msgid "Rhaeto-Romance" +msgid "Sindhi" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:410 #: includes/class-wc-google-trusted-stores-integration.php:410 -msgid "Kirundi" +msgid "Sangro" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:411 #: includes/class-wc-google-trusted-stores-integration.php:411 -msgid "Romanian" +msgid "Serbo-Croatian" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:412 #: includes/class-wc-google-trusted-stores-integration.php:412 -msgid "Russian" +msgid "Singhalese" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:413 #: includes/class-wc-google-trusted-stores-integration.php:413 -msgid "Kinyarwanda" +msgid "Slovak" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:414 #: includes/class-wc-google-trusted-stores-integration.php:414 -msgid "Sanskrit" +msgid "Slovenian" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:415 #: includes/class-wc-google-trusted-stores-integration.php:415 -msgid "Sindhi" +msgid "Samoan" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:416 #: includes/class-wc-google-trusted-stores-integration.php:416 -msgid "Sangro" +msgid "Shona" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:417 #: includes/class-wc-google-trusted-stores-integration.php:417 -msgid "Serbo-Croatian" +msgid "Somali" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:418 #: includes/class-wc-google-trusted-stores-integration.php:418 -msgid "Singhalese" +msgid "Albanian" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:419 #: includes/class-wc-google-trusted-stores-integration.php:419 -msgid "Slovak" +msgid "Serbian" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:420 #: includes/class-wc-google-trusted-stores-integration.php:420 -msgid "Slovenian" +msgid "Siswati" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:421 #: includes/class-wc-google-trusted-stores-integration.php:421 -msgid "Samoan" +msgid "Sesotho" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:422 #: includes/class-wc-google-trusted-stores-integration.php:422 -msgid "Shona" +msgid "Sundanese" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:423 #: includes/class-wc-google-trusted-stores-integration.php:423 -msgid "Somali" +msgid "Swedish" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:424 #: includes/class-wc-google-trusted-stores-integration.php:424 -msgid "Albanian" +msgid "Swahili" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:425 #: includes/class-wc-google-trusted-stores-integration.php:425 -msgid "Serbian" +msgid "Tamil" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:426 #: includes/class-wc-google-trusted-stores-integration.php:426 -msgid "Siswati" +msgid "Tegulu" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:427 #: includes/class-wc-google-trusted-stores-integration.php:427 -msgid "Sesotho" +msgid "Tajik" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:428 #: includes/class-wc-google-trusted-stores-integration.php:428 -msgid "Sundanese" +msgid "Thai" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:429 #: includes/class-wc-google-trusted-stores-integration.php:429 -msgid "Swedish" +msgid "Tigrinya" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:430 #: includes/class-wc-google-trusted-stores-integration.php:430 -msgid "Swahili" +msgid "Turkmen" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:431 #: includes/class-wc-google-trusted-stores-integration.php:431 -msgid "Tamil" +msgid "Tagalog" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:432 #: includes/class-wc-google-trusted-stores-integration.php:432 -msgid "Tegulu" +msgid "Setswana" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:433 #: includes/class-wc-google-trusted-stores-integration.php:433 -msgid "Tajik" +msgid "Tonga" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:434 #: includes/class-wc-google-trusted-stores-integration.php:434 -msgid "Thai" +msgid "Turkish" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:435 #: includes/class-wc-google-trusted-stores-integration.php:435 -msgid "Tigrinya" +msgid "Tsonga" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:436 #: includes/class-wc-google-trusted-stores-integration.php:436 -msgid "Turkmen" +msgid "Tatar" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:437 #: includes/class-wc-google-trusted-stores-integration.php:437 -msgid "Tagalog" +msgid "Twi" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:438 #: includes/class-wc-google-trusted-stores-integration.php:438 -msgid "Setswana" +msgid "Ukrainian" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:439 #: includes/class-wc-google-trusted-stores-integration.php:439 -msgid "Tonga" +msgid "Urdu" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:440 #: includes/class-wc-google-trusted-stores-integration.php:440 -msgid "Turkish" +msgid "Uzbek" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:441 #: includes/class-wc-google-trusted-stores-integration.php:441 -msgid "Tsonga" +msgid "Vietnamese" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:442 #: includes/class-wc-google-trusted-stores-integration.php:442 -msgid "Tatar" +msgid "Volapuk" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:443 #: includes/class-wc-google-trusted-stores-integration.php:443 -msgid "Twi" +msgid "Wolof" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:444 #: includes/class-wc-google-trusted-stores-integration.php:444 -msgid "Ukrainian" +msgid "Xhosa" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:445 #: includes/class-wc-google-trusted-stores-integration.php:445 -msgid "Urdu" +msgid "Yoruba" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:446 #: includes/class-wc-google-trusted-stores-integration.php:446 -msgid "Uzbek" +msgid "Chinese" msgstr "" #: build/includes/class-wc-google-trusted-stores-integration.php:447 #: includes/class-wc-google-trusted-stores-integration.php:447 -msgid "Vietnamese" -msgstr "" - -#: build/includes/class-wc-google-trusted-stores-integration.php:448 -#: includes/class-wc-google-trusted-stores-integration.php:448 -msgid "Volapuk" -msgstr "" - -#: build/includes/class-wc-google-trusted-stores-integration.php:449 -#: includes/class-wc-google-trusted-stores-integration.php:449 -msgid "Wolof" -msgstr "" - -#: build/includes/class-wc-google-trusted-stores-integration.php:450 -#: includes/class-wc-google-trusted-stores-integration.php:450 -msgid "Xhosa" -msgstr "" - -#: build/includes/class-wc-google-trusted-stores-integration.php:451 -#: includes/class-wc-google-trusted-stores-integration.php:451 -msgid "Yoruba" -msgstr "" - -#: build/includes/class-wc-google-trusted-stores-integration.php:452 -#: includes/class-wc-google-trusted-stores-integration.php:452 -msgid "Chinese" -msgstr "" - -#: build/includes/class-wc-google-trusted-stores-integration.php:453 -#: includes/class-wc-google-trusted-stores-integration.php:453 msgid "Zulu" msgstr "" @@ -835,9 +848,9 @@ msgid "Integrates Google Trusted Stores with your WooCommerce store" msgstr "" #. Author of the plugin/theme -msgid "Enollo" +msgid "enollo" msgstr "" #. Author URI of the plugin/theme -msgid "http://www.enollo.com" +msgid "https://enollo.com" msgstr "" \ No newline at end of file diff --git a/includes/class-wc-google-trusted-stores-integration.php b/includes/class-wc-google-trusted-stores-integration.php index c95d503..0bda490 100644 --- a/includes/class-wc-google-trusted-stores-integration.php +++ b/includes/class-wc-google-trusted-stores-integration.php @@ -1,10 +1,11 @@ id = 'google_trusted_stores'; $this->method_title = __( 'Google Trusted Stores', 'wc-google-trusted-stores' ); $this->method_description = __( 'Google Trusted Stores is a free service offered by Google that adds a badge to your online store allowing you to reach new customers and improve sales.', 'wc-google-trusted-stores' ); @@ -25,37 +27,37 @@ public function __construct() { $this->init_form_fields(); $this->init_settings(); - // Define user set variables - $this->gts_id = $this->get_option( 'gts_id' ); - $this->gts_locale = $this->get_option( 'gts_locale' ); - $this->gts_ship_time = $this->get_option( 'gts_ship_time' ); - $this->gts_delivery_time = $this->get_option( 'gts_delivery_time' ); - $this->gts_non_us = $this->get_option( 'gts_non_us' ); - $this->gts_google_shopping_account_enable = $this->get_option( 'gts_google_shopping_account_enable' ); - $this->gts_google_shopping_account_id = $this->get_option( 'gts_google_shopping_account_id' ); - $this->gts_google_shopping_account_country = $this->get_option( 'gts_google_shopping_account_country' ); - $this->gts_google_shopping_account_language = $this->get_option( 'gts_google_shopping_account_language' ); - + foreach ( $this->form_fields as $key => $_ ) { + $this->$key = $this->get_option( $key ); + } - // Actions + // Save the settings add_action( 'woocommerce_update_options_integration_google_trusted_stores', array( $this, 'process_admin_options' ) ); - // Google Trusted Stores Badge Code - add_action( 'wp_footer', array( $this, 'badge_code' ) ); + // output the Google Trusted Stores badge code + add_action( 'wp_footer', array( $this, 'output_badge_code' ) ); - // Order Confirmation Module Code - add_action( 'woocommerce_thankyou', array( $this, 'confirmation_code' ) ); + // output the order confirmation module code + add_action( 'woocommerce_thankyou', array( $this, 'output_confirmation_code' ) ); } /** * Initialise Settings Form Fields + * + * @since 1.0.0 */ public function init_form_fields() { - $this->form_fields = array( + /** + * Filter the settings array + * + * @since 1.0.0 + * @param array associative array of the integration's settings + */ + $this->form_fields = apply_filters( 'wc_google_trusted_stores_settings', array( - 'title_general' => array ( + 'title_general' => array( 'title' => __( 'General Options', 'wc-google-trusted-stores' ), 'type' => 'title', 'description' => __( 'The following options are required to show the Google Trusted Stores Badge', 'wc-google-trusted-stores' ), @@ -90,17 +92,10 @@ public function init_form_fields() { 'default' => '7', ), - 'gts_non_us' => array( - 'title' => __( 'Non-US', 'wc-google-trusted-stores' ), - 'label' => __( 'Use the non-US Google Trusted Stores JavaScript', 'wc-google-trusted-stores' ), - 'type' => 'checkbox', - 'default' => 'no', - ), - - 'title_google_shopping' => array ( + 'title_google_shopping' => array( 'title' => __( 'Google Shopping Options', 'wc-google-trusted-stores' ), 'type' => 'title', - 'description' => __( 'The following options are recommended if you submit product feeds for Google Shopping.
Provide these fields only if you submit feeds for Google Shopping.', 'wc-google-trusted-stores' ), + 'description' => __( 'The following options are recommended if you submit product feeds for Google Shopping.
Provide these fields only if you submit feeds for Google Shopping.', 'wc-google-trusted-stores' ), ), 'gts_google_shopping_account_enable' => array( @@ -139,54 +134,45 @@ public function init_form_fields() { 'show_if_checked' => 'yes', ), - 'gts_html' => array( - 'type' => 'gts', - ) - - ); - - } // End init_form_fields() - - - public function generate_gts_html() { - ob_start(); - ?> - - array( + 'title' => __( 'Advanced Options', 'wc-google-trusted-stores' ), + 'type' => 'title', + 'description' => __( 'Use the following settings only if you having issues with validation.', 'wc-google-trusted-stores' ), + 'id' => 'wc_gts_advanced_options', + ), + + 'gts_old_src' => array( + 'title' => __( 'Older JS source', 'wc-google-trusted-stores' ), + 'label' => __( "Use the older Google Trusted Stores JavaScript. If you're unable to pass Google Trusted Stores validation, try enabling this setting as your account may still be using the older source code.", 'wc-google-trusted-stores' ), + 'type' => 'checkbox', + 'default' => 'no', + ), + + ) ); } /** * Google Trusted Stores badge code + * + * @since 1.0.0 */ - public function badge_code() { + public function output_badge_code() { if ( ! $this->gts_id ) { return; } - $code = 'var gts = gts || []; - gts.push(["id", "' . esc_js( $this->gts_id ) . '"]); - gts.push(["locale", "' . esc_js( $this->gts_locale ) . '"]);'; + $code = ' + var gts = gts || []; + gts.push(["id", "' . esc_js( $this->gts_id ) . '"]); + gts.push(["locale", "' . esc_js( $this->gts_locale ) . '"]); + '; if ( is_product() ) { global $product; + $code .= 'gts.push(["google_base_offer_id", "' . esc_js( $product->id ) . '"]);'; } @@ -199,7 +185,11 @@ public function badge_code() { '; } - $src = 'yes' === $this->gts_non_us ? 'www.googlecommerce.com/trustedstores/api/js' : 'www.googlecommerce.com/trustedstores/gtmp_compiled.js'; + $src = 'www.googlecommerce.com/trustedstores/api/js'; + + if ( 'yes' === $this->gts_old_src ) { + $src = 'www.googlecommerce.com/trustedstores/gtmp_compiled.js'; + } $code .= ' (function() { @@ -220,9 +210,10 @@ public function badge_code() { /** * Google Trusted Stores confirmation code * + * @since 1.0.0 * @param mixed $order_id */ - public function confirmation_code( $order_id ) { + public function output_confirmation_code( $order_id ) { if ( 1 === get_post_meta( $order_id, '_wc_gts_tracked', true ) ) { return; @@ -309,12 +300,19 @@ public function confirmation_code( $order_id ) { /** - * Get languages array + * Helper method which returns the languages supported by Google Trusted Stores * + * @since 1.0.0 * @return array associative array of languages */ public function get_languages() { + /** + * Filter the languages array + * + * @since 1.0.0 + * @param array associative array of languages + */ return apply_filters( 'wc_google_trusted_stores_languages', array( 'en' => __( 'English', 'wc-google-trusted-stores' ), 'aa' => __( 'Afar', 'wc-google-trusted-stores' ), diff --git a/package.json b/package.json index 2417190..4910d74 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "woocommerce-google-trusted-stores-integration", - "version": "0.1.0-2", + "version": "1.0.0", "author": "Enollo Team", "homepage": "http://enollo.com", "repository": { @@ -15,15 +15,15 @@ }, "devDependencies": { "grunt": "~0.4.5", - "grunt-contrib-clean": "~0.5.0", - "grunt-contrib-copy": "~0.5.0", - "grunt-newer": "~0.7.0", - "grunt-notify": "~0.3.0", + "grunt-contrib-clean": "~0.6.0", + "grunt-contrib-copy": "~0.8.0", + "grunt-newer": "~1.1.0", + "grunt-notify": "~0.4.1", "grunt-wp-deploy": "~1.0.3", - "grunt-wp-i18n": "~0.4.5", - "load-grunt-tasks": "~0.6.0", - "time-grunt": "~0.4.0", - "underscore": "~1.6.0", - "underscore.string": "~2.3.3" + "grunt-wp-i18n": "~0.5.1", + "load-grunt-tasks": "~3.1.0", + "time-grunt": "~1.1.0", + "underscore": "~1.8.3", + "underscore.string": "~3.0.3" } } diff --git a/readme.txt b/readme.txt index 3758932..ef81b21 100644 --- a/readme.txt +++ b/readme.txt @@ -1,9 +1,9 @@ === WooCommerce Google Trusted Stores Integration === -Contributors: tamarazuk, enollo +Contributors: enollo, woothemes, tamarazuk, ABDpromotions Tags: woocommerce, google trusted stores Requires at least: 3.8 Tested up to: 3.9 -Stable tag: 0.1.0-2 +Stable tag: 1.0.0 License: GPLv3 License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -30,15 +30,5 @@ This plugin will add the settings to the Integration tab, to be found in the Woo == Changelog == -= 0.1.0-2 - 2014.nn.nn = - * Fix - Add the estimated delivery date - * Fix - Set locale in the fromat expected by Google Trusted Stores - * Tweak - Allow use of non-US Google Trusted Stores JavaScript - -= 0.1.0 - 2014.10.05 = - * Tweak - general cleanup - * Fix - Use `$order->get_order_number() for `gts-o-id` - props to @WOWstyleshop - * Localization - localized and added filter on languages - -= 0.0.1 - 2014.05.08 = += 1.0.0 - 2015.04.11 = * Initial release diff --git a/woocommerce-google-trusted-stores-integration.php b/woocommerce-google-trusted-stores-integration.php index 20c8cca..0d5a1ff 100644 --- a/woocommerce-google-trusted-stores-integration.php +++ b/woocommerce-google-trusted-stores-integration.php @@ -1,15 +1,20 @@