From 39a11f00a06ad9b296b0b3cbdf2e0108ddbe064f Mon Sep 17 00:00:00 2001 From: Marius Ileana Date: Wed, 14 Sep 2016 04:52:14 +0300 Subject: [PATCH] docs: upload, alert, tooltip - translations of remaining demos (#3035) * upload - translations of two remaining demos * alert & tooltip - remaining demo translations * Prompt typo --- components/alert/demo/icon.md | 24 +++++++++---------- components/alert/demo/style.md | 2 +- .../tooltip/demo/arrow-point-at-center.md | 18 ++++++++++---- components/upload/demo/basic.md | 6 ++--- components/upload/demo/drag.md | 4 ++-- 5 files changed, 31 insertions(+), 23 deletions(-) diff --git a/components/alert/demo/icon.md b/components/alert/demo/icon.md index a6fda9ec6..1e8743db9 100644 --- a/components/alert/demo/icon.md +++ b/components/alert/demo/icon.md @@ -17,31 +17,31 @@ Decent icon make information more clear and more friendly. import { Alert } from 'antd'; ReactDOM.render(
- - - - + + + + diff --git a/components/alert/demo/style.md b/components/alert/demo/style.md index d5bb48795..7fae3b28b 100644 --- a/components/alert/demo/style.md +++ b/components/alert/demo/style.md @@ -11,7 +11,7 @@ title: ## en-US -There are 4 kinds of Alert: `success`, `info`, `warning`, `error`. +There are 4 types of Alert: `success`, `info`, `warning`, `error`. ````jsx import { Alert } from 'antd'; diff --git a/components/tooltip/demo/arrow-point-at-center.md b/components/tooltip/demo/arrow-point-at-center.md index 3eb7aa37b..9e53fe8db 100644 --- a/components/tooltip/demo/arrow-point-at-center.md +++ b/components/tooltip/demo/arrow-point-at-center.md @@ -1,20 +1,28 @@ --- order: 2 -title: 箭头指向 +title: + zh-CN: 箭头指向 + en-US: Arrow pointing at the center --- +## zh-CN + 设置了 `arrowPointAtCenter` 后,箭头将指向目标元素的中心。 +## en-US + +By specifying `arrowPointAtCenter` prop, the arrow will point to the center of the target element. + ````jsx import { Tooltip, Button } from 'antd'; ReactDOM.render(
- - + + - - + +
, mountNode); diff --git a/components/upload/demo/basic.md b/components/upload/demo/basic.md index 61a7f67f1..c0653c0c4 100644 --- a/components/upload/demo/basic.md +++ b/components/upload/demo/basic.md @@ -27,9 +27,9 @@ const props = { console.log(info.file, info.fileList); } if (info.file.status === 'done') { - message.success(`${info.file.name} 上传成功。`); + message.success(`${info.file.name} file uploaded successfully`); } else if (info.file.status === 'error') { - message.error(`${info.file.name} 上传失败。`); + message.error(`${info.file.name} file upload failed.`); } }, }; @@ -37,7 +37,7 @@ const props = { ReactDOM.render( , mountNode); diff --git a/components/upload/demo/drag.md b/components/upload/demo/drag.md index 0fda933bd..f460e05d5 100644 --- a/components/upload/demo/drag.md +++ b/components/upload/demo/drag.md @@ -27,9 +27,9 @@ const props = { console.log(info.file, info.fileList); } if (info.file.status === 'done') { - message.success(`${info.file.name} 上传成功。`); + message.success(`${info.file.name} file uploaded successfully.`); } else if (info.file.status === 'error') { - message.error(`${info.file.name} 上传失败。`); + message.error(`${info.file.name} file upload failed.`); } }, };