Beskrivning
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:
- Arabiska
- Bulgariska
- Bengali
- Tjeckiska
- Danska
- Tyska
- Grekiska
- Engelska
- Spanska
- Finska
- Franska
- Gujarati
- Hebreiska
- Hindi
- Ungerska
- Italienska
- Japanska
- Koreanska
- Latvian
- Malayalam
- Norska bokmål
- Nepali
- Nederländska
- Polska
- Portugisiska
- Rumänska
- Ryska
- Sinhala
- Slovakian
- Slovenska
- Serbiska
- Svenska
- Thai
- Turkiska
- Ukrainska
- Urdu
- Vietnamesiska
- Förenklad kinesiska
- 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
Skärmdumpar
Installation
- Upload the simple-slug-translate directory to the plugins directory.
- Activate the plugin through the ’Plugins’ menu in WordPress.
- ”Dashboard”->”Settings”->”Simple Slug Translate”
- ”API Settings”: Input your own ”API key”.
- ”Translation Settings”: Choose your ”Source language”.
- ”Permission Settings”: Choose enable post types.
- 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:
Vanliga frågor
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** * 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; } ); -
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** * Customize translated post statuses. */ add_filter( 'simple_slug_translate_post_status', function( $statuses ) { // Specify post statuses $statuses = [ 'draft', 'publish', ]; return $statuses; } );
Recensioner
Bidragsgivare och utvecklare
”Simple Slug Translate” är programvara med öppen källkod. Följande personer har bidragit till detta tillägg.
Bidragande personer”Simple Slug Translate” har översatts till 3 språk. Tack till översättarna för deras bidrag.
Översätt ”Simple Slug Translate” till ditt språk.
Intresserad av programutveckling?
Läs programkoden, kika på SVN-filförvaret eller prenumerera på utvecklarloggen via RSS.
Ändringslogg
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