Changeset 2499947
- Timestamp:
- 03/20/2021 06:52:45 AM (5 years ago)
- Location:
- simple-slug-translate
- Files:
-
- 2 added
- 2 deleted
- 4 edited
- 1 copied
-
tags/2.7.0 (copied) (copied from simple-slug-translate/trunk)
-
tags/2.7.0/README.md (deleted)
-
tags/2.7.0/readme.txt (modified) (6 diffs)
-
tags/2.7.0/simple-slug-translate.php (modified) (8 diffs)
-
tags/2.7.0/uninstall.php (added)
-
trunk/README.md (deleted)
-
trunk/readme.txt (modified) (6 diffs)
-
trunk/simple-slug-translate.php (modified) (8 diffs)
-
trunk/uninstall.php (added)
Legend:
- Unmodified
- Added
- Removed
-
simple-slug-translate/tags/2.7.0/readme.txt
r2363087 r2499947 4 4 Tags: slugs, permalink, translate, translation 5 5 Requires at least: 4.3 6 Tested up to: 5. 57 Stable tag: 2. 6.26 Tested up to: 5.7 7 Stable tag: 2.7.0 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 20 20 21 21 * Arabic 22 * Bulgarian 23 * Bengali 22 24 * Czech 23 25 * Danish 24 * Dutch25 26 * German 26 27 * Greek … … 29 30 * Finnish 30 31 * French 32 * Gujarati 31 33 * Hebrew 32 34 * Hindi … … 35 37 * Japanese 36 38 * Korean 39 * Latvian 40 * Malayalam 37 41 * Norwegian Bokmal 42 * Nepali 43 * Dutch 38 44 * Polish 39 45 * Portuguese 46 * Romanian 40 47 * Russian 48 * Sinhala 49 * Slovakian 50 * Slovenian 51 * Serbian 41 52 * Swedish 53 * Thai 42 54 * Turkish 55 * Ukrainian 56 * Urdu 57 * Vietnamese 43 58 * Simplified Chinese 44 59 * Traditional Chinese … … 95 110 == Changelog == 96 111 112 = 2.7.0 = 113 * Add supported languages 114 * Add uninstalling process 115 * Removed endpoint default value 116 97 117 = 2.6.2 = 98 118 * Fixed bug … … 121 141 122 142 = 2.1.0 = 123 * Support Gutenberg 143 * Support Gutenberg 124 144 * Add post type settings 125 145 * Fixed some bugs -
simple-slug-translate/tags/2.7.0/simple-slug-translate.php
r2209424 r2499947 4 4 * Plugin URI: https://github.com/ko31/simple-slug-translate 5 5 * Description: Simple Slug Translate can translate the post, page, category and taxonomy slugs to English automatically. 6 * Version: 2. 6.26 * Version: 2.7.0 7 7 * Author: Ko Takagi 8 8 * Author URI: https://go-sign.info … … 220 220 public function translate( $text ) { 221 221 if ( empty( $this->options['apikey'] ) || 222 empty( $this->options['endpoint'] ) || 222 223 empty( $this->options['source'] ) ) { 223 224 return array( 224 'code' => ' ',225 'code' => '0', 225 226 'text' => $text, 226 227 ); … … 228 229 $auth = base64_encode( 'apikey:' . $this->options['apikey'] ); 229 230 230 $location_endpoint = ( $this->options['endpoint'] ) ?: $this->get_default_endpoint(); 231 $endpoint = $location_endpoint . '/v3/translate?version=2018-05-01'; 231 $endpoint = $this->options['endpoint'] . '/v3/translate?version=2018-05-01'; 232 232 233 233 $response = wp_remote_post( $endpoint, … … 410 410 ?> 411 411 <input name="<?php echo $this->option_name; ?>[endpoint]" type="text" id="endpoint" value="<?php echo $endpoint; ?>" 412 placeholder=" https://gateway.watsonplatform.net/language-translator/api" class="regular-text">412 placeholder="" class="regular-text"> 413 413 <?php 414 414 } … … 511 511 return array( 512 512 'ar' => 'ar - Arabic', 513 'bg' => 'bg - Bulgarian', 514 'bn' => 'bn - Bengali', 513 515 'cs' => 'cs - Czech', 514 516 'da' => 'da - Danish', … … 519 521 'fi' => 'fi - Finnish', 520 522 'fr' => 'fr - French', 523 'gu' => 'gu - Gujarati', 521 524 'he' => 'he - Hebrew', 522 525 'hi' => 'hi - Hindi', … … 525 528 'ja' => 'ja - Japanese', 526 529 'ko' => 'ko - Korean', 530 'lv' => 'lv - Latvian', 531 'ml' => 'ml - Malayalam', 527 532 'nb' => 'nb - Norwegian Bokmal', 533 'ne' => 'ne - Nepali', 528 534 'nl' => 'nl - Dutch', 529 535 'pl' => 'pl - Polish', 530 536 'pt' => 'pt - Portuguese', 537 'ro' => 'ro - Romanian', 531 538 'ru' => 'ru - Russian', 539 'si' => 'si - Sinhala', 540 'sk' => 'sk - Slovakian', 541 'sl' => 'sl - Slovenian', 542 'sr' => 'sr - Serbian', 532 543 'sv' => 'sv - Swedish', 544 'th' => 'th - Thai', 533 545 'tr' => 'tr - Turkish', 546 'uk' => 'uk - Ukrainian', 547 'ur' => 'ur - Urdu', 548 'vi' => 'vi - Vietnamese', 534 549 'zh' => 'zh - Simplified Chinese', 535 550 'zh-TW' => 'zh-TW - Traditional Chinese', … … 537 552 } 538 553 539 public function get_default_endpoint() {540 return 'https://gateway.watsonplatform.net/language-translator/api';541 }542 543 554 public function mbfunctions_exist() { 544 555 return ( function_exists( 'mb_strlen' ) ) ? true : false; -
simple-slug-translate/trunk/readme.txt
r2363087 r2499947 4 4 Tags: slugs, permalink, translate, translation 5 5 Requires at least: 4.3 6 Tested up to: 5. 57 Stable tag: 2. 6.26 Tested up to: 5.7 7 Stable tag: 2.7.0 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 20 20 21 21 * Arabic 22 * Bulgarian 23 * Bengali 22 24 * Czech 23 25 * Danish 24 * Dutch25 26 * German 26 27 * Greek … … 29 30 * Finnish 30 31 * French 32 * Gujarati 31 33 * Hebrew 32 34 * Hindi … … 35 37 * Japanese 36 38 * Korean 39 * Latvian 40 * Malayalam 37 41 * Norwegian Bokmal 42 * Nepali 43 * Dutch 38 44 * Polish 39 45 * Portuguese 46 * Romanian 40 47 * Russian 48 * Sinhala 49 * Slovakian 50 * Slovenian 51 * Serbian 41 52 * Swedish 53 * Thai 42 54 * Turkish 55 * Ukrainian 56 * Urdu 57 * Vietnamese 43 58 * Simplified Chinese 44 59 * Traditional Chinese … … 95 110 == Changelog == 96 111 112 = 2.7.0 = 113 * Add supported languages 114 * Add uninstalling process 115 * Removed endpoint default value 116 97 117 = 2.6.2 = 98 118 * Fixed bug … … 121 141 122 142 = 2.1.0 = 123 * Support Gutenberg 143 * Support Gutenberg 124 144 * Add post type settings 125 145 * Fixed some bugs -
simple-slug-translate/trunk/simple-slug-translate.php
r2209424 r2499947 4 4 * Plugin URI: https://github.com/ko31/simple-slug-translate 5 5 * Description: Simple Slug Translate can translate the post, page, category and taxonomy slugs to English automatically. 6 * Version: 2. 6.26 * Version: 2.7.0 7 7 * Author: Ko Takagi 8 8 * Author URI: https://go-sign.info … … 220 220 public function translate( $text ) { 221 221 if ( empty( $this->options['apikey'] ) || 222 empty( $this->options['endpoint'] ) || 222 223 empty( $this->options['source'] ) ) { 223 224 return array( 224 'code' => ' ',225 'code' => '0', 225 226 'text' => $text, 226 227 ); … … 228 229 $auth = base64_encode( 'apikey:' . $this->options['apikey'] ); 229 230 230 $location_endpoint = ( $this->options['endpoint'] ) ?: $this->get_default_endpoint(); 231 $endpoint = $location_endpoint . '/v3/translate?version=2018-05-01'; 231 $endpoint = $this->options['endpoint'] . '/v3/translate?version=2018-05-01'; 232 232 233 233 $response = wp_remote_post( $endpoint, … … 410 410 ?> 411 411 <input name="<?php echo $this->option_name; ?>[endpoint]" type="text" id="endpoint" value="<?php echo $endpoint; ?>" 412 placeholder=" https://gateway.watsonplatform.net/language-translator/api" class="regular-text">412 placeholder="" class="regular-text"> 413 413 <?php 414 414 } … … 511 511 return array( 512 512 'ar' => 'ar - Arabic', 513 'bg' => 'bg - Bulgarian', 514 'bn' => 'bn - Bengali', 513 515 'cs' => 'cs - Czech', 514 516 'da' => 'da - Danish', … … 519 521 'fi' => 'fi - Finnish', 520 522 'fr' => 'fr - French', 523 'gu' => 'gu - Gujarati', 521 524 'he' => 'he - Hebrew', 522 525 'hi' => 'hi - Hindi', … … 525 528 'ja' => 'ja - Japanese', 526 529 'ko' => 'ko - Korean', 530 'lv' => 'lv - Latvian', 531 'ml' => 'ml - Malayalam', 527 532 'nb' => 'nb - Norwegian Bokmal', 533 'ne' => 'ne - Nepali', 528 534 'nl' => 'nl - Dutch', 529 535 'pl' => 'pl - Polish', 530 536 'pt' => 'pt - Portuguese', 537 'ro' => 'ro - Romanian', 531 538 'ru' => 'ru - Russian', 539 'si' => 'si - Sinhala', 540 'sk' => 'sk - Slovakian', 541 'sl' => 'sl - Slovenian', 542 'sr' => 'sr - Serbian', 532 543 'sv' => 'sv - Swedish', 544 'th' => 'th - Thai', 533 545 'tr' => 'tr - Turkish', 546 'uk' => 'uk - Ukrainian', 547 'ur' => 'ur - Urdu', 548 'vi' => 'vi - Vietnamese', 534 549 'zh' => 'zh - Simplified Chinese', 535 550 'zh-TW' => 'zh-TW - Traditional Chinese', … … 537 552 } 538 553 539 public function get_default_endpoint() {540 return 'https://gateway.watsonplatform.net/language-translator/api';541 }542 543 554 public function mbfunctions_exist() { 544 555 return ( function_exists( 'mb_strlen' ) ) ? true : false;
Note: See TracChangeset
for help on using the changeset viewer.