aboutsummaryrefslogtreecommitdiffstats
path: root/cordova-plugin-ios-app-language
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2017-03-03 17:10:32 +0000
committerDave Arter <davea@mysociety.org>2017-06-22 16:32:07 +0100
commitf29bbfaff87a505c2b23b2e3b020b9483319f1ea (patch)
tree6715815ed9e0d24d218953065af5fbc18533176a /cordova-plugin-ios-app-language
parent88b724b8bc7aa4932c1ddc03c580152dc6aaf492 (diff)
[CuidoMiCiudad] Add cobrand
This is the companion cobrand for www.cuidomiciudad.do. Whilst primarily providing the templates and styling for the cobrand, this commit also: - gettext-merge to call msgmerge with --no-wrap, matching the fixmystreet code - Allows localisation of several templates and UI components e.g. back buttons: - The back buttons were automatically being generated by jQuery Mobile, which wasn’t using the correct localisation of ‘Back’. Adding them to the DOM explicitly with the correct translation ensures they appear as they should. - Adds a plugin for overriding the iOS display name - Add a plugin for changing the app’s language easily - Makes it easier for cobrands to customise pin icons on the map (CONFIG.PINS)
Diffstat (limited to 'cordova-plugin-ios-app-language')
-rw-r--r--cordova-plugin-ios-app-language/package.json28
-rw-r--r--cordova-plugin-ios-app-language/plugin.xml22
2 files changed, 50 insertions, 0 deletions
diff --git a/cordova-plugin-ios-app-language/package.json b/cordova-plugin-ios-app-language/package.json
new file mode 100644
index 0000000..04af06d
--- /dev/null
+++ b/cordova-plugin-ios-app-language/package.json
@@ -0,0 +1,28 @@
+{
+ "name": "cordova-plugin-ios-app-language",
+ "version": "1.0.0",
+ "description": "\n Cordova/Phonegap plugin that allows you to control the iOS localization used by the UI\n ",
+ "cordova": {
+ "id": "cordova-plugin-ios-app-language",
+ "platforms": [
+ "ios"
+ ]
+ },
+ "keywords": [
+ "cordova",
+ "ios",
+ "app",
+ "name",
+ "cfbundlelocalizations",
+ "ecosystem:cordova",
+ "cordova-ios"
+ ],
+ "engines": [
+ {
+ "name": "cordova",
+ "version": ">=3.0.0"
+ }
+ ],
+ "author": "",
+ "license": "MIT"
+}
diff --git a/cordova-plugin-ios-app-language/plugin.xml b/cordova-plugin-ios-app-language/plugin.xml
new file mode 100644
index 0000000..8e6d20a
--- /dev/null
+++ b/cordova-plugin-ios-app-language/plugin.xml
@@ -0,0 +1,22 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<plugin id="cordova-plugin-ios-app-language" version="1.0.0" xmlns="http://apache.org/cordova/ns/plugins/1.0">
+ <name>iOS App Localization</name>
+ <author>mySociety</author>
+ <description>
+ Cordova/Phonegap plugin that allows you to control the iOS localization used by the UI
+ </description>
+ <keywords>cordova, ios, app, name, cfbundlelocalizations</keywords>
+ <license>MIT</license>
+ <engines>
+ <engine name="cordova" version=">=3.0.0"/>
+ </engines>
+
+ <preference name="IOS_LOCALIZATION"/>
+ <platform name="ios">
+ <config-file target="*-Info.plist" parent="CFBundleLocalizations">
+ <array>
+ <string>$IOS_LOCALIZATION</string>
+ </array>
+ </config-file>
+ </platform>
+</plugin> \ No newline at end of file