BuildRequires: pkgconfig(smartreply)
BuildRequires: pkgconfig(key-manager)
BuildRequires: pkgconfig(ode)
+BuildRequires: pkgconfig(capi-system-system-settings)
Requires: ise-engine-tables
Requires: ise-engine-tables-zh
Requires: ise-engine-hangul
* limitations under the License.
*/
-#include <vconf.h>
+#include <system_settings.h>
#include <stdio.h>
#include <Ecore.h>
#include <dlog.h>
// get system display language
char* value = NULL;
- value = vconf_get_str(VCONFKEY_LANGSET);
- if (NULL == value) {
+ int ret = system_settings_get_value_string(SYSTEM_SETTINGS_KEY_LOCALE_LANGUAGE, &value);
+ if (ret != SYSTEM_SETTINGS_ERROR_NONE) {
LOGW("Fail to get display language");
return;
}
* limitations under the License.
*/
-#include <vconf.h>
+#include <system_settings.h>
#include <stdio.h>
#include <Ecore.h>
#include <dlog.h>
} else if (!strcmp(part, "elm.text.1")) {
if ((long)data == 0) {
char* value = NULL;
- value = vconf_get_str(VCONFKEY_LANGSET);
- if (NULL == value) {
- LOGD("Fail to get display language");
+ int ret = system_settings_get_value_string(SYSTEM_SETTINGS_KEY_LOCALE_LANGUAGE, &value);
+ if (ret != SYSTEM_SETTINGS_ERROR_NONE) {
+ LOGW("Fail to get display language");
return NULL;
}
LOGD("system language (%s)", value);
char system_lang[6] = {0, };
strncpy(system_lang, value , 5);
free(value);
+ value = NULL;
// confirm whether the system language is supported by stt engine or not.
// if supported, set the language