Browse files

Slightly updated readme

  • Loading branch information...
1 parent 4e1aa13 commit 3594bb7a659046a27f4b31721e9e818534702397 @Belelros committed Apr 16, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 readme.md
View
6 readme.md
@@ -23,10 +23,12 @@ The "hello" and "img" words serve as sort of key so it's easier to locate the tr
index-es.json:
+```javascript
{
"hello": "Hola!"
"img" : "Esto es una imagen!"
}
+```
### Call the plugin!
@@ -88,13 +90,15 @@ If the key for a given value contains nested values, it will try change them all
index-es.json:
+```javascript
{
"hello": "Hola!"
"img" : {
"text" : "Esto es una imagen!",
"src" : "linktootherimage.jpg"
}
}
+```
The *text* attribute will replace the normal behaviour and will follow the aforementioned rules to translate the element. The remaining attributes will be directly changed on the element.
@@ -134,4 +138,4 @@ Written by Antonio Laguna (@Belelros)
Please use it, and contribute changes.
Based on Jim Garvin's Localisation jQuery plugin.
-http://keith-wood.name/localisation.html
+https://github.com/coderifous/jquery-localize

0 comments on commit 3594bb7

Please sign in to comment.