[TIMOB-14763] iOS: titleid and messageid properties don't work for AlertDialog
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-09-22T04:57:23.000+0000 |
Affected Version/s | Release 3.1.1, Release 3.2.0 |
Fix Version/s | Release 6.1.0 |
Components | iOS |
Labels | alert, alertDialog, ios |
Reporter | Matej |
Assignee | Hans Knöchel |
Created | 2013-08-04T21:47:04.000+0000 |
Updated | 2016-11-17T19:01:00.000+0000 |
Description
titleid and messageid property doesn't work for alertDialog.
*i18n/en/strings.xml*
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<string name="hello">Hello</string>
<string name="world">world!</string>
</resources>
*app.js*
var win = Ti.UI.createWindow();
var alert = Ti.UI.createAlertDialog({
titleid: "hello",
messageid: "world"
});
console.log(L("hello") + " " + L("world"));
alert.show();
win.open();
*Docs*
http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.AlertDialog-property-titleid
Tested and confirmed on iOS 6 simulator with Ti SDK 3.1.1 GA and 3.2 CI.
Tested and confirmed on iOS 7.0.3 simulator with Ti SDK 3.1.3 GA
Tested with SDK 3.2.1.GA, Ti/CLI 3.2.1, iOS 7.0.3 simulator, Android 4.2.2. It works fine on Android. However, the properties do not work on iOS as reported.
titleid and messageid work fine on Android. However, buttonnames do not.
The problem was that the
langConversationTable
was not triggered from it's delegate, because the alert-dialog proxy extended theTiProxy
and notTiViewProxy
that has the method. PR: https://github.com/appcelerator/titanium_mobile/pull/8379 *Demo*:i18n/en/strings.xml
app.js
CR and FT passed. PR merged.
Verified as fixed, additionally tested with special characters. Tested On: iPhone 6 Plus 10.1.1 Device & Simulator iPhone 5S 9.3.5 Device Mac OS Sierra (10.12.1) Ti SDK: 6.1.0.v20161116071014 Appc Studio: 4.8.0.201611121409 Appc NPM: 4.2.8 App CLI: 6.1.0-14 Xcode 8.1 Node v4.4.7 *Closing ticket.*