Skip to content

Commit

Permalink
Improved wording on default culture
Browse files Browse the repository at this point in the history
  • Loading branch information
InfinitiesLoop committed Jun 8, 2010
1 parent 099e13a commit d074e1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -149,7 +149,7 @@ jQuery.localize("myplugin", "fr", {
var obj = jQuery.localize("myplugin", "fr"); var obj = jQuery.localize("myplugin", "fr");
alert(obj.foo); // "foo" alert(obj.foo); // "foo"
</pre> </pre>
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. 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.
<pre> <pre>
jQuery.localize("myplugin", "", { jQuery.localize("myplugin", "", {
foo: "foo (en)", foo: "foo (en)",
Expand Down Expand Up @@ -197,7 +197,7 @@ Using this mechanism, the 'fr' culture will be created if it does not exist. And
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. 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.
</p> </p>
<p> <p>
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: 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:
<pre> <pre>
jQuery.cultures.en = { jQuery.cultures.en = {
// A unique name for the culture in the form &lt;language code&gt;-&lt;country/region code&lt; // A unique name for the culture in the form &lt;language code&gt;-&lt;country/region code&lt;
Expand Down

0 comments on commit d074e1f

Please sign in to comment.