Edit Markup/zh-cn: Difference between revisions

From KDE TechBase
(Created page with "* 确保每个段落或字段落后面都有一个空行。")
(Updating to match new version of source page)
 
(5 intermediate revisions by one other user not shown)
Line 10: Line 10:
* 确保每个段落或字段落后面都有一个空行。
* 确保每个段落或字段落后面都有一个空行。


* Many pages have multiple indents set.  This was included in earlier mediawiki documentation, but is not longer acceptable as it causes problems for exporting to other formats, so please re-arrange, using single indents only.  Bullets can continue to be used nested.
* 许多页面都有多级缩进,这是早期 MediaWiki 文档遗留下来的,现在已经不接受这个格式,因为导出到其他格式时会出问题。所以请重写页面,只使用单级缩进。列表仍然可以使用多级缩进。


* ASCII smilies cause problems and must be removed.  They can be replaced by oxygen icons in a small size (11px?).  Many more are available from Wikimedia Commons - details to be added here.
* ASCII 笑脸也会导致问题,应该删除。可以用小 oxygen 图标代替。Wikimedia Commons 也提供了一些替代。


* Internal links in the form <nowiki>[[Translation Workflow]]</nowiki> should be edited to the complete form, showing link, then visible text such as <nowiki>[[Special:myLanguage/Translation_Workflow|Translation Workflow]]</nowiki>
* 内部链接例如 <nowiki>[[Translation Workflow]]</nowiki> 应该修改为 <nowiki>[[Special:myLanguage/Translation_Workflow|Translation Workflow]]</nowiki>


* Many styles have been used to display input text, including <nowiki><code>, <pre></nowiki> and tables and boxes. Text intended to be input by the user should use the Input template, <nowiki>{{Input|1=input text (can be multi-line or single)}}</nowiki>. You can still use <nowiki><code></nowiki> for very short input, if you don't want the text to appear on a separate line.
* 输入文本有多种格式,例如 <nowiki><code>, <pre></nowiki> 和图表和方框。用户需要输入的文字应该使用输入模板 <nowiki>{{Input|1=input text (can be multi-line or single)}}</nowiki>. 很短的输入也可以使用 <nowiki><code></nowiki>,这样文字不会另起一行显示。


* Output from terminal and error messages have been similarly marked with a variety of methods.  These should be replaced with the Output template, <nowiki>{{Output|1=terminal output}}</nowiki>
* 终端的输出和出错信息应该替换为<nowiki>{{Output|1=terminal output}}</nowiki>


* Every page should end with a Category statement.  These must be standardized categories.  A current list of categories can be found on any of the translators' pages linked from [[Translation_Help_Needed|this language page]]
* Every page should end with a Category statement.  These must be standardized categories.  A current list of categories can be found on any of the translators' pages linked from [[Translation_Help_Needed|this language page]]
Line 33: Line 33:


* A stand-alone link, such as the application-names in Applications/Internet, should use the form <nowiki>[[Special:myLanguage/Ark|&lt;translate>Ark &lt;/translate>]]</nowiki>
* A stand-alone link, such as the application-names in Applications/Internet, should use the form <nowiki>[[Special:myLanguage/Ark|&lt;translate>Ark &lt;/translate>]]</nowiki>
* Where the link is within a sentence the whole of the link should be kept within the translatable message.
* Where the link is within a sentence; the whole of the link should be kept within the translatable message.


=== Special Tags ===
=== Special Tags ===

Latest revision as of 09:53, 10 February 2019

Other languages:

可用工具

  • 印刷指南制定了翻译时使用的标准格式,适用于官方文档(DocBook)或其它语言。请经常查看此文档,有时格式会根据翻译需要进行修改。

工作流程 1

修正旧的标记

  • 确保每个段落或字段落后面都有一个空行。
  • 许多页面都有多级缩进,这是早期 MediaWiki 文档遗留下来的,现在已经不接受这个格式,因为导出到其他格式时会出问题。所以请重写页面,只使用单级缩进。列表仍然可以使用多级缩进。
  • ASCII 笑脸也会导致问题,应该删除。可以用小 oxygen 图标代替。Wikimedia Commons 也提供了一些替代。
  • 内部链接例如 [[Translation Workflow]] 应该修改为 [[Special:myLanguage/Translation_Workflow|Translation Workflow]]
  • 输入文本有多种格式,例如 <code>, <pre> 和图表和方框。用户需要输入的文字应该使用输入模板 {{Input|1=input text (can be multi-line or single)}}. 很短的输入也可以使用 <code>,这样文字不会另起一行显示。
  • 终端的输出和出错信息应该替换为{{Output|1=terminal output}}
  • Every page should end with a Category statement. These must be standardized categories. A current list of categories can be found on any of the translators' pages linked from this language page
  • Make sure that there are no unbalanced brackets in any section. If you find unbalanced brackets then add the missing bracket(s) — possibly in a comment like this:
    <!--(--> a)
  • There should be a blank line between bullets in lists. See the sections on lists beginning with Bulleted Lists.
  • Tables should be split in a similar manner, so that there is a blank line between each row. The first and last items will need to have curly braces balanced.

Stage 2 - Guide to new markup

Marking Links for Translation

  • A stand-alone link, such as the application-names in Applications/Internet, should use the form [[Special:myLanguage/Ark|<translate>Ark </translate>]]
  • Where the link is within a sentence; the whole of the link should be kept within the translatable message.

Special Tags

  • Identify all keyboard key-names, and tag, e.g. <keycap>Enter</keycap>
  • Include concurrent keypresses in the <keycap> tag, e.g. Ctrl + Alt + F1. Note that the separator is (space)+(space)
  • Treat menu sequences in a similar manner, using the <menuchoice> tag, e.g.System Settings -> Account Details -> Social Desktop. Note that the separator is (space)->(space)
Warning
NEVER add translate section tags (the ones that look like < !--T:18-- >). The software will do any handling of tags that is required, and manually changing them will break the system.


Bold type

  • Identify program names and mark them as bold type, e.g. Klipper
  • Identify labels and names that cannot be changed by the user, and mark them as bold type.
  • Remove any bold type marking that were previously entered, but do not match this guideline. (See below for emphasizing a word or phrase.)
  • Window captions and Icon labels are also marked as bold type.

Italics

  • Italics can be used to give emphasis as you might in non-technical writing
  • Use italics on the first appearance of an unfamiliar word or phrase, and if possible link it to #Glossary or a dictionary entry.
  • When referencing other (external) works, titles are italicized.

Combined Bold and Italics

  • This should only be used in the context of an example where the user has to substitute text, e.g. "Your new addressbook records are in /home/user/share/contacts"
Tip
Simplified definitions - Programs are launched by users, components are used by programs


Issues that cause Translate problems

Several issues have been identified and discussed, and solutions proposed in the following sections:

These are usually noticed after the first markup, and it may be necessary to re-arrange spacing and/or structure to avoid the problems.

Almost finished

  • In the summary field at the bottom, enter that you are doing a markup edit.
  • Use Preview and read through the whole of your work. If you are satisfied, save the page.
  • Use this page to request release - you can add the URL of the page you have edited. Pasting your link there tells us that you believe the page to be ready for translators to work with. We will scan it, and if satisfied we will enable it for translation.