69
|
1 // This file (TranslationSet.cs) is a part of the IBBoard project and is copyright 2010 IBBoard
|
|
2 //
|
|
3 // The file and the library/program it is in are licensed and distributed, without warranty, under the GNU Affero GPL license, either version 3 of the License or (at your option) any later version. Please see COPYING for more information and the full license.
|
|
4
|
|
5 using System;
|
|
6 using System.Collections.Generic;
|
|
7
|
|
8 namespace IBBoard.Lang
|
|
9 {
|
|
10 /// <summary>
|
|
11 /// A set of translations in a given language that allow setting of translations as well as getting
|
|
12 /// </summary>
|
|
13 public class ModifiableTranslationSet : AbstractTranslationSet
|
|
14 {
|
|
15 public ModifiableTranslationSet(string languageCode) : base(languageCode)
|
|
16 {
|
|
17 //Do nothing extra
|
|
18 }
|
|
19
|
|
20 public string this[string key]
|
|
21 {
|
|
22 set
|
|
23 {
|
|
24 translations[key] = value;
|
|
25 }
|
|
26 get
|
|
27 {
|
|
28 return base[key];
|
|
29 }
|
|
30 }
|
|
31 }
|
|
32 }
|