~alexlauni/do-plugins/bansheeplugin

« back to all changes in this revision

Viewing changes to Translate/src/TranslateEngine.cs

  • Committer: Alex Launi
  • Date: 2009-01-27 04:01:24 UTC
  • mfrom: (276.37.17 do-plugins)
  • Revision ID: alex.launi@gmail.com-20090127040124-5xqay74rbincyeu3
mergeĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Translate.cs created with MonoDevelop
 
2
// User: chris at 6:28 PMĀ 1/22/2009
 
3
//
 
4
// To change standard headers go to Edit->Preferences->Coding->Standard Headers
 
5
//
 
6
 
 
7
using System;
 
8
using System.Collections.Generic;
 
9
 
 
10
namespace Translate
 
11
{
 
12
        
 
13
        public class TranslateEngine
 
14
        {
 
15
                
 
16
                static TranslateEngine ()
 
17
                {
 
18
                        LoadValuesFromPrefs ();
 
19
                }
 
20
                
 
21
                public static ITranslateProvider Translator { get; private set; }
 
22
                
 
23
                public static void LoadValuesFromPrefs()
 
24
                {
 
25
                        Translator = TranslateProviderFactory.GetProviderFromPreferences ();
 
26
                }
 
27
        }
 
28
}