PC SOFT

WINDEV的在线文档

  • Overview
  • Implementation
  • Using Google Translation in the editors
  • Getting the API key required to use Google Translation
  • Using Google Translation in the editors
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系:info@cn.windev.com
产品
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
平台
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
语言
JavaPHPAjax用户代码(MCU)外部语言
数据库
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

Overview
WinDev, WebDev and WinDev Mobile allow you to support up to 64 languages in the same project: window, report, WLanguage...

The translation of the different languages can be performed afterwards by using WDMSG or in the editors directly.

To simplify this translation, the editors propose to call "Google Translation" to perform these translations.

Caution: You must comply with the rules for using the Google service, that may change over time.

Implementation

Using Google Translation in the editors

To use Google Translation in the editors:
  1. Display the general options of the software used: on the "首页" pane, in the "环境" group, expand "选项" and select "General options of WinDev/WebDev/WinDev Mobile".
  2. Display the "Translation" tab.
  3. Select the "Google Translation" engine. Specify the API key required to use Google Translation.
  4. Validate.

Getting the API key required to use Google Translation

To get the API key required to use Google Translation:
  1. You must own a Google account.
  2. Connect to the Google API console in order to enable the "Translate API" service (https://code.google.com/apis/console, link valid at the time this document was written).
  3. A new option ("API Access") appears. Click this option.
  4. Your "API Key" is generated and displayed in the page. This key must be entered in the window of WinDev, WebDev and WinDev Mobile options.
Notes:
  • The invoicing information must be properly filled for the Google account. Indeed, Google Translation is not a free service. If this information is not specified, an error will occur when attempting to perform a translation.
  • See https://developers.google.com/translate/v2/faq for more details

Using Google Translation in the editors
When the translation via Google Translation is enabled, most of the editors allow you to use this translation mode.

To use Google Translation in the editors:

  1. A flag is displayed () in the different areas that can be translated via Google Translation.
  2. A click on this flag displays a menu with the possible translations for the current text:
  3. All you have to do is select the option corresponding to the translation to perform.

For a description window, you also have the ability to perform the following operations:

  1. Click in the area containing the text to translate.
  2. Clickat the bottom of the window.
  3. The translation window is displayed. In this window:
    • Select the reference language.
    • Click the "Ask for translation" link to get the translation via Google Translation in the requested language.
  4. Select the translations that must be applied to the description window (check the translations or click the "All" and "None" buttons).
  5. Validate the translation window. The information is automatically applied to the description window.