2017-07-05 11:41:19 +02:00
|
|
|
|
/*
|
2024-03-05 18:37:42 +01:00
|
|
|
|
* Copyright (c) 2024 ETH Zürich, IT Services
|
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/.
|
|
|
|
|
*/
|
|
|
|
|
|
2019-08-30 09:55:26 +02:00
|
|
|
|
namespace SafeExamBrowser.I18n.Contracts
|
2017-07-05 11:41:19 +02:00
|
|
|
|
{
|
2018-03-06 11:38:12 +01:00
|
|
|
|
/// <summary>
|
2019-03-15 09:44:17 +01:00
|
|
|
|
/// Provides access to text data.
|
2018-03-06 11:38:12 +01:00
|
|
|
|
/// </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>
|
2020-03-09 17:35:48 +01:00
|
|
|
|
/// Initializes the text module, i.e. loads text data according to the currently active UI culture.
|
2017-10-10 10:17:28 +02:00
|
|
|
|
/// </summary>
|
2020-03-09 17:35:48 +01:00
|
|
|
|
void Initialize();
|
2017-10-10 10:17:28 +02:00
|
|
|
|
|
2017-07-12 15:36:30 +02:00
|
|
|
|
/// <summary>
|
2020-03-09 17:35:48 +01:00
|
|
|
|
/// Gets the text associated with the specified key. If the key was not found, an error message indicating the missing key 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
|
|
|
|
}
|
|
|
|
|
}
|