2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 #ifndef __TIZEN_APPFW_I18N_H__
19 #define __TIZEN_APPFW_I18N_H__
29 * @addtogroup CAPI_I18N_MODULE
34 * @brief Marks a string for translation, gets replaced with the translated string at runtime.
35 * @param [in] msg The string to be translated.
38 #define _(msg) i18n_get_text(msg)
42 * @brief Gets the localized translation for the specified string.
44 * @details If a translation was not found in the localization file(.po file), @a message is returned.
46 * @remarks Do not free returned value
48 * @param [in] message The string to be translated
49 * @return The localized translation for the given @a message on success, otherwise the given @a message.
51 char* i18n_get_text(const char *message);
61 #endif /* __TIZEN_APPFW_I18N_H__ */