Browse Source

Merge pull request #108617 from Calinou/doc-translation-po-plurals

Document Translation plurals requiring the use of the gettext PO format
Thaddeus Crews 1 month ago
parent
commit
a1844396d3
1 changed files with 3 additions and 0 deletions
  1. 3 0
      doc/classes/Translation.xml

+ 3 - 0
doc/classes/Translation.xml

@@ -8,6 +8,7 @@
 	</description>
 	</description>
 	<tutorials>
 	<tutorials>
 		<link title="Internationalizing games">$DOCS_URL/tutorials/i18n/internationalizing_games.html</link>
 		<link title="Internationalizing games">$DOCS_URL/tutorials/i18n/internationalizing_games.html</link>
+		<link title="Localization using gettext">$DOCS_URL/tutorials/i18n/localization_using_gettext.html</link>
 		<link title="Locales">$DOCS_URL/tutorials/i18n/locales.html</link>
 		<link title="Locales">$DOCS_URL/tutorials/i18n/locales.html</link>
 	</tutorials>
 	</tutorials>
 	<methods>
 	<methods>
@@ -47,6 +48,7 @@
 			<description>
 			<description>
 				Adds a message involving plural translation if nonexistent, followed by its translation.
 				Adds a message involving plural translation if nonexistent, followed by its translation.
 				An additional context could be used to specify the translation context or differentiate polysemic words.
 				An additional context could be used to specify the translation context or differentiate polysemic words.
+				[b]Note:[/b] Plurals are only supported in [url=$DOCS_URL/tutorials/i18n/localization_using_gettext.html]gettext-based translations (PO)[/url], not CSV.
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="erase_message">
 		<method name="erase_message">
@@ -86,6 +88,7 @@
 			<description>
 			<description>
 				Returns a message's translation involving plurals.
 				Returns a message's translation involving plurals.
 				The number [param n] is the number or quantity of the plural object. It will be used to guide the translation system to fetch the correct plural form for the selected language.
 				The number [param n] is the number or quantity of the plural object. It will be used to guide the translation system to fetch the correct plural form for the selected language.
+				[b]Note:[/b] Plurals are only supported in [url=$DOCS_URL/tutorials/i18n/localization_using_gettext.html]gettext-based translations (PO)[/url], not CSV.
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="get_translated_message_list" qualifiers="const">
 		<method name="get_translated_message_list" qualifiers="const">