cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shazron <...@git.apache.org>
Subject [GitHub] cordova-plugin-camera pull request: CB-7667 iOS8: Handle case wher...
Date Tue, 12 May 2015 05:02:41 GMT
Github user shazron commented on the pull request:

    https://github.com/apache/cordova-plugin-camera/pull/49#issuecomment-101133525
  
    I believe localization should never be up to the user of the component; the component
itself should handle localization seamlessly.
    
    This is how the Cordova Media Capture plugin does it:
    1. https://github.com/apache/cordova-plugin-media-capture/tree/master/src/ios/CDVCapture.bundle
    2. https://github.com/apache/cordova-plugin-media-capture/blob/f5514cabe19648a4c952bf05c09e088510895165/src/ios/CDVCapture.m#L39
    
    To add more localizations, just add the appropriate .lproj folder with a Localizable.strings
file -- send pull requests for adding each language as volunteers provide the strings.
    
    In cordova-ios 4.0.x (coming in the future), these resource API functions will be available
for plugin authors so they can easily localize their plugins: https://github.com/apache/cordova-ios/blob/ddadf8992bb4b34cd728ed9a21e880ad20e551db/CordovaLib/Classes/Public/CDVPlugin%2BResources.m#L24



---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


Mime
View raw message