diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-08 14:22:29 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-08 14:22:29 +0000 |
commit | 902c98e7d2f36f46ae340cf2616efd676ff6a3a5 (patch) | |
tree | 9be24e9927d942292f844b210941dcfc00effc68 | |
parent | 62da6bcca4eb09ce0d256242819675eda9526ee7 (diff) | |
download | elgg-902c98e7d2f36f46ae340cf2616efd676ff6a3a5.tar.gz elgg-902c98e7d2f36f46ae340cf2616efd676ff6a3a5.tar.bz2 |
Added extra translation strings to the widget canvas
git-svn-id: https://code.elgg.org/elgg/trunk@1796 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | languages/en.php | 45 | ||||
-rw-r--r-- | views/default/canvas/layouts/widgets.php | 14 |
2 files changed, 29 insertions, 30 deletions
diff --git a/languages/en.php b/languages/en.php index a07babe28..c01a2baab 100644 --- a/languages/en.php +++ b/languages/en.php @@ -170,11 +170,33 @@ 'access' => "Access",
/**
- * Dashboard
+ * Dashboard and widgets
*/
'dashboard' => "Dashboard",
- 'dashboard:nowidgets' => "Your dashboard is your gateway into the site. Click 'Edit page' to add widgets to keep track of content and your life within the system.",
+ 'dashboard:nowidgets' => "Your dashboard is your gateway into the site. Click 'Edit page' to add widgets to keep track of content and your life within the system.",
+
+ 'widgets:add' => 'Add widgets to your page',
+ 'widgets:add:description' => "Choose the features you want to add to your page by dragging them from the <b>Widget gallery</b> on the right, to any of the three widget areas below, and position them where you would like them to appear.
+
+To remove a widget drag it back to the <b>Widget gallery</b>.",
+ 'widgets:position:fixed' => '(Fixed position on page)',
+
+ 'widgets' => "Widgets",
+ 'widget' => "Widget",
+ 'item:object:widget' => "Widgets",
+ 'layout:customise' => "Customise layout",
+ 'widgets:gallery' => "Widget gallery",
+ 'widgets:leftcolumn' => "Left widgets",
+ 'widgets:fixed' => "Fixed position",
+ 'widgets:middlecolumn' => "Middle widgets",
+ 'widgets:rightcolumn' => "Right widgets",
+ 'widgets:profilebox' => "Profile box",
+ 'widgets:panel:save:success' => "Your widgets were successfully saved.",
+ 'widgets:panel:save:failure' => "There was a problem saving your widgets. Please try again.",
+ 'widgets:save:success' => "The widget was successfully saved.",
+ 'widgets:save:failure' => "We could not save your widget. Please try again.",
+
/**
* Groups
@@ -526,25 +548,6 @@ */
'importsuccess' => "Import of data was successful",
'importfail' => "OpenDD import of data failed.",
-
- /**
- * Widgets
- */
-
- 'widgets' => "Widgets",
- 'widget' => "Widget",
- 'item:object:widget' => "Widgets",
- 'layout:customise' => "Customise layout",
- 'widgets:gallery' => "Widget gallery",
- 'widgets:leftcolumn' => "Left widgets",
- 'widgets:fixed' => "Fixed position",
- 'widgets:middlecolumn' => "Middle widgets",
- 'widgets:rightcolumn' => "Right widgets",
- 'widgets:profilebox' => "Profile box",
- 'widgets:panel:save:success' => "Your widgets were successfully saved.",
- 'widgets:panel:save:failure' => "There was a problem saving your widgets. Please try again.",
- 'widgets:save:success' => "The widget was successfully saved.",
- 'widgets:save:failure' => "We could not save your widget. Please try again.",
/**
* Time
diff --git a/views/default/canvas/layouts/widgets.php b/views/default/canvas/layouts/widgets.php index aa5549a41..4305248b3 100644 --- a/views/default/canvas/layouts/widgets.php +++ b/views/default/canvas/layouts/widgets.php @@ -71,12 +71,8 @@ <div class="customise_editpanel_instructions"> -<h2>Add widgets to your page</h2> -<p> -Choose the features you want to add to your page by dragging them from the <b>Widget gallery</b> on the right, to any of the three widget areas below, and position them where you would like them to appear. -</p> -<p>To remove a widget drag it back to the <b>Widget gallery</b>. -</p> +<h2><?php echo elgg_echo('widgets:add'); ?></h2> +<?php echo autop(elgg_echo('widgets:add:description')); ?> </div> @@ -91,7 +87,7 @@ Choose the features you want to add to your page by dragging them from the <b>Wi ?> <h2 class="profile_box"><?php echo elgg_echo("widgets:profilebox"); ?></h2> <div id="profile_box_widgets"> - <p><small>(Fixed position on page)</small></p> + <p><small><?php echo elgg_echo('widgets:position:fixed'); ?></small></p> </div> <?php } @@ -243,8 +239,8 @@ Choose the features you want to add to your page by dragging them from the <b>Wi <input type="hidden" name="context" value="<?php echo get_context(); ?>" /> <input type="hidden" name="owner" value="<?php echo page_owner(); ?>" /> -<input type="submit" value="Save changes" class="submit_button" onclick="$('a.toggle_customise_edit_panel').click();" /> -<input type="button" value="Cancel" class="cancel_button" onclick="$('a.toggle_customise_edit_panel').click();" /> +<input type="submit" value="<?php echo elgg_echo('save'); ?>" class="submit_button" onclick="$('a.toggle_customise_edit_panel').click();" /> +<input type="button" value="<?php echo elgg_echo('cancel'); ?>" class="cancel_button" onclick="$('a.toggle_customise_edit_panel').click();" /> </form> </div><!-- /customise_editpanel --> |