Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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"
culture".
  • Loading branch information...
commit 06ec37a22bba5267ecf896c63abfe753dccd0689 1 parent 210befd
@eric-brechemier eric-brechemier authored
Showing with 0 additions and 3 deletions.
  1. +0 −3  README.md
View
3  README.md
@@ -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:
<pre>
-&lt;script src="jQuery.glob.fr.js" type="text/javascript">&lt;/script>
-&lt;script type="text/javascript">
jQuery.preferCulture("fr");
alert(jQuery.culture.name) // "fr"
@@ -127,7 +125,6 @@ alert(jQuery.culture.name) // "fr"
jQuery.preferCulture(["es-MX", "fr-FR"]);
alert(jQuery.culture.name) // "fr"
-&lt;/script>
</pre>
In any case, if no match is found the neutral English culture "en" is selected
Please sign in to comment.
Something went wrong with that request. Please try again.