GitHub user dpogue opened a pull request:

    https://github.com/apache/cordova-lib/pull/453

    Support a display name via config.xml

    The W3C Widgets spec allows for a `short` attribute on the `<name>` element 
in config.xml, which is to be used for a display name:  
    https://www.w3.org/TR/widgets/#the-short-attribute
    
    This adds a new `shortName` function to ConfigParser, which will return the 
value of that attribute, falling back to returning the content of the `<name>` 
element.
    The `setShortName` function will attempt to set the attribute on the 
`<name>` element to the specified value. If the `<name>` element does not 
exist, it will be created with both the text content and the `short` attribute 
having the specified value.
    
    I've updated the legacy/compat project metadata helpers here, and will open 
pull requests against the  Platform API projects. I'm not entirely sure how to 
best approach that given the API addition to ConfigParser. Maybe it's best to 
test for the existence of the `shortName` function before calling it?

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/dpogue/cordova-lib short-name

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-lib/pull/453.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #453
    
----
commit 785c3caafdd09cc5f0a9022d78663c8399575862
Author: Darryl Pogue <[email protected]>
Date:   2016-06-05T03:34:51Z

    [CB-11120] Allow short/display name in config.xml
    
    This adds support for a "short" display name to be specified as an
    attribute of the `name` element in config.xml.
    
    This attribute is defined in the W3C Widgets spec, on which config.xml
    is loosely based:
    https://www.w3.org/TR/widgets/#the-short-attribute

commit 83f1a01b22d9e68130613d53a4a28eadc0d32a24
Author: Darryl Pogue <[email protected]>
Date:   2016-06-05T04:20:11Z

    [CB-10916] Support display name for iOS & Android

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to