Author: ncuesta
Date: 2010-05-13 20:20:42 +0200 (Thu, 13 May 2010)
New Revision: 29440
Modified:
plugins/ncJavascriptLocalizationPlugin/README
Log:
Updated README file
Modified: plugins/ncJavascriptLocalizationPlugin/README
===================================================================
--- plugins/ncJavascriptLocalizationPlugin/README 2010-05-13 18:14:40 UTC
(rev 29439)
+++ plugins/ncJavascriptLocalizationPlugin/README 2010-05-13 18:20:42 UTC
(rev 29440)
@@ -21,6 +21,10 @@
$ svn co
http://svn.symfony-project.com/plugins/ncJavascriptLocalizationPlugin plugins/
+ * Publish plugin's assets:
+
+ $ ./symfony plugin:publish-assets
+
* Enable the module in your `settings.yml` (optional): nc_js_l10n
[yml]
@@ -100,3 +104,13 @@
// Do your trick!
}
}
+
+Usage
+-----
+
+Now you can use the `__(string)` function in your javascript scripts to
localize strings:
+
+ [javascript]
+ alert(__('My localized string'));
+
+And they will be translated using the configured catalogue (default catalogue
is `nc_js_l10n`).
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.