Move localized number formatting methods to TranslationServer
Co-Authored-By: Pāvels Nadtočajevs <7645683+bruvzg@users.noreply.github.com>
This commit is contained in:
@ -1075,13 +1075,13 @@
|
||||
Returns the dictionary of the supported OpenType variation coordinates.
|
||||
</description>
|
||||
</method>
|
||||
<method name="format_number" qualifiers="const">
|
||||
<method name="format_number" qualifiers="const" deprecated="Use [method TranslationServer.format_number] instead.">
|
||||
<return type="String" />
|
||||
<param index="0" name="number" type="String" />
|
||||
<param index="1" name="language" type="String" default="""" />
|
||||
<description>
|
||||
Converts a number from the Western Arabic (0..9) to the numeral systems used in [param language].
|
||||
If [param language] is omitted, the active locale will be used.
|
||||
Converts a number from Western Arabic (0..9) to the numeral system used in the given [param language].
|
||||
If [param language] is an empty string, the active locale will be used.
|
||||
</description>
|
||||
</method>
|
||||
<method name="free_rid">
|
||||
@ -1197,12 +1197,13 @@
|
||||
Converts readable feature, variation, script, or language name to OpenType tag.
|
||||
</description>
|
||||
</method>
|
||||
<method name="parse_number" qualifiers="const">
|
||||
<method name="parse_number" qualifiers="const" deprecated="Use [method TranslationServer.parse_number] instead.">
|
||||
<return type="String" />
|
||||
<param index="0" name="number" type="String" />
|
||||
<param index="1" name="language" type="String" default="""" />
|
||||
<description>
|
||||
Converts [param number] from the numeral systems used in [param language] to Western Arabic (0..9).
|
||||
Converts [param number] from the numeral system used in the given [param language] to Western Arabic (0..9).
|
||||
If [param language] is an empty string, the active locale will be used.
|
||||
</description>
|
||||
</method>
|
||||
<method name="parse_structured_text" qualifiers="const">
|
||||
@ -1214,11 +1215,12 @@
|
||||
Default implementation of the BiDi algorithm override function.
|
||||
</description>
|
||||
</method>
|
||||
<method name="percent_sign" qualifiers="const">
|
||||
<method name="percent_sign" qualifiers="const" deprecated="Use [method TranslationServer.get_percent_sign] instead.">
|
||||
<return type="String" />
|
||||
<param index="0" name="language" type="String" default="""" />
|
||||
<description>
|
||||
Returns percent sign used in the [param language].
|
||||
Returns the percent sign used in the given [param language].
|
||||
If [param language] is an empty string, the active locale will be used.
|
||||
</description>
|
||||
</method>
|
||||
<method name="save_support_data" qualifiers="const">
|
||||
|
||||
@ -1054,12 +1054,13 @@
|
||||
Returns the dictionary of the supported OpenType variation coordinates.
|
||||
</description>
|
||||
</method>
|
||||
<method name="_format_number" qualifiers="virtual const">
|
||||
<method name="_format_number" qualifiers="virtual const" deprecated="Use [method TranslationServer.format_number] instead.">
|
||||
<return type="String" />
|
||||
<param index="0" name="number" type="String" />
|
||||
<param index="1" name="language" type="String" />
|
||||
<description>
|
||||
Converts a number from the Western Arabic (0..9) to the numeral systems used in [param language].
|
||||
Converts a number from Western Arabic (0..9) to the numeral system used in the given [param language].
|
||||
If [param language] is an empty string, the active locale will be used.
|
||||
</description>
|
||||
</method>
|
||||
<method name="_free_rid" qualifiers="virtual required">
|
||||
@ -1163,12 +1164,13 @@
|
||||
Converts readable feature, variation, script, or language name to OpenType tag.
|
||||
</description>
|
||||
</method>
|
||||
<method name="_parse_number" qualifiers="virtual const">
|
||||
<method name="_parse_number" qualifiers="virtual const" deprecated="Use [method TranslationServer.parse_number] instead.">
|
||||
<return type="String" />
|
||||
<param index="0" name="number" type="String" />
|
||||
<param index="1" name="language" type="String" />
|
||||
<description>
|
||||
Converts [param number] from the numeral systems used in [param language] to Western Arabic (0..9).
|
||||
Converts [param number] from the numeral system used in the given [param language] to Western Arabic (0..9).
|
||||
If [param language] is an empty string, the active locale will be used.
|
||||
</description>
|
||||
</method>
|
||||
<method name="_parse_structured_text" qualifiers="virtual const">
|
||||
@ -1180,11 +1182,11 @@
|
||||
Default implementation of the BiDi algorithm override function.
|
||||
</description>
|
||||
</method>
|
||||
<method name="_percent_sign" qualifiers="virtual const">
|
||||
<method name="_percent_sign" qualifiers="virtual const" deprecated="Use [method TranslationServer.get_percent_sign] instead.">
|
||||
<return type="String" />
|
||||
<param index="0" name="language" type="String" />
|
||||
<description>
|
||||
Returns percent sign used in the [param language].
|
||||
Returns percent sign used in the given [param language].
|
||||
</description>
|
||||
</method>
|
||||
<method name="_reference_oversampling_level" qualifiers="virtual">
|
||||
|
||||
@ -33,6 +33,14 @@
|
||||
Compares two locales and returns a similarity score between [code]0[/code] (no match) and [code]10[/code] (full match).
|
||||
</description>
|
||||
</method>
|
||||
<method name="format_number" qualifiers="const">
|
||||
<return type="String" />
|
||||
<param index="0" name="number" type="String" />
|
||||
<param index="1" name="locale" type="String" />
|
||||
<description>
|
||||
Converts a number from Western Arabic (0..9) to the numeral system used in the given [param locale].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_all_countries" qualifiers="const">
|
||||
<return type="PackedStringArray" />
|
||||
<description>
|
||||
@ -92,6 +100,13 @@
|
||||
Returns the translation domain with the specified name. An empty translation domain will be created and added if it does not exist.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_percent_sign" qualifiers="const">
|
||||
<return type="String" />
|
||||
<param index="0" name="locale" type="String" />
|
||||
<description>
|
||||
Returns the percent sign used in the given [param locale].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_plural_rules" qualifiers="const">
|
||||
<return type="String" />
|
||||
<param index="0" name="locale" type="String" />
|
||||
@ -127,6 +142,14 @@
|
||||
Returns [code]true[/code] if a translation domain with the specified name exists.
|
||||
</description>
|
||||
</method>
|
||||
<method name="parse_number" qualifiers="const">
|
||||
<return type="String" />
|
||||
<param index="0" name="number" type="String" />
|
||||
<param index="1" name="locale" type="String" />
|
||||
<description>
|
||||
Converts [param number] from the numeral system used in the given [param locale] to Western Arabic (0..9).
|
||||
</description>
|
||||
</method>
|
||||
<method name="pseudolocalize" qualifiers="const">
|
||||
<return type="StringName" />
|
||||
<param index="0" name="message" type="StringName" />
|
||||
|
||||
Reference in New Issue
Block a user