Skip to content

Commit d074e1f

Browse files
author
InfinitiesLoop
committed
Improved wording on default culture
1 parent 099e13a commit d074e1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ jQuery.localize("myplugin", "fr", {
149149
var obj = jQuery.localize("myplugin", "fr");
150150
alert(obj.foo); // "foo"
151151
</pre>
152-
Note that localize() will find the closest match available per the same semantics as the jQuery.findClosestCulture function. If there is no match, the translation given is for the neutral culture, if any.
152+
Note that localize() will find the closest match available per the same semantics as the jQuery.findClosestCulture function. If there is no match, the translation given is for the 'en' culture, if one was specified.
153153
<pre>
154154
jQuery.localize("myplugin", "", {
155155
foo: "foo (en)",
@@ -197,7 +197,7 @@ Using this mechanism, the 'fr' culture will be created if it does not exist. And
197197
Each culture is defined in its own script with the naming scheme jQuery.glob.&lt;code&gt;.js (along with its minified version, jQuery.glob.&lt;code&gt;.min.js). You may include any number of these scripts, making them available in the jQuery.cultures mapping. Including one of these scripts does NOT automatically make it the default culture selected with jQuery.culture.
198198
</p>
199199
<p>
200-
The neutral culture that comes with jQuery.glob.js is heavily commented, describing the purpose of each of the fields defined by a culture. Note that every culture includes all of these fields, even if they are the same as the netural culture. However, the script uses jQuery's $.extend to copy from the neutral culture, so looking at the raw scripts will only show you what is different in that culture from the neutral culture. The neutral culture is listed here along with the comments:
200+
The default culture that comes with jQuery.glob.js is 'en', and heavily commented, describing the purpose of each of the fields defined by a culture. Note that every culture includes all of these fields, even if they are the same as this culture. However, the script uses jQuery's $.extend to copy from this culture, so looking at the raw scripts will only show you what is different in that culture from 'en'. The 'en' culture is listed here along with the comments:
201201
<pre>
202202
jQuery.cultures.en = {
203203
// A unique name for the culture in the form &lt;language code&gt;-&lt;country/region code&lt;

0 commit comments

Comments
 (0)