en.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. <?php
  2. /**
  3. * The api module English file of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
  6. * @license ZPL(http://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  7. * @author Chunsheng Wang <chunsheng@cnezsoft.com>
  8. * @package api
  9. * @version $Id: English.php 824 2010-05-02 15:32:06Z wwccss $
  10. * @link https://www.zentao.net
  11. */
  12. $lang->api->common = 'API';
  13. $lang->api->getModel = 'Super Model API';
  14. $lang->api->sql = 'SQL Query API';
  15. $lang->api->manage = 'API management';
  16. $lang->api->index = 'API Space';
  17. $lang->api->view = 'API Details';
  18. $lang->api->editLib = 'Edit Library';
  19. $lang->api->releases = 'Version Management';
  20. $lang->api->deleteRelease = 'Delete Version';
  21. $lang->api->deleteLib = 'Delete API Library';
  22. $lang->api->createRelease = 'Publish API';
  23. $lang->api->createLib = 'Create API Library';
  24. $lang->api->createApi = 'Create API Document';
  25. $lang->api->createAB = 'Create';
  26. $lang->api->createDemo = 'Import ZenTao API Library';
  27. $lang->api->edit = 'Edit API';
  28. $lang->api->delete = 'Delete API';
  29. $lang->api->position = 'Location';
  30. $lang->api->startLine = "%s, Line %s";
  31. $lang->api->desc = 'Description';
  32. $lang->api->debug = 'Debug';
  33. $lang->api->submit = 'Submit';
  34. $lang->api->url = 'Request URL';
  35. $lang->api->result = 'Response';
  36. $lang->api->status = 'Status';
  37. $lang->api->data = 'Content';
  38. $lang->api->noParam = 'No input parameters required for GET debugging.';
  39. $lang->api->noModule = 'No directories found in this library. Please create a directory first.';
  40. $lang->api->post = 'Please refer to the form for POST debugging.';
  41. $lang->api->noUniqueName = 'Library name already exists.';
  42. $lang->api->noUniqueVersion = 'ersion already exists.';
  43. $lang->api->createStruct = 'Create Data Structure';
  44. $lang->api->editStruct = 'Edit Data Structure';
  45. $lang->api->deleteStruct = 'Delete Data Structure';
  46. $lang->api->create = 'Create API';
  47. $lang->api->title = 'API Name';
  48. $lang->api->pageTitle = 'API Library';
  49. $lang->api->module = 'Directory';
  50. $lang->api->apiDoc = 'API';
  51. $lang->api->manageType = 'Manage Directory';
  52. $lang->api->managePublish = 'Manage Version';
  53. $lang->api->doing = 'In Development';
  54. $lang->api->done = 'Completed';
  55. $lang->api->basicInfo = 'Basic Info';
  56. $lang->api->apiDesc = 'Description';
  57. $lang->api->confirmDelete = "Are you sure you want to delete this API?";
  58. $lang->api->confirmDeleteLib = "Are you sure you want to delete this library?";
  59. $lang->api->confirmDeleteStruct = "Are you sure you want to delete this data structure?";
  60. $lang->api->filterStruct = "Populate from Data Structure";
  61. $lang->api->defaultVersion = "Current Version";
  62. $lang->api->latestVersion = 'Latest Version';
  63. $lang->api->zentaoAPI = "Zentao API Doc V1";
  64. $lang->api->search = "Search";
  65. $lang->api->allLibs = "All Libs";
  66. $lang->api->noLinked = "Standalone API";
  67. $lang->api->apiCatalog = 'API Directory';
  68. $lang->api->addCatalog = 'Add Directory';
  69. $lang->api->editCatalog = 'Edit Directory';
  70. $lang->api->sortCatalog = 'Sort Directories';
  71. $lang->api->deleteCatalog = 'Delete Directory';
  72. /* Common access control lang. */
  73. $lang->api->whiteList = 'Whitelist';
  74. $lang->api->aclList['open'] = "Public (Accessible to users with document view permissions.)";
  75. $lang->api->aclList['default'] = "Default (Accessible to users with %s access permissions.)";
  76. $lang->api->aclList['private'] = "Private (Accessible only to the creator and whitelist users.)";
  77. $lang->api->group = 'Group';
  78. $lang->api->user = 'User';
  79. $lang->api->noticeAcl = array(
  80. 'open' => 'Accessible to all users',
  81. 'custom' => 'Accessible to whitelist users',
  82. 'private' => 'Accessible to creator only',
  83. );
  84. /* fields of struct */
  85. $lang->struct = new stdClass();
  86. $lang->struct->add = 'Add';
  87. $lang->struct->field = 'Field';
  88. $lang->struct->paramsType = 'Type';
  89. $lang->struct->required = 'Required';
  90. $lang->struct->desc = 'Description';
  91. $lang->struct->descPlaceholder = 'Parameter Description';
  92. $lang->struct->action = 'Actions';
  93. $lang->struct->addSubField = 'Add Child Field';
  94. $lang->struct->list = 'Data Structure List';
  95. $lang->struct->type = 'Body Type';
  96. $lang->struct->typeOptions = array(
  97. 'formData' => 'FormData',
  98. 'json' => 'JSON',
  99. 'array' => 'Array',
  100. 'object' => 'Object',
  101. );
  102. /* fields of form */
  103. $lang->api->struct = 'Data Structure';
  104. $lang->api->structName = 'Name';
  105. $lang->api->structType = 'Type';
  106. $lang->api->structAttr = 'Property';
  107. $lang->api->structAddedBy = 'Creator';
  108. $lang->api->structAddedDate = 'Created on';
  109. $lang->api->name = 'Library Name';
  110. $lang->api->baseUrl = 'Base URL';
  111. $lang->api->baseUrlDesc = 'URL or path, e.g., http://api.zentao.com or /v1.';
  112. $lang->api->desc = 'Description';
  113. $lang->api->control = 'Access Control';
  114. $lang->api->noLib = 'No API libraries yet.';
  115. $lang->api->noApi = 'No APIs yet.';
  116. $lang->api->noStruct = 'No data structures yet.';
  117. $lang->api->noRelease = 'No versions yet.';
  118. $lang->api->lib = 'API Library';
  119. $lang->api->apiList = 'API List';
  120. $lang->api->formTitle = 'API Name';
  121. $lang->api->path = 'Request Path';
  122. $lang->api->protocol = 'Protocol';
  123. $lang->api->method = 'Method';
  124. $lang->api->requestType = 'Request Format';
  125. $lang->api->status = 'Development Status';
  126. $lang->api->owner = 'Manager';
  127. $lang->api->paramsExample = 'Request Example';
  128. $lang->api->header = 'Request Header';
  129. $lang->api->query = 'Request Parameters';
  130. $lang->api->params = 'Request Body';
  131. $lang->api->response = 'Response';
  132. $lang->api->responseExample = 'Response Example';
  133. $lang->api->id = 'ID';
  134. $lang->api->addedBy = 'Creator';
  135. $lang->api->addedDate = 'Created on';
  136. $lang->api->editedBy = 'Edited by';
  137. $lang->api->editedDate = 'Eidted on';
  138. $lang->api->version = 'Version';
  139. $lang->api->res = new stdClass();
  140. $lang->api->res->name = 'Name';
  141. $lang->api->res->desc = 'Description';
  142. $lang->api->res->type = 'Type';
  143. $lang->api->req = new stdClass();
  144. $lang->api->req->name = 'Name';
  145. $lang->api->req->desc = 'Description';
  146. $lang->api->req->type = 'Type';
  147. $lang->api->req->required = 'Required';
  148. $lang->api->field = 'Field';
  149. $lang->api->scope = 'Location';
  150. $lang->api->paramsType = 'Type';
  151. $lang->api->required = 'Required';
  152. $lang->api->default = 'Default';
  153. $lang->api->desc = 'Description';
  154. $lang->api->customType = 'Custom Structure';
  155. $lang->api->format = 'Format';
  156. $lang->api->libType = 'Api Library Type';
  157. $lang->api->product = $lang->productCommon;
  158. $lang->api->project = $lang->projectCommon;
  159. $lang->api->apiTotalInfo = 'Total %d APIs';
  160. $lang->api->showNotEmpty = 'Only show with APIs';
  161. $lang->api->showClosed = 'Include Closed';
  162. $lang->api->methodOptions = array(
  163. 'GET' => 'GET',
  164. 'POST' => 'POST',
  165. 'PUT' => 'PUT',
  166. 'DELETE' => 'DELETE',
  167. 'PATCH' => 'PATCH',
  168. 'OPTIONS' => 'OPTIONS',
  169. 'HEAD' => 'HEAD'
  170. );
  171. $lang->api->protocalOptions = array();
  172. $lang->api->protocalOptions['HTTP'] = 'HTTP';
  173. $lang->api->protocalOptions['HTTPS'] = 'HTTPS';
  174. $lang->api->protocalOptions['WS'] = 'WS';
  175. $lang->api->protocalOptions['WSS'] = 'WSS';
  176. $lang->api->requestTypeOptions = array();
  177. $lang->api->requestTypeOptions['application/json'] = 'application/json';
  178. $lang->api->requestTypeOptions['application/x-www-form-urlencoded'] = 'application/x-www-form-urlencoded';
  179. $lang->api->requestTypeOptions['multipart/form-data'] = 'multipart/form-data';
  180. $lang->api->libTypeList = array();
  181. $lang->api->libTypeList['product'] = $lang->productCommon . ' API';
  182. $lang->api->libTypeList['project'] = $lang->projectCommon . ' API';
  183. $lang->api->libTypeList['nolink'] = 'Standalone API';
  184. $lang->api->statusOptions = array(
  185. 'done' => 'Completed',
  186. 'doing' => 'In Development',
  187. 'hidden' => 'Hidden'
  188. );
  189. $lang->api->paramsScopeOptions = array(
  190. 'formData' => 'formData',
  191. 'path' => 'path',
  192. 'query' => 'query',
  193. 'body' => 'body',
  194. 'header' => 'header',
  195. 'cookie' => 'cookie',
  196. );
  197. /* Api global common params */
  198. $lang->api->paramsTypeOptions = array(
  199. 'object' => 'object',
  200. 'array' => 'array',
  201. 'string' => 'string',
  202. 'date' => 'date',
  203. 'datetime' => 'datetime',
  204. 'boolean' => 'boolean',
  205. 'int' => 'int',
  206. 'long' => 'long',
  207. 'float' => 'float',
  208. 'double' => 'double',
  209. 'decimal' => 'decimal'
  210. );
  211. $lang->api->boolList = array(false => 'No', true => 'Yes', '' => 'No');
  212. /* Api params */
  213. $lang->api->paramsTypeCustomOptions = array('file' => 'file', 'ref' => 'ref');
  214. $lang->api->structParamsOptons = array_merge($lang->api->paramsTypeOptions, array('file' => 'file', 'ref' => 'ref'));
  215. $lang->api->allParamsTypeOptions = array_merge($lang->api->paramsTypeOptions, $lang->api->paramsTypeCustomOptions);
  216. $lang->api->requiredOptions = array(0 => 'No', 1 => 'Yes');
  217. $lang->apistruct = new stdClass();
  218. $lang->apistruct->name = 'Structure Name';
  219. $lang->api_lib_release = new stdClass();
  220. $lang->api_lib_release->version = 'Version';
  221. $lang->api_lib_release->desc = 'Description';
  222. $lang->api->error = new stdclass();
  223. $lang->api->error->onlySelect = 'Only SELECT queries are allowed in SQL API.';
  224. $lang->api->error->disabled = 'This feature is disabled for security reasons. To enable it, please modify the configuration item %s in the config directory.';
  225. $lang->api->error->notInput = 'Debugging is currently not supported due to field parameter type limitations.';
  226. $lang->api->filterTypes[] = array('all', 'All');
  227. $lang->api->filterTypes[] = array('createdByMe', 'Created by me');
  228. $lang->api->filterTypes[] = array('editedByMe', 'Edited by me');
  229. $lang->api->homeFilterTypes['nolink'] = $lang->api->libTypeList['nolink'];
  230. $lang->api->homeFilterTypes['product'] = $lang->api->libTypeList['product'];
  231. $lang->api->homeFilterTypes['project'] = $lang->api->libTypeList['project'];