Linux 软件免费装
Banner图

Bing Translator

开发者 msopentech
ivycat
bradyvercher
sewmyheadon
kidsguide
更新时间 2014年6月11日 03:02
PHP版本: 3.8 及以上
WordPress版本: 3.9
版权: GPLv2 or later
版权网址: 版权信息

标签

i18n translation translator localization internationalization

下载

详情介绍:

Allow your visitors to translate any page with the simple click of a bookmark. Translation happens in place without leaving the page with this light-weight, cross-browser plugin. Configuration Options Video Overview Using Bing Translator for WordPress https://www.youtube.com/watch?v=CNGu9uAf77k

安装:

You can install this plugin from within WordPress under Plugins > Add New and search for "Bing Translator." If you prefer to manually install the plugin, simply:
  1. Download the plugin from WordPress.org.
  2. Upload the bing-translator folder to the /wp-content/plugins/ directory.
  3. Activate the plugin through the Plugins menu in WordPress.
Video: Installing & Configuring Bing Translator for WordPress https://www.youtube.com/watch?v=XO4WS14ajHc Adding Bing Translator to Web Pages There are three different ways you can add the Bing Translator widget to your site's pages:
  1. Widget - Easiest. Simply drag the Bing Translator Widget to any widget-enabled area in your WordPress theme.
  2. Shortcode - Embed a shortcode into the editor of any post, page, or custom post type.
  3. Template tags - Add a simple PHP function to one of your theme's template files.
Add Bing Translator using WordPress Widget The easiest way to add the Bing Translator to your site is by using a WordPress widget:
  1. Install and activate the Bing Translator plugin.
  2. In the WordPress Admin, go to Appearance > Widgets.
  3. Click and drag the Bing Translator widget from the Available Widgets column into a widget-enabled area within your theme on the right. The widget will open showing the options you can configure.
  4. Now, you can set your title, Translation Settings, Color scheme, and whether you'd like to Allow visitors to suggest translations.
  5. View a page that includes this widget to verify that it's working.
Video: Adding Bing Translator to WordPress using WordPress Widgets https://www.youtube.com/watch?v=LaglCuYUfrU Add Bing Translator using WordPress Shortcodes The Bing Translator plugin also allows you to add the Bing Translator to individual content pages and posts using WordPress shortcodes:
  1. Open the page, post, or custom post type where you wish to embed Bing Translator.
  2. Click in the editor window at the point where you'd like to include the Bing Translator widget.
  3. Click on the Bing button above the WordPress editor. It will open showing two options: Insert Widget and Don't Translate.
  4. Click Insert Widget and the [bing_translator] shortcode will be placed within the content area. Note: this widget displays inline, so you may wish to add a line break before and after to make sure it clears your existing content.
  5. Click Publish or Update to save.
  6. View the page or post to verify that the widget appears as you'd expect.
Video: Adding Bing Translator to WordPress using Shortcodes https://www.youtube.com/watch?v=e6vXrotHH8c Add Bing Translator using Template Tags If you're a theme or plugin developer, you can add the Bing Translator directly to your WordPress theme's template files using a special PHP template tag:
  1. Open the theme template that you'd like to edit.
  2. Add the following function into your template where you'd like the Bing Translator widget to appear: <?php bing_translator(); ?>
  3. Save your file.
  4. Preview your site to verify the changes.
Video: Adding Bing Translator to WordPress using PHP Template Tags https://www.youtube.com/watch?v=Yxjceu7La9U Marking Content That Should Not be Translated If you have content within a post, page or custom post type that you'd like Bing Translator to skip when translating, you can wrap that content in the [notranslate][/notranslate] shortcode:
  1. Open the post, page or custom post type.
  2. Select the content that should be exempt from translation.
  3. Click the Bing button above the WordPress editor and select Don't Translate.
The content you selected will not be translated, regardless of the visitor's settings.

屏幕截图:

  • Example page translated to Arabic using Bing Translator
  • Example page translated to Chinese using Bing Translator
  • Bing Translator main settings page
  • Add Bing Translator using a WordPress widget
  • Add Bing Translator to a post or page using a shortcode
  • Mark specific text that shouldn't be translated using the No-Translate shortcode
  • Adding the Bing Translator to a theme template using the `bing-translator' template tag

升级注意事项:

1.0.0 Initial release

常见问题:

Do I have to sign up for an account to use this plugin?

No, this plugin is completely free.

How many translations do I get per month?

There's no limit.

Does this plugin work on pages, posts, even custom post types?

Yes. No problem. Because the widget is powered by JavaScript running in the visitor's browser, it translates any web page on-the-fly.

Do I need to set my site's main language?

No. The plugin uses the language settings in WordPress. Find out more about WordPress in your language.

How can I get the Bing Translator widget to display in my native language?

The Bing Translator widget is displayed on the site using the visitor's browser language settings. To see how the Bing Translator widget looks in German, you need to change your browser accept-language setting to German. Instructions to change default browser language settings for:

Can I embed multiple copies of the Bing Translator in my site?

Yes. However, the Bing Translator will only show on each page once. So, it's best to decide on one implementation (Widget, Template Tag, or Shortcode) and stick with it.

Does the Don't Translate shortcode work if I'm embedding the Bing Translator using WordPress Widgets or Template Tags?

Yes. The [notranslate][/notranslate] shortcode will protect content from being translated regardless of how you embed the Bing Translator on your site.

I'm confused . . . should I embed the Bing Translator using the WordPress Widget, Shortcode, or Template Tag.

  • WordPress Widget - For most people, this is the easiest way to go since it will automatically show on all pages and posts that use that widget area.
  • Shortcode - Shortcodes are best for sites that only want certain content to be translateable, but it's not great if you'd like visitors to be able to translate the whole site because you have to add the [bing_translator] shortcode to each piece of content on which you'd like it to appear.
  • Template Tag - Because the template tag requires editing theme templates, it's best used by developers that have knowledge of PHP and HTML.

What arguments can I pass along with the Template Tag or Shortcode?

If you're implementing the Bing Translator plugin using WordPress Shortcodes or Template Tags, you can change the output by passing along an array of arguments. Here are the possible arguments:

  • align - center or left or right
  • enable_ctf- yes or no
  • mode - manual or auto
  • theme - light or dark
** Passing arguments to Shortcode ** [bing_translator align="center" enable_ctf="yes" mode="manual" theme="dark"] ** Passing arguments to Template Tag ** bing_translator( array( 'align' => '', 'enable_ctf' => yes, 'mode' => 'manual', 'theme' => 'dark', ) );

更新日志:

1.0.0