IBM工作灯 - 如何更改默认的"工作灯设置"串?工作灯、如何更改、IBM、QUOT

2023-09-07 23:07:39 作者:等待是最初の苍老

有没有办法来改变默认的工作灯设置字符串Android的OptionsMenu,由工作灯提供的?

解决方案

更新:更正答案有点...

是的。

开启yourApp.js(位于 yourProject \ APPS \ yourApp \共同

wlCommonInit添加下列对象()

  WL.ClientMessages.wlSettings =הגדרותוורקלייט;
 

这也是在启用翻译培训模块。

(重新)构建和部署,推出Android模拟器或设备

工作灯设置会是这个样子,所以当翻译成希伯来文:

的一些注意事项:

确保到Eclipse工作区的编码变更为UTF-8(在Eclipse preferences>工作空间>文本文件编码)。您将需要以后创建一个新的工作灯项目。 如果您添加安卓targetSdkVersion =10或以上的应用程序的Andr​​oidManifest.xml中,该OptionsMenu不会显示为谷歌跳槽这个AP​​I级别到动作条,这是不是在工作灯尚未公布。 和快速仅供参考,以确保你知道这个功能是不是意味着对最终用户的消费一旦转移到生产(​​可适合在企业内部的应用程序给员工,但不是你的普通最终用户;你不'T希望他们改变工作灯服务器URL ...。)的 要更好地与工作灯熟悉,请通过 IBM工作灯入门培训课程的。 IBM F V 1.11

Is there a way to change the default "Worklight Settings" string in Android's OptionsMenu, as provided by Worklight?

解决方案

Update: corrected the answer a bit...

Yes.

Open yourApp.js (located at yourProject\apps\yourApp\common)

Add the following object before wlCommonInit():

WL.ClientMessages.wlSettings = "הגדרות וורקלייט";

This is also mentioned in slide 8 in the Enabling Translation training module.

(Re-)Build and deploy, launch in Android emulator or device

Worklight Settings will now look like so when translated to Hebrew:

Some notes:

Make sure to change the Eclipse workspace encoding to "UTF-8" (in Eclipse Preferences > Workspace > Text file encoding). You will need to create a new Worklight project afterwards. If you add android:targetSdkVersion="10" or above to the application's AndroidManifest.xml, the OptionsMenu will not display as Google switched in this API Level to ActionBar, which is not yet available in Worklight. And a quick FYI to make sure you are aware that this feature is not meant for end-user consumption once moving to Production (it can fit for in-house apps to employees, but not your regular end-users; You don't want them to change the Worklight Server URL... ;). To better familiarize with Worklight, please go through the IBM Worklight Getting Started training modules.