]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Removed view and entity ECML.
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 26 Apr 2010 21:39:22 +0000 (21:39 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 26 Apr 2010 21:39:22 +0000 (21:39 +0000)
Updated language strings.

git-svn-id: http://code.elgg.org/elgg/trunk@5890 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/ecml/languages/en.php
mod/ecml/start.php

index 11db26a6252b99f144a57e6507c44ac2307c9b98..dfe6b3f505fec32ce0ecba51afaf12117e8e0b92 100644 (file)
@@ -13,29 +13,21 @@ $english = array(
        'ecml' => 'ECML',
        'ecml:help' => 'ECML Help',
 
-
        // views
        'ecml:views:annotation_generic_comment' => 'Comments',
 
        // keywords
-       'ecml:keywords:desc:entity' => 'Displays a list of any Elgg entity.',
-       'ecml:keywords:usage:entity' => '[entity] supports all options in elgg_get_entities()',
-
-       'ecml:keywords:desc:view' => 'Displays any Elgg view.',
-       'ecml:keywords:usage:view' => '[view src="valid/view" arg1=value1 arg2=value2]',
-
-       'ecml:keywords:desc:googlemaps' => 'Embed a Google Map.',
-       'ecml:keywords:usage:entity' => '[googlemaps src="URL"] Use the link code from Google Maps as the src.',
-
-       'ecml:keywords:desc:slideshare' => 'Embed a Slideshare slide.',
-       'ecml:keywords:usage:entity' => '[slideshare id="slideshare_id"] Use the Wordpress.com embed code.',
+       'ecml:keywords:googlemaps:desc' => 'Embed a Google Map.',
+       'ecml:keywords:googlemaps:usage' => '[googlemaps src="URL"] Use the link code from Google Maps as the src.',
 
-       'ecml:keywords:desc:vimeo' => 'Embed a Vimeo video.',
-       'ecml:keywords:usage:videmo' => '[videmo src="URL"] Use a standard Vimeo URL as the source.',
+       'ecml:keywords:slideshare:desc' => 'Embed a Slideshare slide.',
+       'ecml:keywords:slideshare:usage' => '[slideshare id="slideshare_id"] Use the Wordpress.com embed code.',
 
-       'ecml:keywords:desc:youtube' => 'Embed a YouTube video.',
-       'ecml:keywords:usage:entity' => '[youtube src="URL"] Use a standard YouTube URL as the source.',
+       'ecml:keywords:vimeo:desc' => 'Embed a Vimeo video.',
+       'ecml:keywords:videmo:usage' => '[videmo src="URL"] Use a standard Vimeo URL as the source.',
 
+       'ecml:keywords:youtube:desc' => 'Embed a YouTube video.',
+       'ecml:keywords:youtube:usage' => '[youtube src="URL"] Use a standard YouTube URL as the source.',
 
        // keyword help
        'ecml:keywords_title' => 'Keywords',
index f48aa2d253c767eda0be2e43282973361f75776a..4ea50766eb3734c6abd7ece95a450c4659744d94 100644 (file)
@@ -141,8 +141,6 @@ function ecml_keyword_hook($hook, $type, $value, $params) {
        // I keep going back and forth about entity and view. They're powerful, but
        // a great way to let a site get hacked if the admin doesn't lock them down.
        $keywords = array(
-               'entity',
-               'view',
                'youtube',
                'slideshare',
                'vimeo',
@@ -157,8 +155,8 @@ function ecml_keyword_hook($hook, $type, $value, $params) {
        foreach ($keywords as $keyword) {
                $value[$keyword] = array(
                        'view' => "ecml/keywords/$keyword",
-                       'description' => elgg_echo("ecml:keywords:desc:$keyword"),
-                       'usage' => elgg_echo("ecml:keywords:usage:$keyword")
+                       'description' => elgg_echo("ecml:keywords:$keyword:desc"),
+                       'usage' => elgg_echo("ecml:keywords:$keyword:usage")
                );
        }