The objective of this library is to be extendable, that is, to allow the possibility to add more languages.

DESCRIPTION OF THE PROJECT

The project Microsoft.International is as follows:

Extend A.png

FormatCultureInfo: culture that parses numeric values to string.
FormatCultureInfoAttribute: definition of the attribute used to create a new formatter.
EuropeNumericFormatter: main class which gets the correct formatter for the specified culture.
EuropeFormatter: base class for each formatter. This is an abstract class that must be inherited to be used.
FRStdFormatter: French formatter that implements the class EuropeFormatter.

HOW TO IMPLEMENT A NEW FORMATTER

To add a new formatter, add a class name, for example RUStdFormatter for a Russian formatter. This class must inherit EuropeFormatter and implements all based-methods. Your class should look like this:

Extend B.JPG

The namespace must be: Microsoft.International.Formatters.
Add the valid FormatCultureAttribute: Extend C.JPG
The class must be internal and sealed.
The method ConvertToLocalizedText must return the numeric value translated in Russian.

Last edited Jul 7, 2009 at 2:44 PM by FabienLavocat, version 5

Comments

No comments yet.