LOC

public static class LOC
Used a placeholder which is used by LocalizationProcessor application to create contextId mapped localized strings.

Methods

COMMANDNAME

#Since v5.0
public static string COMMANDNAME(string english)
Command names that need to be localized should call this function. The COMMANDNAME function doesn't actually do anything but return the original string. The LocalizationProcessor application walks through the source code of a project and looks for LOC.COMMANDNAME and builds a record for each command name for the translators that can be used by developers in a commands overridden Rhino.Commands.Command.LocalName which should call Rhino.UI.Localization.LocalizeCommandName(EnglishName)
english (string)[in] The English string to localize.

CON

#Since v7.0 Obsolete v7.1
public static LocalizeStringPair CON(string english, int contextid)
removedDon't copy and paste context IDs
DO NOT use this function, it is a trap to determine where context IDs have been copied from other, already extracted, strings.
english (string)The English name.
contextid (int)Copied context id.
English name.

CON

#Since v5.0
public static LocalizeStringPair CON(string english, object assemblyFromObject)
Command option name strings that need to be localized should call this function. The CON function doesn't actually do anything but return the original string. The LocalizationProcessor application walks through the source code of a project and looks for LOC.CON. The function is then replaced with a call to Localization.LocalizeCommandOptionName using a unique context ID.
english (string)[in] The English string to localize.
assemblyFromObject (object)[in] The object that identifies the assembly that owns the command option name.
Returns localized string pair with both the English and local names set to the English value.

CON

#Since v5.0
public static LocalizeStringPair CON(string english)
Command option name strings that need to be localized should call this function. The CON function doesn't actually do anything but return the original string. The LocalizationProcessor application walks through the source code of a project and looks for LOC.CON. The function is then replaced with a call to Localization.LocalizeCommandOptionName using a unique context ID.
english (string)[in] The English string to localize.
Returns localized string pair with both the English and local names set to the English value.

COV

#Since v5.0
public static LocalizeStringPair COV(string english, object assemblyFromObject)
Command option name strings that need to be localized should call this function. The COV function doesn't actually do anything but return the original string. The LocalizationProcessor application walks through the source code of a project and looks for LOC.COV. The function is then replaced with a call to Localization.LocalizeCommandOptionValue using a unique context ID.
english (string)[in] The English string to localize.
assemblyFromObject (object)[in] The object that identifies the assembly that owns the command option value.
Returns localized string pair with both the English and local names set to the English value.

COV

#Since v5.0
public static LocalizeStringPair COV(string english)
Command option name strings that need to be localized should call this function. The COV function doesn't actually do anything but return the original string. The LocalizationProcessor application walks through the source code of a project and looks for LOC.COV. The function is then replaced with a call to Localization.LocalizeCommandOptionValue using a unique context ID.
english (string)[in] The English string to localize.
Returns localized string pair with both the English and local names set to the English value.

STR

#Since v7.0 Obsolete v7.1
public static string STR(string english, int contextid)
removedDon't copy and paste context IDs
DO NOT use this function, it is a trap to determine where context IDs have been copied from other, already extracted, strings.
english (string)The English name.
contextid (int)Copied context id.
English name.

STR

#Since v5.0
public static string STR(string english, object assemblyOrObject)
Similar to string.Format(string, object) function.
english (string)The English name.
assemblyOrObject (object)Unused.
English name.

STR

#Since v5.0
public static string STR(string english)
Strings that need to be localized should call this function. The STR function doesn't actually do anything but return the original string. The LocalizationProcessor application walks through the source code of a project and looks for LOC.STR. The function is then replaced with a call to Localization.LocalizeString using a unique context ID.
english (string)[in] The English string to localize.