Skip to content

Commit a184439

Browse files
committed
Merge pull request #108617 from Calinou/doc-translation-po-plurals
Document Translation plurals requiring the use of the gettext PO format
2 parents d98a2d2 + 837d299 commit a184439

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/classes/Translation.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
</description>
99
<tutorials>
1010
<link title="Internationalizing games">$DOCS_URL/tutorials/i18n/internationalizing_games.html</link>
11+
<link title="Localization using gettext">$DOCS_URL/tutorials/i18n/localization_using_gettext.html</link>
1112
<link title="Locales">$DOCS_URL/tutorials/i18n/locales.html</link>
1213
</tutorials>
1314
<methods>
@@ -47,6 +48,7 @@
4748
<description>
4849
Adds a message involving plural translation if nonexistent, followed by its translation.
4950
An additional context could be used to specify the translation context or differentiate polysemic words.
51+
[b]Note:[/b] Plurals are only supported in [url=$DOCS_URL/tutorials/i18n/localization_using_gettext.html]gettext-based translations (PO)[/url], not CSV.
5052
</description>
5153
</method>
5254
<method name="erase_message">
@@ -86,6 +88,7 @@
8688
<description>
8789
Returns a message's translation involving plurals.
8890
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.
91+
[b]Note:[/b] Plurals are only supported in [url=$DOCS_URL/tutorials/i18n/localization_using_gettext.html]gettext-based translations (PO)[/url], not CSV.
8992
</description>
9093
</method>
9194
<method name="get_translated_message_list" qualifiers="const">

0 commit comments

Comments
 (0)