cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mwbro...@apache.org
Subject [28/46] docs commit: amidst globalization api
Date Wed, 12 Jun 2013 17:51:03 GMT
amidst globalization api


Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/9dcee9b2
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/9dcee9b2
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/9dcee9b2

Branch: refs/heads/master
Commit: 9dcee9b22c1033dd3ff41cba1eacc960ac30ffbe
Parents: e2d7868
Author: Mike Sierra <letmespellitoutforyou@gmail.com>
Authored: Fri May 17 09:34:07 2013 -0400
Committer: Mike Sierra <letmespellitoutforyou@gmail.com>
Committed: Fri May 17 09:34:07 2013 -0400

----------------------------------------------------------------------
 .../file/filetransfererror/filetransfererror.md |  8 ++--
 .../file/fileuploadoptions/fileuploadoptions.md |  2 +-
 .../globalization.getCurrencyPattern.md         | 44 +++++++++++---------
 .../globalization/globalization.getDateNames.md |  4 +-
 .../globalization.getDatePattern.md             | 14 +++----
 .../globalization.getFirstDayOfWeek.md          |  4 +-
 .../globalization.getLocaleName.md              |  4 +-
 .../globalization.getNumberPattern.md           | 22 +++++-----
 .../globalization.getPreferredLanguage.md       |  4 +-
 .../globalization.isDayLightSavingsTime.md      |  2 +-
 .../globalization.numberToString.md             |  4 +-
 .../globalization/globalization.stringToDate.md | 18 ++++----
 .../globalization.stringToNumber.md             |  4 +-
 13 files changed, 70 insertions(+), 64 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/9dcee9b2/docs/en/edge/cordova/file/filetransfererror/filetransfererror.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/cordova/file/filetransfererror/filetransfererror.md b/docs/en/edge/cordova/file/filetransfererror/filetransfererror.md
index 6f23f8d..abb135f 100644
--- a/docs/en/edge/cordova/file/filetransfererror/filetransfererror.md
+++ b/docs/en/edge/cordova/file/filetransfererror/filetransfererror.md
@@ -25,10 +25,10 @@ A `FileTransferError` object is passed to an error callback when an error
occurs
 Properties
 ----------
 
-- __code__ One of the predefined error codes listed below. (Number)
-- __source__ URI to the source. (String)
-- __target__ URI to the target. (String)
-- __http_status__ HTTP status code.  This attribute is only available when a response code
is received from the HTTP connection. (Number)
+- __code__: One of the predefined error codes listed below. (Number)
+- __source__: URI to the source. (String)
+- __target__: URI to the target. (String)
+- __http_status__: HTTP status code.  This attribute is only available when a response code
is received from the HTTP connection. (Number)
 
 Constants
 ---------

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/9dcee9b2/docs/en/edge/cordova/file/fileuploadoptions/fileuploadoptions.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/cordova/file/fileuploadoptions/fileuploadoptions.md b/docs/en/edge/cordova/file/fileuploadoptions/fileuploadoptions.md
index b9e8c83..e0e6fe2 100644
--- a/docs/en/edge/cordova/file/fileuploadoptions/fileuploadoptions.md
+++ b/docs/en/edge/cordova/file/fileuploadoptions/fileuploadoptions.md
@@ -44,4 +44,4 @@ upload script.
 WP7 Quirk
 ---------
 
-- __chunkedMode:__ Ignored on WP7.
+- __chunkedMode:__: Ignored on WP7.

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/9dcee9b2/docs/en/edge/cordova/globalization/globalization.getCurrencyPattern.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/cordova/globalization/globalization.getCurrencyPattern.md b/docs/en/edge/cordova/globalization/globalization.getCurrencyPattern.md
index 968a940..724c43c 100644
--- a/docs/en/edge/cordova/globalization/globalization.getCurrencyPattern.md
+++ b/docs/en/edge/cordova/globalization/globalization.getCurrencyPattern.md
@@ -29,18 +29,22 @@ Description
 -----------
 
 Returns the pattern to the `successCallback` with a `properties` object
-as a parameter. That object should have the following properties:
+as a parameter. That object should contain the following properties:
 
-- __pattern__ {String}: The currency pattern for formatting and parsing currency values.
 The patterns follow Unicode Technical Standard #35. <http://unicode.org/reports/tr35/tr35-4.html>
-- __code__ {String}: The ISO 4217 currency code for the pattern.
-- __fraction__ {Number}: The number of fractional digits to use when parsing and formatting
currency.
-- __rounding__ {Number}: The rounding increment to use when parsing and formatting.
-- __decimal__: {String}: The decimal symbol to use for parsing and formatting.
-- __grouping__: {String}: The grouping symbol to use for parsing and formatting.
+- __pattern__: The currency pattern to format and parse currency values.  The patterns follow
Unicode Technical Standard #35. <http://unicode.org/reports/tr35/tr35-4.html>. _(String)_
+- __code__: The ISO 4217 currency code for the pattern. _(String)_
+- __fraction__: The number of fractional digits to use when parsing and formatting currency.
_(Number)_
+- __rounding__: The rounding increment to use when parsing and formatting. _(Number)_
+- __decimal__: The decimal symbol to use for parsing and formatting. _(String)_
+- __grouping__: The grouping symbol to use for parsing and formatting. _(String)_
 
-The inbound `currencyCode` parameter should be a String of one of the ISO 4217 currency codes,
for example 'USD'.
+The inbound `currencyCode` parameter should be a `String` of one of
+the ISO 4217 currency codes, for example 'USD'.
 
-If there is an error obtaining the pattern, then the `errorCallback` is invoked with a GlobalizationError
object as a parameter. The expected code for this error is GlobalizationError.FORMATTING\_ERROR.
+If there is an error obtaining the pattern, then the `errorCallback`
+is invoked with a `GlobalizationError` object as a parameter. The
+expected code for this error is
+`GlobalizationError.FORMATTING\_ERROR`.
 
 Supported Platforms
 -------------------
@@ -52,16 +56,9 @@ Supported Platforms
 Quick Example
 -------------
 
-In the case when the browser is set to the en\_US locale and the selected currency is United
States Dollars, this should display a popup dialog with text similar to:
-
-    pattern: $#,##0.##;($#,##0.##)
-    code: USD
-    fraction: 2
-    rounding: 0
-    decimal: .
-    grouping: ,
-
-.
+When the browser is set to the `en\_US` locale and the selected currency
+is United States Dollars, this example should display a popup dialog with text
+similar to the results that follow:
 
     navigator.globalization.getCurrencyPattern(
       'USD',
@@ -74,6 +71,15 @@ In the case when the browser is set to the en\_US locale and the selected
curren
       function () {alert('Error getting pattern\n');}
     );
 
+Expected result:
+
+    pattern: $#,##0.##;($#,##0.##)
+    code: USD
+    fraction: 2
+    rounding: 0
+    decimal: .
+    grouping: ,
+
 Full Example
 ------------
 

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/9dcee9b2/docs/en/edge/cordova/globalization/globalization.getDateNames.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/cordova/globalization/globalization.getDateNames.md b/docs/en/edge/cordova/globalization/globalization.getDateNames.md
index fceaf64..70b7552 100644
--- a/docs/en/edge/cordova/globalization/globalization.getDateNames.md
+++ b/docs/en/edge/cordova/globalization/globalization.getDateNames.md
@@ -29,7 +29,7 @@ Description
 
 It returns the array of names to the `successCallback` with a properties object as a parameter.
That object should have a `value` property with an Array of Strings. That array will be the
names starting from either the first month in the year or the first day of the week, depending
on the option selected.
 
-If there is an error obtaining the names, then the `errorCallback` is invoked with a GlobalizationError
object as a parameter. The expected code for this error is GlobalizationError.UNKNOWN\_ERROR.
+If there is an error obtaining the names, then the `errorCallback` is invoked with a `GlobalizationError`
object as a parameter. The expected code for this error is `GlobalizationError.UNKNOWN\_ERROR`.
 
 `options.type` can be 'narrow', or 'wide'.
 `options.item` can be 'months', or 'days'.
@@ -48,7 +48,7 @@ Supported Platforms
 Quick Example
 -------------
 
-In the case when the browser is set to the en\_US locale, this should display a series of
12 popup dialogs, one per month, with text similar to "month: January"
+When the browser is set to the en\_US locale, this should display a series of 12 popup dialogs,
one per month, with text similar to "month: January"
 
     navigator.globalization.getDateNames(
       function (names) {

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/9dcee9b2/docs/en/edge/cordova/globalization/globalization.getDatePattern.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/cordova/globalization/globalization.getDatePattern.md b/docs/en/edge/cordova/globalization/globalization.getDatePattern.md
index 03ae3c7..2662634 100644
--- a/docs/en/edge/cordova/globalization/globalization.getDatePattern.md
+++ b/docs/en/edge/cordova/globalization/globalization.getDatePattern.md
@@ -20,7 +20,7 @@ license: Licensed to the Apache Software Foundation (ASF) under one
 globalization.getDatePattern
 ===========
 
-Returns a pattern string for formatting and parsing dates according to the client's user
preferences.
+Returns a pattern string to format and parse dates according to the client's user preferences.
 
     navigator.globalization.getDatePattern(successCallback, errorCallback, options);
     
@@ -29,12 +29,12 @@ Description
 
 It returns the pattern to the `successCallback` with a properties object as a parameter.
That object should have the following properties:
 
-- pattern {String}: The date and time pattern for formatting and parsing dates.  The patterns
follow Unicode Technical Standard #35. <http://unicode.org/reports/tr35/tr35-4.html>
-- timezone {String}: The abbreviated name of the time zone on the client
-- utc\_offset {Number}: The current difference in seconds between the client's time zone
and coordinated universal time.
-- dst\_offset {Number}: The current daylight saving time offset in seconds between the client's
non-daylight saving's time zone and the client's daylight saving's time zone.
+- __pattern__: The date and time pattern to format and parse dates.  The patterns follow
Unicode Technical Standard #35. <http://unicode.org/reports/tr35/tr35-4.html>. _(String)_
+- __timezone__: The abbreviated name of the time zone on the client. _(String)_
+- __utc\_offset__: The current difference in seconds between the client's time zone and coordinated
universal time. _(Number)_
+- __dst\_offset__: The current daylight saving time offset in seconds between the client's
non-daylight saving's time zone and the client's daylight saving's time zone. _(Number)_
 
-If there is an error obtaining the pattern, then the `errorCallback` is invokedwith a GlobalizationError
object as a parameter. The expected code for this error is GlobalizationError.PATTERN\_ERROR.
+If there is an error obtaining the pattern, then the `errorCallback` is invokedwith a `GlobalizationError`
object as a parameter. The expected code for this error is `GlobalizationError.PATTERN\_ERROR`.
 
 `options.formatLength` can be 'short', 'medium', 'long', or 'full'.
 `options.selector` can be 'date', 'time' or 'date and time'.
@@ -53,7 +53,7 @@ Supported Platforms
 Quick Example
 -------------
 
-In the case when the browser is set to the en\_US locale, this should display a popup dialog
with text similar to "pattern: M/d/yyyy h:mm a".
+When the browser is set to the en\_US locale, this should display a popup dialog with text
similar to "pattern: M/d/yyyy h:mm a".
 
     function checkDatePattern() {
       navigator.globalization.getDatePattern(

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/9dcee9b2/docs/en/edge/cordova/globalization/globalization.getFirstDayOfWeek.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/cordova/globalization/globalization.getFirstDayOfWeek.md b/docs/en/edge/cordova/globalization/globalization.getFirstDayOfWeek.md
index 84b23eb..ff8856a 100644
--- a/docs/en/edge/cordova/globalization/globalization.getFirstDayOfWeek.md
+++ b/docs/en/edge/cordova/globalization/globalization.getFirstDayOfWeek.md
@@ -29,7 +29,7 @@ Description
 
 The days of the week are numbered starting from 1 where 1 is considered to be Sunday. It
returns the day to the `successCallback` with a properties object as a parameter. That object
should have a `value` property with a Number value.
 
-If there is an error obtaining the pattern, then the `errorCallback` is invoked with a GlobalizationError
object as a parameter. The expected code for this error is GlobalizationError.UNKNOWN\_ERROR.
+If there is an error obtaining the pattern, then the `errorCallback` is invoked with a `GlobalizationError`
object as a parameter. The expected code for this error is `GlobalizationError.UNKNOWN\_ERROR`.
 
 Supported Platforms
 -------------------
@@ -42,7 +42,7 @@ Supported Platforms
 Quick Example
 -------------
 
-In the case when the browser is set to the en\_US locale, this should display a popup dialog
with text similar to "day: 1".
+When the browser is set to the en\_US locale, this should display a popup dialog with text
similar to "day: 1".
 
     navigator.globalization.getFirstDayOfWeek(
       function (day) {alert('day: ' + day.value + '\n');},

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/9dcee9b2/docs/en/edge/cordova/globalization/globalization.getLocaleName.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/cordova/globalization/globalization.getLocaleName.md b/docs/en/edge/cordova/globalization/globalization.getLocaleName.md
index 6f23bc6..952b153 100644
--- a/docs/en/edge/cordova/globalization/globalization.getLocaleName.md
+++ b/docs/en/edge/cordova/globalization/globalization.getLocaleName.md
@@ -31,7 +31,7 @@ Description
 It returns the locale identifier string to the `successCallback` with a
 properties object as a parameter. That object should have a `value` property with a String
value.
 
-If there is an error getting the locale, then the `errorCallback` is invoked with a GlobalizationError
object as a parameter. The expected code for this error is GlobalizationError.UNKNOWN\_ERROR.
+If there is an error getting the locale, then the `errorCallback` is invoked with a `GlobalizationError`
object as a parameter. The expected code for this error is `GlobalizationError.UNKNOWN\_ERROR`.
 
 Supported Platforms
 -------------------
@@ -44,7 +44,7 @@ Supported Platforms
 Quick Example
 -------------
 
-In the case when the browser is set to the en\_US locale, this should display a popup dialog
with the text "locale: en\_US".
+When the browser is set to the en\_US locale, this should display a popup dialog with the
text "locale: en\_US".
 
     navigator.globalization.getLocaleName(
       function (locale) {alert('locale: ' + locale.value + '\n');},

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/9dcee9b2/docs/en/edge/cordova/globalization/globalization.getNumberPattern.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/cordova/globalization/globalization.getNumberPattern.md b/docs/en/edge/cordova/globalization/globalization.getNumberPattern.md
index 0af8331..56bcc6f 100644
--- a/docs/en/edge/cordova/globalization/globalization.getNumberPattern.md
+++ b/docs/en/edge/cordova/globalization/globalization.getNumberPattern.md
@@ -20,7 +20,7 @@ license: Licensed to the Apache Software Foundation (ASF) under one
 globalization.getNumberPattern
 ===========
 
-Returns a pattern string for formatting and parsing numbers according to the client's user
preferences.
+Returns a pattern string to format and parse numbers according to the client's user preferences.
 
     navigator.globalization.getNumberPattern(successCallback, errorCallback, options);
     
@@ -29,16 +29,16 @@ Description
 
 It returns the pattern to the `successCallback` with a properties object as a parameter.
That object should have the following properties:
 
-- pattern {String}: The number pattern for formatting and parsing numbers.  The patterns
follow Unicode Technical Standard #35. <http://unicode.org/reports/tr35/tr35-4.html>
-- symbol {String}: The symbol to be used when formatting and parsing e.g., percent or currency
symbol.
-- fraction {Number}: The number of fractional digits to use when parsing and formatting numbers.
-- rounding {Number}: The rounding increment to use when parsing and formatting.
-- positive {String}: The symbol to use for positive numbers when parsing and formatting.
-- negative: {String}: The symbol to use for negative numbers when parsing and formatting.
-- decimal: {String}: The decimal symbol to use for parsing and formatting.
-- grouping: {String}: The grouping symbol to use for parsing and formatting.
+- __pattern__: The number pattern to format and parse numbers.  The patterns follow Unicode
Technical Standard #35. <http://unicode.org/reports/tr35/tr35-4.html>. _(String)_
+- __symbol__: The symbol to be used when formatting and parsing e.g., percent or currency
symbol. _(String)_
+- __fraction__: The number of fractional digits to use when parsing and formatting numbers.
_(Number)_
+- __rounding__: The rounding increment to use when parsing and formatting. _(Number)_
+- __positive__: The symbol to use for positive numbers when parsing and formatting. _(String)_
+- __negative__: The symbol to use for negative numbers when parsing and formatting. _(String)_
+- __decimal__: The decimal symbol to use for parsing and formatting. _(String)_
+- __grouping__: The grouping symbol to use for parsing and formatting. _(String)_
 
-If there is an error obtaining the pattern, then the `errorCallback` is invoked with a GlobalizationError
object as a parameter. The expected code for this error is GlobalizationError.PATTERN\_ERROR.
+If there is an error obtaining the pattern, then the `errorCallback` is invoked with a `GlobalizationError`
object as a parameter. The expected code for this error is `GlobalizationError.PATTERN\_ERROR`.
 
 `options.type` can be 'decimal', 'percent', or 'currency'.
 The default options are `{type:'decimal'}`. The `options` parameter is optional.
@@ -54,7 +54,7 @@ Supported Platforms
 Quick Example
 -------------
 
-In the case when the browser is set to the en\_US locale, this should display a popup dialog
with text similar to:
+When the browser is set to the en\_US locale, this should display a popup dialog with text
similar to:
 
     pattern: #,##0.###
     symbol: .

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/9dcee9b2/docs/en/edge/cordova/globalization/globalization.getPreferredLanguage.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/cordova/globalization/globalization.getPreferredLanguage.md b/docs/en/edge/cordova/globalization/globalization.getPreferredLanguage.md
index a92a9b3..a436f9f 100644
--- a/docs/en/edge/cordova/globalization/globalization.getPreferredLanguage.md
+++ b/docs/en/edge/cordova/globalization/globalization.getPreferredLanguage.md
@@ -31,7 +31,7 @@ Description
 It returns the language identifier string to the `successCallback` with a
 properties object as a parameter. That object should have a `value` property with a String
value.
 
-If there is an error getting the language, then the `errorCallback` is invoked with a GlobalizationError
object as a parameter. The expected code for this error is GlobalizationError.UNKNOWN\_ERROR.
+If there is an error getting the language, then the `errorCallback` is invoked with a `GlobalizationError`
object as a parameter. The expected code for this error is `GlobalizationError.UNKNOWN\_ERROR`.
 
 Supported Platforms
 -------------------
@@ -44,7 +44,7 @@ Supported Platforms
 Quick Example
 -------------
 
-In the case when the browser is set to the en\_US locale, this should display a popup dialog
with the text "language: English".
+When the browser is set to the en\_US locale, this should display a popup dialog with the
text "language: English".
 
     navigator.globalization.getPreferredLanguage(
       function (language) {alert('language: ' + language.value + '\n');},

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/9dcee9b2/docs/en/edge/cordova/globalization/globalization.isDayLightSavingsTime.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/cordova/globalization/globalization.isDayLightSavingsTime.md b/docs/en/edge/cordova/globalization/globalization.isDayLightSavingsTime.md
index 5d2b701..e01b226 100644
--- a/docs/en/edge/cordova/globalization/globalization.isDayLightSavingsTime.md
+++ b/docs/en/edge/cordova/globalization/globalization.isDayLightSavingsTime.md
@@ -31,7 +31,7 @@ It returns whether or not daylight savings time is in effect to the `successCall
 
 The inbound parameter `date` should be of type `Date`.
 
-If there is an error reading the date, then the `errorCallback` is invoked. The expected
code for this error is GlobalizationError.UNKNOWN\_ERROR.
+If there is an error reading the date, then the `errorCallback` is invoked. The expected
code for this error is `GlobalizationError.UNKNOWN\_ERROR`.
 
 Supported Platforms
 -------------------

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/9dcee9b2/docs/en/edge/cordova/globalization/globalization.numberToString.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/cordova/globalization/globalization.numberToString.md b/docs/en/edge/cordova/globalization/globalization.numberToString.md
index 74e6ce9..ed61012 100644
--- a/docs/en/edge/cordova/globalization/globalization.numberToString.md
+++ b/docs/en/edge/cordova/globalization/globalization.numberToString.md
@@ -29,7 +29,7 @@ Description
 
 It returns the formatted number string to the `successCallback` with a properties object
as a parameter. That object should have a `value` property with a String value.
 
-If there is an error formatting the number, then the `errorCallback` is invoked with a GlobalizationError
object as a parameter. The expected code for this error is GlobalizationError.FORMATTING\_ERROR.
+If there is an error formatting the number, then the `errorCallback` is invoked with a `GlobalizationError`
object as a parameter. The expected code for this error is `GlobalizationError.FORMATTING\_ERROR`.
 
 `options.type` can be 'decimal', 'percent', or 'currency'. The default options are `{type:'decimal'}`.
The `options` parameter is optional.
 
@@ -44,7 +44,7 @@ Supported Platforms
 Quick Example
 -------------
 
-In the case when the browser is set to the en\_US locale, this should display a popup dialog
with text similar to "number: 3.142"
+When the browser is set to the en\_US locale, this should display a popup dialog with text
similar to "number: 3.142"
 
     navigator.globalization.numberToString(
       3.1415926,

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/9dcee9b2/docs/en/edge/cordova/globalization/globalization.stringToDate.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/cordova/globalization/globalization.stringToDate.md b/docs/en/edge/cordova/globalization/globalization.stringToDate.md
index 6849d0a..29d8e39 100644
--- a/docs/en/edge/cordova/globalization/globalization.stringToDate.md
+++ b/docs/en/edge/cordova/globalization/globalization.stringToDate.md
@@ -31,13 +31,13 @@ Description
 
 It returns the date to the success callback with a properties object as a parameter. That
object should have the following properties:
 
-- year {Number}: The four digit year
-- month {Number}: The month from (0 - 11)
-- day {Number}: The day from (1 - 31)
-- hour {Number}: The hour from (0 - 23)
-- minute {Number}: The minute from (0 - 59)
-- second {Number}: The second from (0 - 59)
-- millisecond {Number}: The milliseconds (from 0 - 999), not available on all platforms
+- __year__: The four digit year. _(Number)_
+- __month__: The month from (0 - 11). _(Number)_
+- __day__: The day from (1 - 31). _(Number)_
+- __hour__: The hour from (0 - 23). _(Number)_
+- __minute__: The minute from (0 - 59). _(Number)_
+- __second__: The second from (0 - 59). _(Number)_
+- __millisecond__: The milliseconds (from 0 - 999), not available on all platforms. _(Number)_
 
 The inbound `dateString` parameter should be of type `String`.
 
@@ -47,7 +47,7 @@ The inbound `dateString` parameter should be of type `String`.
 The default options are `{formatLength:'short', selector:'date and time'}`.
 The options parameter is optional.
 
-If there is an error parsing the date string, then the `errorCallback` is invoked with a
GlobalizationError object as a parameter. The expected code for this error is GlobalizationError.PARSING\_ERROR.
+If there is an error parsing the date string, then the `errorCallback` is invoked with a
`GlobalizationError` object as a parameter. The expected code for this error is `GlobalizationError.PARSING\_ERROR`.
 
 Supported Platforms
 -------------------
@@ -60,7 +60,7 @@ Supported Platforms
 Quick Example
 -------------
 
-In the case when the browser is set to the en\_US locale, this should display a popup dialog
with text similar to "month:8 day:25 year:2012". Note that the month integer is one less than
the string, as the month integer represents an index.
+When the browser is set to the en\_US locale, this should display a popup dialog with text
similar to "month:8 day:25 year:2012". Note that the month integer is one less than the string,
as the month integer represents an index.
 
     navigator.globalization.stringToDate(
       '9/25/2012',

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/9dcee9b2/docs/en/edge/cordova/globalization/globalization.stringToNumber.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/cordova/globalization/globalization.stringToNumber.md b/docs/en/edge/cordova/globalization/globalization.stringToNumber.md
index 7928e6c..d6ecb19 100644
--- a/docs/en/edge/cordova/globalization/globalization.stringToNumber.md
+++ b/docs/en/edge/cordova/globalization/globalization.stringToNumber.md
@@ -29,7 +29,7 @@ Description
 
 It returns the number to the `successCallback` with a properties object as a parameter. That
object should have a `value` property with a Number value.
 
-If there is an error parsing the number string, then the `errorCallback` is invoked with
a GlobalizationError object as a parameter. The expected code for this error is GlobalizationError.PARSING\_ERROR.
+If there is an error parsing the number string, then the `errorCallback` is invoked with
a `GlobalizationError` object as a parameter. The expected code for this error is `GlobalizationError.PARSING\_ERROR`.
 
 `options.type` can be 'decimal', 'percent', or 'currency'.
 The default options are `{type:'decimal'}`. The `options` parameter is optional.
@@ -45,7 +45,7 @@ Supported Platforms
 Quick Example
 -------------
 
-In the case when the browser is set to the en\_US locale, this should display a popup dialog
with text similar to "number: 1234.56".
+When the browser is set to the en\_US locale, this should display a popup dialog with text
similar to "number: 1234.56".
 
     navigator.globalization.stringToNumber(
       '1234.56',


Mime
View raw message