mirror of
https://github.com/godotengine/godot-docs-l10n.git
synced 2025-12-31 09:49:22 +03:00
385 lines
16 KiB
Plaintext
385 lines
16 KiB
Plaintext
# SOME DESCRIPTIVE TITLE.
|
|
# Copyright (C) 2014-2022, Juan Linietsky, Ariel Manzur and the Godot community (CC-BY 3.0)
|
|
# This file is distributed under the same license as the Godot Engine package.
|
|
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
|
#
|
|
#, fuzzy
|
|
msgid ""
|
|
msgstr ""
|
|
"Project-Id-Version: Godot Engine 3.5\n"
|
|
"Report-Msgid-Bugs-To: \n"
|
|
"POT-Creation-Date: 2022-09-09 16:03+0200\n"
|
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
"MIME-Version: 1.0\n"
|
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
"Content-Transfer-Encoding: 8bit\n"
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:4
|
|
msgid "Class reference writing guidelines"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:6
|
|
msgid "This page explains how to write the class reference. You will learn where to write new descriptions for the classes, methods, and properties for Godot's built-in node types."
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:12
|
|
msgid "To learn to submit your changes to the Godot project using the Git version control system, see :ref:`doc_updating_the_class_reference`."
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:15
|
|
msgid "The reference for each class is contained in an XML file like the one below:"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:65
|
|
msgid "It starts with brief and long descriptions. In the generated docs, the brief description is always at the top of the page, while the long description lies below the list of methods, variables, and constants. You can find methods, member variables, constants, and signals in separate XML nodes."
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:70
|
|
msgid "For each, you want to learn how they work in Godot's source code. Then, fill their documentation by completing or improving the text in these tags:"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:73
|
|
msgid "`<brief_description>`"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:74
|
|
msgid "`<description>`"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:75
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:80
|
|
msgid "`<constant>`"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:76
|
|
msgid "`<method>` (in its `<description>` tag; return types and arguments don't take separate documentation strings)"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:78
|
|
msgid "`<member>`"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:79
|
|
msgid "`<signal>` (in its `<description>` tag; arguments don't take separate documentation strings)"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:82
|
|
msgid "Write in a clear and simple language. Always follow the :ref:`writing guidelines <doc_docs_writing_guidelines>` to keep your descriptions short and easy to read. **Do not leave empty lines** in the descriptions: each line in the XML file will result in a new paragraph, even if it is empty."
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:90
|
|
msgid "How to edit class XML"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:92
|
|
msgid "Edit the file for your chosen class in ``doc/classes/`` to update the class reference. The folder contains an XML file for each class. The XML lists the constants and methods you will find in the class reference. Godot generates and updates the XML automatically."
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:97
|
|
msgid "For some modules in the engine's source code, you'll find the XML files in the ``modules/<module_name>/doc_classes/`` directory instead."
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:100
|
|
msgid "Edit it using your favorite text editor. If you use a code editor, make sure that it doesn't change the indent style: you should use tabs for the XML and four spaces inside BBCode-style blocks. More on that below."
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:104
|
|
msgid "To check that the modifications you've made are correct in the generated documentation, navigate to the ``doc/`` folder and run the command ``make rst``. This will convert the XML files to the online documentation's format and output errors if anything's wrong."
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:109
|
|
msgid "Alternatively, you can build Godot and open the modified page in the built-in code reference. To learn how to compile the engine, read the :ref:`compilation guide <toc-devel-compiling>`."
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:113
|
|
msgid "We recommend using a code editor that supports XML files like Vim, Atom, Visual Studio Code, Notepad++, or another to comfortably edit the file. You can also use their search feature to find classes and properties quickly."
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:120
|
|
msgid "Improve formatting with BBCode style tags"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:122
|
|
msgid "Godot's class reference supports BBCode-like tags. They add nice formatting to the text. Here's the list of available tags:"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:126
|
|
msgid "Tag"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:126
|
|
msgid "Effect"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:126
|
|
msgid "Usage"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:126
|
|
msgid "Result"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:128
|
|
msgid "[Class]"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:128
|
|
msgid "Link a class"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:128
|
|
msgid "Move the [Sprite]."
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:128
|
|
msgid "Move the :ref:`class_Sprite`."
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:130
|
|
msgid "[method methodname]"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:130
|
|
msgid "Link to a method in this class"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:130
|
|
msgid "Call [method hide]."
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:130
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:132
|
|
msgid "Call :ref:`hide <class_Spatial_method_hide>`."
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:132
|
|
msgid "[method Class.methodname]"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:132
|
|
msgid "Link to another class's method"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:132
|
|
msgid "Call [method Spatial.hide]."
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:134
|
|
msgid "[member membername]"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:134
|
|
msgid "Link to a member in this class"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:134
|
|
msgid "Get [member scale]."
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:134
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:136
|
|
msgid "Get :ref:`scale <class_Node2D_property_scale>`."
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:136
|
|
msgid "[member Class.membername]"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:136
|
|
msgid "Link to another class's member"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:136
|
|
msgid "Get [member Node2D.scale]."
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:138
|
|
msgid "[signal signalname]"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:138
|
|
msgid "Link to a signal in this class"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:138
|
|
msgid "Emit [signal renamed]."
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:138
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:140
|
|
msgid "Emit :ref:`renamed <class_Node_signal_renamed>`."
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:140
|
|
msgid "[signal Class.signalname]"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:140
|
|
msgid "Link to another class's signal"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:140
|
|
msgid "Emit [signal Node.renamed]."
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:142
|
|
msgid "[b] [/b]"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:142
|
|
msgid "Bold"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:142
|
|
msgid "Some [b]bold[/b] text."
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:142
|
|
msgid "Some **bold** text."
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:144
|
|
msgid "[i] [/i]"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:144
|
|
msgid "Italic"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:144
|
|
msgid "Some [i]italic[/i] text."
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:144
|
|
msgid "Some *italic* text."
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:146
|
|
msgid "[code] [/code]"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:146
|
|
msgid "Monospace"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:146
|
|
msgid "Some [code]monospace[/code] text."
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:146
|
|
msgid "Some ``monospace`` text."
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:148
|
|
msgid "[kbd] [/kbd]"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:148
|
|
msgid "Keyboard/mouse shortcut"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:148
|
|
msgid "Some [kbd]Ctrl + C[/kbd] key."
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:148
|
|
msgid "Some :kbd:`Ctrl + C` key."
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:150
|
|
msgid "[codeblock] [/codeblock]"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:150
|
|
msgid "Multiline preformatted block"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:150
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:150
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:152
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:152
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:154
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:154
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:156
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:156
|
|
msgid "*See below.*"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:152
|
|
msgid "[codeblocks] [/codeblocks]"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:152
|
|
msgid "[codeblock] for multiple languages"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:154
|
|
msgid "[gdscript] [/gdscript]"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:154
|
|
msgid "GDScript codeblock tab in codeblocks"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:156
|
|
msgid "[csharp] [/csharp]"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:156
|
|
msgid "C# codeblock tab in codeblocks"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:159
|
|
msgid "Use ``[codeblock]`` for pre-formatted code blocks. Inside ``[codeblock]``, always use **four spaces** for indentation. The parser will delete tabs. For example:"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:171
|
|
msgid "Will display as:"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:179
|
|
msgid "If you need to have different code version in GDScript and C#, use ``[codeblocks]`` instead. If you use ``[codeblocks]``, you also need to have at least one of the language-specific tags, ``[gdscript]`` and ``[csharp]``."
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:183
|
|
msgid "Always write GDScript code examples first! You can use this `experimental code translation tool <https://github.com/HaSa1002/codetranslator>`_ to speed up your workflow."
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:204
|
|
msgid "The above will display as:"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:221
|
|
msgid "To denote important information, add a paragraph starting with \"[b]Note:[/b]\" at the end of the description:"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:228
|
|
msgid "To denote crucial information that could cause security issues or loss of data if not followed carefully, add a paragraph starting with \"[b]Warning:[/b]\" at the end of the description:"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:236
|
|
msgid "For deprecated properties, add a paragraph starting with \"[i]Deprecated.[/i]\". Notice the use of italics instead of bold:"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:243
|
|
msgid "In all the paragraphs described above, make sure the punctuation is part of the BBCode tags for consistency."
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:247
|
|
msgid "I don't know what this method does!"
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:249
|
|
msgid "No problem. Leave it behind, and list the methods you skipped when you request a pull of your changes. Another writer will take care of it."
|
|
msgstr ""
|
|
|
|
#: ../../docs/community/contributing/class_reference_writing_guidelines.rst:252
|
|
msgid "You can still look at the methods' implementation in Godot's source code on GitHub. If you have doubts, feel free to ask on the `Q&A website <https://godotengine.org/qa/>`__ and `Godot Contributors Chat <https://chat.godotengine.org/>`_."
|
|
msgstr ""
|
|
|
|
#: ../../docs/<rst_epilog>:0
|
|
msgid "Translation status"
|
|
msgstr ""
|