이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

Simple Slug Translate

설명

Simple Slug Translate can translate the post, page, category and taxonomy slugs to English automatically.

It can make the permalink looks more better, and also may be good for SEO.

The translation engine is powered by Watson Language Translator. Thanks to that support the following languages:

  • Arabic
  • Bulgarian
  • Bengali
  • Czech
  • Danish
  • German
  • Greek
  • English
  • Spanish
  • Finnish
  • French
  • Gujarati
  • Hebrew
  • Hindi
  • Hungarian
  • Italian
  • Japanese
  • Korean
  • Latvian
  • Malayalam
  • Norwegian Bokmal
  • Nepali
  • Dutch
  • Polish
  • Portuguese
  • Romanian
  • Russian
  • Sinhala
  • Slovakian
  • Slovenian
  • Serbian
  • Swedish
  • Thai
  • Turkish
  • Ukrainian
  • Urdu
  • Vietnamese
  • Simplified Chinese
  • Traditional Chinese

In order to use the service, you can apply for an IBM Cloud Lite account and get your own API key of Watson Language Translator. For free plan, you can translate up to 1,000,000 characters per month.

Related Links

스크린샷

설치

  1. Upload the simple-slug-translate directory to the plugins directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. “Dashboard”->”Settings”->”Simple Slug Translate”
  4. “API Settings”: Input your own “API key”.
  5. “Translation Settings”: Choose your “Source language”.
  6. “Permission Settings”: Choose enable post types.
  7. When you will update the post, then the post slug will be automatically translated into English. The page, category and taxonomy as well.

Learn more:

FAQ

What do I need to use this plugin?

You need to apply for an IBM Cloud Lite account and get your own API key of Watson Language Translator.

This plugin uses the API key to query the translation engine. The API key are not used except for query!

If the slug is already registered, will the translated slug be overwritten?

Whether the slug is overwritten can be switched with the following settings.

  • “Dashboard”->”Settings”->”Simple Slug Translate”->”Overwrite”

Can I customize the translated slug?

You can customize the slug by hooking it to the simple_slug_translate_results filter.


/**
* Customize the translated slug.
*/
add_filter( 'simple_slug_translate_results', function( $results ) {
// 200 – OK
if ( 200 === $results['code'] ) {
// Customize slug
$results['text'] = sprintf( 'translated-%s', $results['text'] );
}
return $results;
} );

view raw

functions.php

hosted with ❤ by GitHub

Is it possible to translate only when the posting status is fixed?

You can customize the slug by hooking it to the simple_slug_translate_post_status filter.


/**
* Customize translated post statuses.
*/
add_filter( 'simple_slug_translate_post_status', function( $statuses ) {
// Specify post statuses
$statuses = [
'draft',
'publish',
];
return $statuses;
} );

view raw

functions.php

hosted with ❤ by GitHub

후기

2018년 3월 14일 1 reply
Simple and convenient plugin! The documentation is polite and easy to understand. Ideally, I would like choose a translation API.
모든 4 평가 읽기

기여자 & 개발자

“Simple Slug Translate”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

“Simple Slug Translate”(이)가 3(으)로 번역되었습니다. 기여해 주셔서 번역자님께 감사드립니다.

자국어로 “Simple Slug Translate”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

2.7.3

  • Fixed bug

2.7.2

  • Add taxonomy settings

2.7.1

  • Fixed bug

2.7.0

  • Add supported languages
  • Add uninstalling process
  • Removed endpoint default value

2.6.2

  • Fixed bug

2.6.1

  • Fixed bug

2.6.0

  • Fixed bug
  • Add overwrite settings

2.5.0

  • Add supported languages

2.4.0

  • Add supported languages

2.3.1

  • Fixed bug

2.3.0

  • Support service endpoints by location

2.2.0

  • Add filter hook

2.1.0

  • Support Gutenberg
  • Add post type settings
  • Fixed some bugs

2.0.0

  • Migrate to Language Translator API v3

1.2.2

  • Fixed bug

1.2.1

  • Update text

1.2.0

  • Fixed bugs
  • Add filter hook

1.1.0

  • Add API settings check

1.0.1

  • Add scheduled event

1.0.0

  • Initial Release