2017-07-05 11:41:19 +02:00
|
|
|
|
/*
|
2019-01-09 11:25:21 +01:00
|
|
|
|
* Copyright (c) 2019 ETH Zürich, Educational Development and Technology (LET)
|
2017-07-05 11:41:19 +02:00
|
|
|
|
*
|
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
*/
|
|
|
|
|
|
2017-07-06 18:18:39 +02:00
|
|
|
|
namespace SafeExamBrowser.Contracts.I18n
|
2017-07-05 11:41:19 +02:00
|
|
|
|
{
|
2018-03-06 11:38:12 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Provides access to text data. IMPORTANT: To allow for a complete internationalization of the application, all text elements which
|
|
|
|
|
/// are visible to the user must be retrieved via this module!
|
|
|
|
|
/// </summary>
|
2017-07-06 18:18:39 +02:00
|
|
|
|
public interface IText
|
2017-07-05 11:41:19 +02:00
|
|
|
|
{
|
2017-10-10 10:17:28 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Initializes the text module, e.g. loads text data from the specified text resource.
|
|
|
|
|
/// </summary>
|
|
|
|
|
void Initialize(ITextResource resource);
|
|
|
|
|
|
2017-07-12 15:36:30 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the text associated with the specified key. If the key was not found, a default text indicating
|
2017-10-10 10:17:28 +02:00
|
|
|
|
/// that the given key is not configured will be returned.
|
2017-07-12 15:36:30 +02:00
|
|
|
|
/// </summary>
|
2017-08-03 15:35:22 +02:00
|
|
|
|
string Get(TextKey key);
|
2017-07-05 11:41:19 +02:00
|
|
|
|
}
|
|
|
|
|
}
|