diff options
author | cash <cash.costello@gmail.com> | 2011-11-12 14:28:52 -0500 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-11-12 14:28:52 -0500 |
commit | 76bea966f7f93e719ccbf6e2350f647636d4da2a (patch) | |
tree | 87b7b8851b4161be827af5ee9a194fc3553ff29a /documentation/examples/plugins/languages/en.php | |
parent | 88d597c63a9691c9714e9db4dbe676028e548be8 (diff) | |
download | elgg-76bea966f7f93e719ccbf6e2350f647636d4da2a.tar.gz elgg-76bea966f7f93e719ccbf6e2350f647636d4da2a.tar.bz2 |
added better plugin skeleton and added documentation to some of the examples
Diffstat (limited to 'documentation/examples/plugins/languages/en.php')
-rw-r--r-- | documentation/examples/plugins/languages/en.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/documentation/examples/plugins/languages/en.php b/documentation/examples/plugins/languages/en.php new file mode 100644 index 000000000..35f838560 --- /dev/null +++ b/documentation/examples/plugins/languages/en.php @@ -0,0 +1,24 @@ +<?php +/** + * The core language file is in /languages/en.php and each plugin has its + * language files in a languages directory. To change a string, copy the + * mapping into this file. + * + * For example, to change the blog Tools menu item + * from "Blog" to "Rantings", copy this pair: + * 'blog' => "Blog", + * into the $mapping array so that it looks like: + * 'blog' => "Rantings", + * + * Follow this pattern for any other string you want to change. Make sure this + * plugin is lower in the plugin list than any plugin that it is modifying. + * + * If you want to add languages other than English, name the file according to + * the language's ISO 639-1 code: http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes + */ + +$mapping = array( + 'string:here' => 'Display string here', +); + +add_translation('en', $mapping); |