You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Sijmen Mulder (JIRA)" <ji...@apache.org> on 2012/06/05 12:00:23 UTC
[jira] [Created] (CB-863) Splash screen on iOS not using localized
UILaunchImageFile value
Sijmen Mulder created CB-863:
--------------------------------
Summary: Splash screen on iOS not using localized UILaunchImageFile value
Key: CB-863
URL: https://issues.apache.org/jira/browse/CB-863
Project: Apache Cordova
Issue Type: Bug
Environment: iOS
Reporter: Sijmen Mulder
Priority: Minor
While {{CDVViewController}}’s {{showSplashScreen}} uses the value of UILaunchImageFile to locate the splash image, it does not use the localized value, while the OS itself does. This means the incorrect splash screen can be shown.
Fix in {{CDVViewController showSplashScreen}}:
{code}
- NSString* launchImageFile = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"UILaunchImageFile"];
+ NSString* launchImageFile = [[[NSBundle mainBundle] localizedInfoDictionary] objectForKey:@"UILaunchImageFile"];
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CB-863) Splash screen on iOS not using localized
UILaunchImageFile value
Posted by "Sijmen Mulder (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sijmen Mulder updated CB-863:
-----------------------------
Attachment: CB-863.diff
Attached a patch
> Splash screen on iOS not using localized UILaunchImageFile value
> ----------------------------------------------------------------
>
> Key: CB-863
> URL: https://issues.apache.org/jira/browse/CB-863
> Project: Apache Cordova
> Issue Type: Bug
> Environment: iOS
> Reporter: Sijmen Mulder
> Priority: Minor
> Attachments: CB-863.diff
>
>
> While {{CDVViewController}}’s {{showSplashScreen}} uses the value of UILaunchImageFile to locate the splash image, it does not use the localized value, while the OS itself does. This means the incorrect splash screen can be shown.
> On the iPhone, the {{UILaunchImageFile}} value isn’t used at all.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CB-863) Splash screen on iOS not using localized
UILaunchImageFile value
Posted by "Sijmen Mulder (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sijmen Mulder updated CB-863:
-----------------------------
Description:
While {{CDVViewController}}’s {{showSplashScreen}} uses the value of UILaunchImageFile to locate the splash image, it does not use the localized value, while the OS itself does. This means the incorrect splash screen can be shown.
On the iPhone, the {{UILaunchImageFile}} value isn’t used at all.
was:
While {{CDVViewController}}’s {{showSplashScreen}} uses the value of UILaunchImageFile to locate the splash image, it does not use the localized value, while the OS itself does. This means the incorrect splash screen can be shown.
Fix in {{CDVViewController showSplashScreen}}:
{code}
- NSString* launchImageFile = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"UILaunchImageFile"];
+ NSString* launchImageFile = [[[NSBundle mainBundle] localizedInfoDictionary] objectForKey:@"UILaunchImageFile"];
{code}
> Splash screen on iOS not using localized UILaunchImageFile value
> ----------------------------------------------------------------
>
> Key: CB-863
> URL: https://issues.apache.org/jira/browse/CB-863
> Project: Apache Cordova
> Issue Type: Bug
> Environment: iOS
> Reporter: Sijmen Mulder
> Priority: Minor
> Attachments: CB-863.diff
>
>
> While {{CDVViewController}}’s {{showSplashScreen}} uses the value of UILaunchImageFile to locate the splash image, it does not use the localized value, while the OS itself does. This means the incorrect splash screen can be shown.
> On the iPhone, the {{UILaunchImageFile}} value isn’t used at all.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CB-863) Splash screen on iOS not using localized
UILaunchImageFile value
Posted by "Sijmen Mulder (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sijmen Mulder updated CB-863:
-----------------------------
Attachment: CB-863.patch
> Splash screen on iOS not using localized UILaunchImageFile value
> ----------------------------------------------------------------
>
> Key: CB-863
> URL: https://issues.apache.org/jira/browse/CB-863
> Project: Apache Cordova
> Issue Type: Bug
> Environment: iOS
> Reporter: Sijmen Mulder
> Priority: Minor
> Attachments: CB-863.diff, CB-863.patch
>
>
> While {{CDVViewController}}’s {{showSplashScreen}} uses the value of UILaunchImageFile to locate the splash image, it does not use the localized value, while the OS itself does. This means the incorrect splash screen can be shown.
> On the iPhone, the {{UILaunchImageFile}} value isn’t used at all.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-863) Splash screen on iOS not using
localized UILaunchImageFile value
Posted by "Sijmen Mulder (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13290158#comment-13290158 ]
Sijmen Mulder commented on CB-863:
----------------------------------
Turns out that {{localizedInfoDictionary}} returns only localized keys so this breaks if localization isn’t used. I’ve attached a new patch (v2) that uses {{objectForInfoDictionaryKey}} instead, which uses the localized value if available or the regular one otherwise.
> Splash screen on iOS not using localized UILaunchImageFile value
> ----------------------------------------------------------------
>
> Key: CB-863
> URL: https://issues.apache.org/jira/browse/CB-863
> Project: Apache Cordova
> Issue Type: Bug
> Environment: iOS
> Reporter: Sijmen Mulder
> Priority: Minor
> Fix For: 1.9.0
>
> Attachments: CB-863.diff, CB-863.patch
>
>
> While {{CDVViewController}}’s {{showSplashScreen}} uses the value of UILaunchImageFile to locate the splash image, it does not use the localized value, while the OS itself does. This means the incorrect splash screen can be shown.
> On the iPhone, the {{UILaunchImageFile}} value isn’t used at all.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (CB-863) Splash screen on iOS not using localized
UILaunchImageFile value
Posted by "Filip Maj (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Filip Maj reassigned CB-863:
----------------------------
Assignee: Shazron Abdullah
Shaz, do you think we can get this in for 1.9? We should be tagging this week.
> Splash screen on iOS not using localized UILaunchImageFile value
> ----------------------------------------------------------------
>
> Key: CB-863
> URL: https://issues.apache.org/jira/browse/CB-863
> Project: Apache Cordova
> Issue Type: Bug
> Environment: iOS
> Reporter: Sijmen Mulder
> Assignee: Shazron Abdullah
> Priority: Minor
> Fix For: 1.9.0
>
> Attachments: CB-863 v2.patch, CB-863.diff, CB-863.patch
>
>
> While {{CDVViewController}}’s {{showSplashScreen}} uses the value of UILaunchImageFile to locate the splash image, it does not use the localized value, while the OS itself does. This means the incorrect splash screen can be shown.
> On the iPhone, the {{UILaunchImageFile}} value isn’t used at all.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CB-863) Splash screen on iOS not using localized
UILaunchImageFile value
Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shazron Abdullah updated CB-863:
--------------------------------
Fix Version/s: 1.9.0
Too late to go into 1.8.0, will patch and test for 1.9.0
> Splash screen on iOS not using localized UILaunchImageFile value
> ----------------------------------------------------------------
>
> Key: CB-863
> URL: https://issues.apache.org/jira/browse/CB-863
> Project: Apache Cordova
> Issue Type: Bug
> Environment: iOS
> Reporter: Sijmen Mulder
> Priority: Minor
> Fix For: 1.9.0
>
> Attachments: CB-863.diff, CB-863.patch
>
>
> While {{CDVViewController}}’s {{showSplashScreen}} uses the value of UILaunchImageFile to locate the splash image, it does not use the localized value, while the OS itself does. This means the incorrect splash screen can be shown.
> On the iPhone, the {{UILaunchImageFile}} value isn’t used at all.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CB-863) Splash screen on iOS not using localized
UILaunchImageFile value
Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shazron Abdullah resolved CB-863.
---------------------------------
Resolution: Fixed
Commits:
1. https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-ios.git;a=commit;h=22cd6c060e0bd166edd8e2a6840b17c4f535c825
2. https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-ios.git;a=commit;h=53fe8523b9ed89fe1808d15330f65b7db087682c
3. https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-ios.git;a=commit;h=5412e6a69014bb67ba00817f243bfb9f7f23f0a7
> Splash screen on iOS not using localized UILaunchImageFile value
> ----------------------------------------------------------------
>
> Key: CB-863
> URL: https://issues.apache.org/jira/browse/CB-863
> Project: Apache Cordova
> Issue Type: Bug
> Environment: iOS
> Reporter: Sijmen Mulder
> Assignee: Shazron Abdullah
> Priority: Minor
> Fix For: 1.9.0
>
> Attachments: CB-863 v2.patch, CB-863.diff, CB-863.patch
>
>
> While {{CDVViewController}}’s {{showSplashScreen}} uses the value of UILaunchImageFile to locate the splash image, it does not use the localized value, while the OS itself does. This means the incorrect splash screen can be shown.
> On the iPhone, the {{UILaunchImageFile}} value isn’t used at all.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CB-863) Splash screen on iOS not using localized
UILaunchImageFile value
Posted by "Sijmen Mulder (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sijmen Mulder updated CB-863:
-----------------------------
Attachment: CB-863 v2.patch
> Splash screen on iOS not using localized UILaunchImageFile value
> ----------------------------------------------------------------
>
> Key: CB-863
> URL: https://issues.apache.org/jira/browse/CB-863
> Project: Apache Cordova
> Issue Type: Bug
> Environment: iOS
> Reporter: Sijmen Mulder
> Priority: Minor
> Fix For: 1.9.0
>
> Attachments: CB-863 v2.patch, CB-863.diff, CB-863.patch
>
>
> While {{CDVViewController}}’s {{showSplashScreen}} uses the value of UILaunchImageFile to locate the splash image, it does not use the localized value, while the OS itself does. This means the incorrect splash screen can be shown.
> On the iPhone, the {{UILaunchImageFile}} value isn’t used at all.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira