Click here to Skip to main content
15,887,776 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
I want develope application for cross languagr support to font
Posted
Comments
Richard MacCutchan 16-Jul-12 4:53am    
Fine, please proceed, and when you have a proper question you may try asking it here.

1 solution

Hi,

Some salutions..

http://indiandotnet.wordpress.com/2009/04/24/multi-language-web-site-in-5-easy-steps-in-5-minutes/[^]

MultiLanguage Applications[^]


http://www.ezzylearning.com/tutorial.aspx?tid=3477182[^]

This is an example how we can achieve the same using our class....
C#
public class Translations
{
    private static string _es;
    private static string _en;

    public enum Languages
    {
        English,
        Español
    }

    public static Languages Language = Languages.English;

    public static string Hello()
    {
// You can use some sort of dictionary for Mapping...
        _en = "Hello"; _es = "Hola";
        return Text();
    }

    private static string Text()
    {
        if (Language == Languages.English && !String.IsNullOrEmpty(_en))
            return _en;

        if (Language == Languages.Español && !String.IsNullOrEmpty(_es))
            return _es;

        return "No translation";
    }
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900