Skip to content

[Update #14] docblock翻譯 #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Oct 13, 2014
Merged

Conversation

takeshiwayne
Copy link

for #14

@asika32764
Copy link

@LeoOnTheEarth 幫忙 review 一下吧

@@ -1,32 +1,32 @@
## DocBlocks
## 註釋

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

一般 docblock 叫區塊註解

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

註解區塊比較順吧?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

搜尋一下是以區塊註解較多

2014-10-06 22:50 GMT+08:00 Leo [email protected]:

In manual/zh-TW/coding-standards/chapters/docblocks.md:

@@ -1,32 +1,32 @@
-## DocBlocks
+## 註釋

註解區塊比較順吧?


Reply to this email directly or view it on GitHub
https://github.com/smstw/joomla-coding-standards/pull/16/files#r18460688
.

Best Regard

Simon Asika | Kwang Po Tung | 董冠伯

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

那就翻區塊註解吧! 👍

@takeshiwayne takeshiwayne force-pushed the docblock branch 2 times, most recently from 988ff62 to 9e0a9ef Compare October 7, 2014 04:34

Code contributed to the Joomla project that will become the copyright of the project is not allowed to include @author tags. You should update the contribution log in CREDITS.php. Joomla's philosophy is that the code is written "all together" and there is no notion of any one person "owning" any section of code. The @author tags are permitted in third-party libraries that are included in the core libraries.
@author 將成為 Joomla project 版權一部分而貢獻出來的程式不允許使用 @auther 標籤。您必須更新您的(CREDITS.php 在 contribution log)。 Joomla程式原則是"互助",所以並不會在Joomla程式碼提出或是感謝某人提供或擁有任何程式碼。@author標籤 在Joomla第三方核心程式編碼是被允許的。
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我覺得這樣比較順

貢獻到 Joomla 專案下的程式碼會成為 Joomla 專案版權所有,使用 @author 標簽是不被允許的。您必須在 CREDITS.php 中更新您的貢獻記錄。Joomla 的哲學是:程式碼是被 "共同" 撰寫的,任何人都不能主張其擁有 Joomla 專案中的程式碼片段。然而,在核心 libraries 之中所使用的第三方 libraries 則允許使用 @author 標簽。

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

將成為 Joomla project 版權一部分而貢獻出來的程式不允許使用 @auther 標籤
我剛剛講過被洗掉了 =_=...

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

另外 @bblurock 翻的還是太直接了,要轉化成一些中文的講法
翻譯有時候不是逐句去翻,可以先把一個段落看完,再思考原文的意思再翻會比較好

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

那整段翻成:
所有的程式編碼將成為 Joomla project 版權一部分而貢獻出來的程式不允許使用 @auther 標籤。您必須在 CREDITS.php 中更新您的貢獻記錄。Joomla 的哲學是:程式碼是被 "共同" 撰寫的,任何人都不能主張其擁有 Joomla 專案中的程式碼片段。然而,在核心 libraries 之中所使用的第三方 libraries 則允許使用 @author 標簽。

OK?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bblurock 這段白話文蠻好閱讀的阿,跟原文差異似乎也不大

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

開頭地一句這樣翻吧

貢獻到 Joomla 專案下的程式碼,其版權將屬於 Joomla 專案,因此我們不允許其內包含 @author 標籤。

@bblurock
Copy link

bblurock commented Oct 7, 2014

還有每個英文字 Egnlish 跟中文字之間應該左右都有空格。

可以簡單 Follow 一下這個 規範 - 中文文案排版指北


Documentation headers for PHP code in: files, classes, class properties, methods and functions, called the docblocks, follow a convention similar to JavaDoc or phpDOC.
被使用在 PHP 程式碼中 (如:文件、類別、類別屬性、方法和函數) 的說明標頭被稱作區塊註解 (docblocks),攥寫方式遵循類似 JavaDoc phpDOC 所使用的慣例。

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

撰寫 方式
攥寫 是怎麼打出來的啊XD...

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

寸哥眼睛你偷開外掛....我都沒注意到

* @category (非必填,極少使用)
* @package (通常是非必填,但當程式碼是持續性就是必填)
* @subpackage (非必填)
* @author (非必填但只被允許在非 Joomla 程式資源裡,像是第三方套件 Geshi)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

像是 Geshi 之類的第三方套件

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已修

@LeoOnTheEarth
Copy link

要把改好的東西 push 上來啊...

@asika32764
Copy link

這個 PR 狀況如何?

@takeshiwayne
Copy link
Author

改好哩,再麻煩@LeoOnTheEarth der der 有空再看一下。沒問題就可以merge 了

@LeoOnTheEarth
Copy link

OK 了,merge...

LeoOnTheEarth added a commit that referenced this pull request Oct 13, 2014
@LeoOnTheEarth LeoOnTheEarth merged commit 113bde6 into smstw:gh-pages Oct 13, 2014
@LeoOnTheEarth LeoOnTheEarth mentioned this pull request Oct 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants