简体   繁体   English

如何使用回调函数在Tizen中获取语言?

[英]How to use Callback function to get language in Tizen?

I want to write a native application in c to get the value of language in Tizen. 我想在c中编写一个本机应用程序来获取Tizen中的语言值。 The compiled c code must be run on the Tizen phone and I need to get the Value of language. 编译后的c代码必须在Tizen手机上运行,​​我需要获得语言的价值。 The callback function i got from Tizen source is 我从Tizen源获得的回调函数是

int app_cb_broker_appcore_lang_changed(void *data)
{
    app_language_changed_cb lang_changed_cb;

    lang_changed_cb = app_context.callbacks->language_changed;

    if (lang_changed_cb != NULL)
    {
            lang_changed_cb(app_context.user_data);
    }

    return 0;
}

How to use this function to get the value of current language? 如何使用此函数获取当前语言的值?

Since you are trying to work with the Native API and Tizen is a quite new enterprise and even though Tizen is documented on the Web API side it is not fully documented on Native API, why don't try to ask some of people that are developing it they might know better. 由于您正在尝试使用Native API而且Tizen是一个非常新的企业,即使Tizen在Web API方面有文档记录,但它没有在Native API上完整记录,为什么不尝试询问一些正在开发的人它们可能会更清楚。

On their site they give an irc room https://www.tizen.org/community/irc : 在他们的网站上,他们给了一个irc房间https://www.tizen.org/community/irc

Primary Channel: #tizen at irc.freenode.net: 24/7 open discussion. 主要频道: #tizen at irc.freenode.net: 24/7 open discussion.

Or the mailing list: https://www.tizen.org/community/mailing-lists 或邮件列表: https//www.tizen.org/community/mailing-lists

Later edit: I went myself on that IRC room and asked for some details on deployment and Native API and I received (after half an hour) this link: http://giscaro.wordpress.com/ so there can be a response there. 稍后编辑:我自己去了那个IRC房间并询问了有关部署和Native API的一些细节,我收到了(半小时后)这个链接: http//giscaro.wordpress.com/所以可以在那里得到回复。 I would have asked your question but I don't know what you want to do exactly. 我会问你的问题,但我不知道你想做什么。 If you do not have a IRC client installed you can use this link to login automatically to the #tizen chat room via a webchat, with a random username(You must complete Recapcha). 如果您没有安装IRC客户端,您可以使用此链接通过#tizen聊天自动登录#tizen聊天室,并使用随机用户名(您必须完成Recapcha)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM