Browse files

Simplified sample code in "jQuery.preferCulture"

After having read this a couple of times now, having the HTML markup at
the start of the code sample does not help at all. It takes some time to
figure out that the first line duplicates the description of the
sentence before "if the application has included only the neutral "fr"
  • Loading branch information...
eric-brechemier committed Dec 14, 2010
1 parent 210befd commit 06ec37a22bba5267ecf896c63abfe753dccd0689
Showing with 0 additions and 3 deletions.
  1. +0 −3
@@ -117,8 +117,6 @@ restarts using the corresponding neutral cultures. For example, if the
application has included only the neutral "fr" culture, any of these would
select it:
-&lt;script src="" type="text/javascript">&lt;/script>
-&lt;script type="text/javascript">
alert( // "fr"
@@ -127,7 +125,6 @@ alert( // "fr"
jQuery.preferCulture(["es-MX", "fr-FR"]);
alert( // "fr"
In any case, if no match is found the neutral English culture "en" is selected

0 comments on commit 06ec37a

Please sign in to comment.