Translate strings from one language to another

버전 1.4.0.1 (627 KB) 작성자: Varun Gandhi
TRANSLATE uses translate.google.com to translate a string from one language to another
다운로드 수: 1.1K
업데이트 날짜: 2016/9/1

라이선스 보기

There are two files in this submission. The first one is the MATLAB function translate.m and the other one is an example app (googleTranslateExample.m) that shows you how one can use translate.
%TRANSLATE uses Google(r)'s free web service at translate.google.com to translate
%a string from one language to another.
%
% Usage:
% translate('thank you', 'ja') - translates the first argument to Japanese
% translate('merci', 'ja', 'fr') - translate the first argument from french to Japanese
% translate('thank you') - translate the first argument from English to German
%
% Inputs:
% Arg1: stringToBeTranslated - char array or cell array of strings to be translated
% - Required
% Arg2: toLanguage - Language to be which 'stringToBeTranslated' will be translated
% - Optional
% - Default - 'de'(German)
% Arg3: fromLanguage - Language in which 'stringToBeTranslated' is specified
% - Optional
% - Default - 'en'(English)
%
% Output: Translated string returned by Google(r)
% Output is of the same type as the input 'stringToBeTranslated' - Char array or cell array of string
% Output is not translated if internet is not available of something went wrong with the query to Google.
%
%
%
% See also googleTranslateExample

인용 양식

Varun Gandhi (2024). Translate strings from one language to another (https://www.mathworks.com/matlabcentral/fileexchange/49566-translate-strings-from-one-language-to-another), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2014b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Characters and Strings에 대해 자세히 알아보기
도움

받음: Google(R) Translate

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.4.0.1

Updated license

1.4.0.0

Updated screenshots and code cleanup