-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgoogletrans.sthlp
80 lines (65 loc) · 2.12 KB
/
googletrans.sthlp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{smcl}
{* *! version 1.0 31 Oct 2018}{...}
{vieweralsosee "" "--"}{...}
{vieweralsosee "Install command2" "ssc install command2"}{...}
{vieweralsosee "Help command2 (if installed)" "help command2"}{...}
{viewerjumpto "Syntax" "googletrans##syntax"}{...}
{viewerjumpto "Description" "googletrans##description"}{...}
{viewerjumpto "Options" "googletrans##options"}{...}
{viewerjumpto "Remarks" "googletrans##remarks"}{...}
{viewerjumpto "Examples" "googletrans##examples"}{...}
{title:Title}
{phang}
{bf:googletrans} {hline 2} {err: help file in progress}
{marker syntax}{...}
{title:Syntax}
{p 8 17 2}
{cmdab:googletrans}
varlist
[{help in}]
[if]
[{cmd:,}
{it:options}]
{synoptset 20 tabbed}{...}
{synopthdr}
{synoptline}
{syntab:Main}
{synopt:{opt s:ource(string)}} Original language of the source{p_end}
{synopt:{opt t:arget(string)}} Target language{p_end}
{synopt:{opt replace}} reaplce existing file{p_end}
{synopt:{opt nouniformlang}} Force detection of language{p_end}
{synopt:{opt just:detect}} Just detect language. Does not translate{p_end}
{synopt:{opt nodots}} Suppress display of dots and progress.{p_end}
{synoptline}
{p2colreset}{...}
{p 4 6 2}
{marker description}{...}
{title:Description}
{pstd}
{cmd:googletrans} translate Unicode text from one language to another using the Google
translate API. It requires a Google API Key to work. Store your Google API Key in the global
macro {it:google_api} so that. To get a Google API key go
{browse "https://cloud.google.com/translate/docs/quickstart?csw=1":this page}
{marker options}{...}
{title:Options}
{dlgtab:Main}
{phang}
{opt s:ource(string)}
{phang}
{opt t:arget(string)}
{phang}
{opt replace}
{phang}
{opt nouniformlang}
{phang}
{opt just:detect}
{phang}
{opt nodots}
{marker examples}{...}
{title:Examples}
{phang} googletrans item, replace
{title:Author}
{p}
{p 4 4 4}R.Andres Castaneda, The World Bank{p_end}
{p 6 6 4}Email {browse "mailto:[email protected]":[email protected]}{p_end}
{help libjson} (if installed) {stata ssc install libjson} (to install libjson)