Home >WeChat Applet >WeChat Development >10 recommended courses on translation functions

10 recommended courses on translation functions

零下一度
零下一度Original
2017-06-11 09:00:122237browse

1. Introduction The previous article introduced the development of the weather forecast function of the WeChat public platform and realized the first practical application of the WeChat public platform. In the next article, we will carry out the WeChat translation function Simply developed for readers' reference. 2. Idea analysis is similar to the idea of ​​querying the weather in the previous article. First, the message sent by the user must be judged to determine whether the message contains the "translation" keyword. If it does, extract the content to be translated, and then call the open method on the network. Translation API for related translations. 3. Translation API Analysis There are many translation APIs on the Internet, and you can choose according to your own needs. Here we choose Youdao Translation API and Baidu Translation API, which are widely used and have relatively good translation functions. The relevant information of these two APIs will be analyzed below. 3.1 Youdao Translation API 3.1.1 API address: fanyi.youdao.com/openapi Note: In the following test, the json data format returned by the API interface provided by Youdao is incorrect. Check the information online and the address that can be translated correctly is fanyi.youdao.com/fanyi

1. Detailed explanation of the steps of translation function in WeChat development

10 recommended courses on translation functions

Introduction: The previous article introduced the development of the weather forecast function of the WeChat public platform and realized the first practical application of the WeChat public platform. In the next article, we will A simple development of the WeChat translation function is provided for readers’ reference.

2. Little Yellow Chicken API developed by WeChat public platform

10 recommended courses on translation functions

##Introduction: The previous article introduced the development of the translation function of the WeChat public platform, which realizes translation between Chinese, English and Japanese, and can also be used in real life. In the next article, we will complete a more interesting function, which is a chatbot that can chat with you and make you happy when you are bored

3. Traverse the array in php to find whether the array element exists and the current string. If it does not exist, output the current string. If it exists, output the key value of the array.

Introduction: {Code...} What I want to do is to traverse the array to find whether the array element exists and the current string. If it does not exist, output the current string. If it exists, output the key value of the array. It’s the translation function. 1. Determine whether the logs in the array correspond to Chinese (because some logs are dead). 2. Determine the date...

4. David Camp WeChat public platform development official Content expanded version --- PHP version qq WeChat public platform development WeChat public platform developer WeChat public platform development is difficult

Introduction: WeChat public platform development: David Camp WeChat public platform Develop official content expanded version ---PHP version: WeChat public platform development (1) Configuration interface WeChat public platform development (2) WeChat public platform sample code analysis WeChat public platform development (3) Subscription event (subscribe) processing WeChat public platform development (4) Simple reply function development WeChat public platform development (5) Weather forecast function development WeChat public platform development (6) Translation function development WeChat public platform development (7) Chatbot function development WeChat public platform development (8) Custom menu function Develop WeChat public platform development (9) Database operation WeChat public

5. WeChat public platform development (7) Chat robot function development_PHP tutorial

10 recommended courses on translation functions

Introduction: WeChat public platform development (7) Chat robot function development. The previous article introduced the development of the translation function of the WeChat public platform, which realizes translation between Chinese, English and Japanese, and can also be used in real life. In the next article, we

6. WeChat public platform development (6) Translation function development_PHP tutorial

10 recommended courses on translation functions

Introduction: WeChat public platform development (6) Translation function development. The previous article introduced the development of the weather forecast function of the WeChat public platform and realized the first practical application of the WeChat public platform. In the next article, we will explain the WeChat public platform

7. php calls google online translation function_PHP tutorial

Introduction: php calls google online translation function. PHP calls the google online translation function from Chinese to English class Google_API_translator { public $out = ; function translate() { $this-out = ; $text = urlencode(computer);//The word to be translated

8. php calls google online translation function_PHP tutorial

Introduction: php calls google online translation function. We mainly use PHP to call the Google online translation function. Post a remote address and then use curl to read the Google translated value. We mainly use PHP to call the Google online translation function

##9. PHP WeChat public platform development-Translation function development_PHP tutorial

10 recommended courses on translation functions

#Introduction: PHP WeChat public platform development - translation function development. [PHP WeChat public platform development series] 01. Configure WeChat interface 02. Public platform sample code analysis 03. Subscription event (subscribe) processing 04. Simple reply function development 05. Weather forecast function

10. ThinkPHP calls Baidu translation class to implement online translation_PHP tutorial

Introduction: ThinkPHP calls Baidu translation class to implement online translation. To implement the ThinkPHP online translation function, you need to register an API key in the Baidu Developer Center first. The specific implementation code is as follows: action code part: phpclass FanyiAction extends Action {

[Related Q&A recommendations] :

iOS Get the list of all languages ​​in the system

javascript - How to implement word delimitation translation function

Traverse the array in php to find whether the array element exists and the current string. If it does not exist, output the current string. If it exists, output the key value of the array

The above is the detailed content of 10 recommended courses on translation functions. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn