Localization
Properties
Methods
Format an Area string from a number
Get a string version of a number in a given unit system / display mode.
public static string FormatNumber()
x,
The number to format into a string.
units,
The length unit for the number.
DistanceDisplayMode
mode,
How the number should be formatted.
precision,
The precision of the number.
appendUnitSystemName
Adds unit system name to the end of the number.
Returns: The formatted number.
Get a string version of a number in a given unit system / display mode.
public static string FormatNumber()
x,
The number to format into a string.
units,
The unit system for the number.
DistanceDisplayMode
mode,
How the number should be formatted.
precision,
The precision of the number.
appendUnitSystemName
Adds unit system name to the end of the number.
Returns: The formatted number.
Get a string version of a number.
Returns: The formatted number.
Format a Volume string from a number
Commands that need to be localized should call this function.
DO NOT use this function, it is a trap to determine where context IDs have been copied from other, already extracted, strings.
removedDon't copy and paste context IDs
Returns: The english string.
Look in the dialog item list for the specified key and return the translated localized string if the key is found otherwise return the English string.
Returns: Look in the dialog item list for the specified key and return the translated localized string if the key is found otherwise return the English string.
Look in the dialog item list for the specified key and return the translated localized string if the key is found otherwise return the English string.
Returns localized version of a given English string. This function should be auto-generated by the RmaLDotNetLocalizationProcessor application for every function that uses RMASTR.
Returns: The localized string.
DO NOT use this function, it is a trap to determine where context IDs have been copied from other, already extracted, strings.
removedDon't copy and paste context IDs
Returns: The english string.
Returns localized version of a given English string. This function should be auto-generated by the RmaLDotNetLocalizationProcessor application for every function that uses RMASTR.
Returns: The localized string.
Compares two strings. Digits in the strings are considered as numerical content rather than text. This test is not case-sensitive.
Returns: Returns zero if the strings are identical. Returns 1 if string1 has a greater value than string2. Returns -1 if string1 has a lesser value than string2.
Exceptions:
| ArgumentNullException |
Sets the Id used for Localization in RhinoCommon. Only useful for when using RhinoCommon outside of the Rhino process
Returns: true if the language id could be set
Gets localized unit system name. Uses current application locale id.
public static string UnitSystemName()
units,
The unit system.
capitalize,
true if the name should be capitalized.
singular,
true if the name is expressed for a singular element.
abbreviate
true if name should be the abbreviation.
Returns: The unit system name.