Added placeholder-msg support and more documentation to jquery.localize
authorTrevor Parscal <tparscal@wikimedia.org>
Mon, 30 Jul 2012 21:43:58 +0000 (14:43 -0700)
committerTrevor Parscal <tparscal@wikimedia.org>
Tue, 31 Jul 2012 00:10:30 +0000 (17:10 -0700)
commit55dac1f933f7c78d3fbcac4c3ba59cb62ab59b01
tree1ce3031d372a1becebc4a12859ac35e7f12cbd28
parente11e9d871bdeba54f7578e2c95d1801c7089661c
Added placeholder-msg support and more documentation to jquery.localize

* Added examples of all options (prefix, keys and params)
* Added example of raw attribute being used to bypass escaping
* Added documentation to code where it seemed clarification was needed
* Reduce duplication and simplified  some unnecessarily complex statements
* Added test for new placeholder-msg attribute support
* Made adding more attributes in the future easier
* Moved message wrapper function out of the localize function so we aren't defining it each time localize is used

Change-Id: I77593acf4c1b3974d502a1a8382cca9267af2d41
RELEASE-NOTES-1.20
resources/jquery/jquery.localize.js
tests/qunit/suites/resources/jquery/jquery.localize.test.js