You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by lu...@apache.org on 2023/10/12 12:25:35 UTC

[doris-website] branch master updated: (fix) fix zh_CN text in code (#323)

This is an automated email from the ASF dual-hosted git repository.

luzhijing pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git


The following commit(s) were added to refs/heads/master by this push:
     new cd56d749a4d (fix) fix zh_CN text in code (#323)
cd56d749a4d is described below

commit cd56d749a4d899f18af536bb47a8170276de36e6
Author: Jeffrey <co...@gmail.com>
AuthorDate: Thu Oct 12 20:25:29 2023 +0800

    (fix) fix zh_CN text in code (#323)
---
 src/pages/download/index.tsx | 47 +++++++++++---------------------------------
 1 file changed, 12 insertions(+), 35 deletions(-)

diff --git a/src/pages/download/index.tsx b/src/pages/download/index.tsx
index 6345823166e..a09a62278c0 100644
--- a/src/pages/download/index.tsx
+++ b/src/pages/download/index.tsx
@@ -235,7 +235,7 @@ export default function Download(): JSX.Element {
                                             checked: downloadWay === 'all-in-one',
                                         })}
                                     >
-                                        <span>{currentLocale === 'zh-CN' ? '二进制' : 'Binary'}</span>
+                                        <span>Binary</span>
                                     </div>
 
                                     <div
@@ -244,7 +244,7 @@ export default function Download(): JSX.Element {
                                             checked: downloadWay === 'download',
                                         })}
                                     >
-                                        <span>{currentLocale === 'zh-CN' ? '源码' : 'Source'}</span>
+                                        <span>Source</span>
                                     </div>
                                 </div>
                             </div>
@@ -279,40 +279,17 @@ export default function Download(): JSX.Element {
                                 {version === VersionEnum.Latest && (
                                     <div className="tips">
                                         <div className="title">
-                                            <Translate id="Notice">Notice</Translate>
-                                            {currentLocale === 'zh-CN' ? ':' : ':'}
+                                            <Translate id="Notice">Notice:</Translate>
+                                        </div>
+                                        <div className="notice-text">
+                                            For detailed upgrade precautions, please refer to the
+                                            <Link to="https://github.com/apache/doris/issues/25011">2.0.2</Link>
+                                            and the
+                                            <Link to="/docs/dev/install/standard-deployment">deployment</Link> and
+                                            cluster
+                                            <Link to="/docs/dev/admin-manual/cluster-management/upgrade">upgrade</Link>
+                                            manual.
                                         </div>
-                                        {currentLocale === 'zh-CN' ? (
-                                            <div className="notice-text">
-                                                详细升级注意事项请参考
-                                                <Link to="https://github.com/apache/doris/issues/25011">
-                                                    2.0.2 Release Note
-                                                </Link>
-                                                以及
-                                                <Link to="/docs/dev/install/standard-deployment">
-                                                    <Translate id="Installation and deployment">
-                                                        Installation and deployment
-                                                    </Translate>
-                                                </Link>
-                                                以及
-                                                <Link to="/docs/dev/admin-manual/cluster-management/upgrade">
-                                                    <Translate id="Cluster Upgrade">Cluster Upgrade</Translate>
-                                                </Link>
-                                                手册。
-                                            </div>
-                                        ) : (
-                                            <div className="notice-text">
-                                                For detailed upgrade precautions, please refer to the{' '}
-                                                <Link to="https://github.com/apache/doris/issues/25011">2.0.2</Link>
-                                                and the
-                                                <Link to="/docs/dev/install/standard-deployment">deployment</Link> and
-                                                cluster
-                                                <Link to="/docs/dev/admin-manual/cluster-management/upgrade">
-                                                    upgrade
-                                                </Link>
-                                                manual.
-                                            </div>
-                                        )}
                                     </div>
                                 )}
                             </div>


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org