Commit dd74d1b8 authored by Kristina Hoeppner's avatar Kristina Hoeppner Committed by Hugh Davenport
Browse files

Fix lang strings for copy page / collection functionality (Bug 886080)



Change-Id: I1a679343a844f42ec6e821c03adfb483d38a7961
Signed-off-by: Kristina Hoeppner's avatarKristina D.C. Hoeppner <kristina@catalyst.net.nz>
parent 04a1b39f
...@@ -305,16 +305,13 @@ $string['nothemeselected'] = 'No theme selected'; ...@@ -305,16 +305,13 @@ $string['nothemeselected'] = 'No theme selected';
$string['Template'] = 'Template'; $string['Template'] = 'Template';
$string['allowcopying'] = 'Allow copying'; $string['allowcopying'] = 'Allow copying';
$string['retainviewrights1'] = 'Retain view access on copied pages or collections'; $string['retainviewrights1'] = 'Retain view access on copied pages or collections';
$string['templatedescription'] = 'Check this box if you would like the people who can see your page to be able to make their own copies of it, along with any files and folders it contains.'; $string['templatedescriptionplural1'] = 'Check this box if you would like the people who can see your selected pages / collections to be able to make their own copies of them, along with any files and folders they contain.';
$string['templatedescriptionplural'] = 'Check this box if you would like the people who can see your pages to be able to make their own copies of them, along with any files and folders they contain.'; $string['retainviewrightsdescription1'] = 'Check this box if you would like to add access for you to view copies of the selected pages / collections that are copied by other users. Those users can revoke this access later on if they wish. Pages that are copied from a copy of this page or collection will not have this same access.';
$string['templatedescription1'] = 'Check this box if you would like the people who can see your page / collection to be able to make their own copies of it, along with any files and folders it contains.'; $string['retainviewrightsgroupdescription1'] = 'Check this box if you would like to add access for members of this group to view copies of the selected pages / collections that are copied by other users. Those users can revoke this access later on if they wish. Pages that are copied from a copy of this page or collection will not have this same access.';
$string['templatedescriptionplural1'] = 'Check this box if you would like the people who can see your pages / collections to be able to make their own copies of them, along with any files and folders they contain.';
$string['retainviewrightsdescription'] = 'Check this box if you would like to add access for you to view copies of this page or collection that are copied by other users. Those users can revoke this access after they copy it if they wish. Pages that are copied from a copy of this page or collection will not have this same access.';
$string['retainviewrightsgroupdescription'] = 'Check this box if you would like to add access for members of this group to view copies of this page that are copied by other users. Those users can revoke this access after they copy it if they wish. Pages that are copied from a copy of this page will not have this same access.';
$string['choosetemplatepagedescription'] = '<p>Here you can search through the pages that you are allowed to copy as a starting point for making a new page. You can see a preview of each page by clicking on its name. Once you have found the page you wish to copy, click the corresponding "Copy page" button to make a copy and begin customising it.</p>';
$string['choosetemplatepageandcollectiondescription'] = '<p>Here you can search through the pages that you are allowed to copy as a starting point for making a new page. You can see a preview of each page by clicking on its name. Once you have found the page you wish to copy, click the corresponding "Copy page" button to make a copy and begin customising it. You may also choose to copy the entire collection that the page belongs to by clicking the corresponding "Copy collection" button.</p>'; $string['choosetemplatepageandcollectiondescription'] = '<p>Here you can search through the pages that you are allowed to copy as a starting point for making a new page. You can see a preview of each page by clicking on its name. Once you have found the page you wish to copy, click the corresponding "Copy page" button to make a copy and begin customising it. You may also choose to copy the entire collection that the page belongs to by clicking the corresponding "Copy collection" button.</p>';
$string['choosetemplategrouppagedescription'] = '<p>Here you can search through the pages that this group is allowed to copy as a starting point for making a new page. You can see a preview of each page by clicking on its name. Once you have found the page you wish to copy, click the corresponding "Copy page" button to make a copy and begin customising it.</p><p><strong>Note:</strong> Groups cannot currently make copies of journals or journal entries.</p>'; $string['choosetemplategrouppageandcollectiondescription'] = '<p>Here you can search through the pages that this group is allowed to copy as a starting point for making a new page. You can see a preview of each page by clicking on its name. Once you have found the page you wish to copy, click the corresponding "Copy page" button to make a copy and begin customising it. You may also choose to copy the entire collection that the page belongs to by clicking the corresponding "Copy collection" button.</p><p><strong>Note:</strong> Groups cannot currently make copies of journals, journal entries, plans and résumé information.</p>';
$string['choosetemplateinstitutionpagedescription'] = '<p>Here you can search through the pages that this institution is allowed to copy as a starting point for making a new page. You can see a preview of each page by clicking on its name. Once you have found the page you wish to copy, click the corresponding "Copy page" button to make a copy and begin customising it.</p><p><strong>Note:</strong> Institutions cannot currently make copies of journals or journal entries.</p>'; $string['choosetemplateinstitutionpageandcollectiondescription'] = '<p>Here you can search through the pages that this institution is allowed to copy as a starting point for making a new page. You can see a preview of each page by clicking on its name. Once you have found the page you wish to copy, click the corresponding "Copy page" button to make a copy and begin customising it. You may also choose to copy the entire collection that the page belongs to by clicking the corresponding "Copy collection" button.</p><p><strong>Note:</strong> Institutions cannot currently make copies of journals, journal entries, plans and résumé information.</p>';
$string['choosetemplatesitepageandcollectiondescription'] = '<p>Here you can search through the pages that can be copied on the site level as a starting point for making a new page. You can see a preview of each page by clicking on its name. Once you have found the page you wish to copy, click the corresponding "Copy page" button to make a copy and begin customising it. You may also choose to copy the entire collection that the page belongs to by clicking the corresponding "Copy collection" button.</p><p><strong>Note:</strong> Institutions cannot currently make copies of journals, journal entries, plans and résumé information.</p>';
$string['copiedblocksandartefactsfromtemplate'] = 'Copied %d blocks and %d artefacts from %s'; $string['copiedblocksandartefactsfromtemplate'] = 'Copied %d blocks and %d artefacts from %s';
$string['filescopiedfromviewtemplate'] = 'Files copied from %s'; $string['filescopiedfromviewtemplate'] = 'Files copied from %s';
$string['viewfilesdirname'] = 'viewfiles'; $string['viewfilesdirname'] = 'viewfiles';
...@@ -327,14 +324,11 @@ $string['copyaview'] = 'Copy a page'; ...@@ -327,14 +324,11 @@ $string['copyaview'] = 'Copy a page';
$string['copyvieworcollection'] = 'Copy a page or collection'; $string['copyvieworcollection'] = 'Copy a page or collection';
$string['Untitled'] = 'Untitled'; $string['Untitled'] = 'Untitled';
$string['copyfornewusers'] = 'Copy for new users'; $string['copyfornewusers'] = 'Copy for new users';
$string['copyfornewusersdescription'] = 'Whenever a new user is created, automatically make a personal copy of this page in the user\'s portfolio.'; $string['copyfornewusersdescription1'] = 'Whenever a new user is created, automatically make a personal copy of the selected pages / collections in the user\'s portfolio.';
$string['copyfornewusersdescription'] = 'Whenever a new user is created, automatically make a personal copy of this page / collection in the user\'s portfolio.';
$string['copyfornewmembers'] = 'Copy for new institution members'; $string['copyfornewmembers'] = 'Copy for new institution members';
$string['copyfornewmembersdescription'] = 'Automatically make a personal copy of this page for all new members of %s.'; $string['copyfornewmembersdescription1'] = 'Automatically make a personal copy of the selected pages / collections for all new members of %s.';
$string['copyfornewmembersdescription1'] = 'Automatically make a personal copy of this page / collection for all new members of %s.';
$string['copyfornewgroups'] = 'Copy for new groups'; $string['copyfornewgroups'] = 'Copy for new groups';
$string['copyfornewgroupsdescription'] = 'Make a copy of this page in all new groups with these group types:'; $string['copyfornewgroupsdescription1'] = 'Make a copy of the selected pages / collections in all new groups with these roles:';
$string['copyfornewgroupsdescription1'] = 'Make a copy of this page / collection in all new groups with these roles:';
$string['searchviews'] = 'Search pages'; $string['searchviews'] = 'Search pages';
$string['searchowners'] = 'Search owners'; $string['searchowners'] = 'Search owners';
$string['owner'] = 'owner'; $string['owner'] = 'owner';
......
...@@ -173,7 +173,7 @@ $form['elements']['more'] = array( ...@@ -173,7 +173,7 @@ $form['elements']['more'] = array(
'template' => array( 'template' => array(
'type' => 'checkbox', 'type' => 'checkbox',
'title' => get_string('allowcopying', 'view'), 'title' => get_string('allowcopying', 'view'),
'description' => get_string('templatedescription', 'view'), 'description' => get_string('templatedescriptionplural1', 'view'),
'defaultvalue' => $view->get('template'), 'defaultvalue' => $view->get('template'),
), ),
), ),
...@@ -186,18 +186,18 @@ if ($institution) { ...@@ -186,18 +186,18 @@ if ($institution) {
$form['elements']['more']['elements']['copynewuser'] = array( $form['elements']['more']['elements']['copynewuser'] = array(
'type' => 'checkbox', 'type' => 'checkbox',
'title' => get_string('copyfornewusers', 'view'), 'title' => get_string('copyfornewusers', 'view'),
'description' => get_string('copyfornewusersdescription', 'view'), 'description' => get_string('copyfornewusersdescription1', 'view'),
'defaultvalue' => $view->get('template') && $view->get('copynewuser'), 'defaultvalue' => $view->get('template') && $view->get('copynewuser'),
); );
$form['elements']['more']['elements']['copyfornewgroups'] = array( $form['elements']['more']['elements']['copyfornewgroups'] = array(
'type' => 'html', 'type' => 'html',
'value' => '<label>' . get_string('copyfornewgroups', 'view') . '</label>', 'value' => '<label>' . get_string('copyfornewgroups', 'view') . '</label>',
); );
$form['elements']['more']['elements']['copyfornewgroupsdescription'] = array( $form['elements']['more']['elements']['copyfornewgroupsdescription1'] = array(
'type' => 'html', 'type' => 'html',
'value' => '<div class="description">' . get_string('copyfornewgroupsdescription', 'view') . '</div>', 'value' => '<div class="description">' . get_string('copyfornewgroupsdescription1', 'view') . '</div>',
); );
$copyoptions = array('copynewuser', 'copyfornewgroups', 'copyfornewgroupsdescription'); $copyoptions = array('copynewuser', 'copyfornewgroups', 'copyfornewgroupsdescription1');
$needsaccess = array('copynewuser'); $needsaccess = array('copynewuser');
$createfor = $view->get_autocreate_grouptypes(); $createfor = $view->get_autocreate_grouptypes();
foreach (group_get_grouptype_options() as $grouptype => $grouptypedesc) { foreach (group_get_grouptype_options() as $grouptype => $grouptypedesc) {
...@@ -217,7 +217,7 @@ if ($institution) { ...@@ -217,7 +217,7 @@ if ($institution) {
$form['elements']['more']['elements']['copynewuser'] = array( $form['elements']['more']['elements']['copynewuser'] = array(
'type' => 'checkbox', 'type' => 'checkbox',
'title' => get_string('copyfornewmembers', 'view'), 'title' => get_string('copyfornewmembers', 'view'),
'description' => get_string('copyfornewmembersdescription', 'view', $instname), 'description' => get_string('copyfornewmembersdescription1', 'view', $instname),
'defaultvalue' => $view->get('template') && $view->get('copynewuser'), 'defaultvalue' => $view->get('template') && $view->get('copynewuser'),
); );
$copyoptions = array('copynewuser'); $copyoptions = array('copynewuser');
...@@ -262,7 +262,7 @@ EOF; ...@@ -262,7 +262,7 @@ EOF;
$form['elements']['more']['elements']['retainview'] = array( $form['elements']['more']['elements']['retainview'] = array(
'type' => 'checkbox', 'type' => 'checkbox',
'title' => get_string('retainviewrights1', 'view'), 'title' => get_string('retainviewrights1', 'view'),
'description' => $group ? get_string('retainviewrightsgroupdescription', 'view') : get_string('retainviewrightsdescription', 'view'), 'description' => $group ? get_string('retainviewrightsgroupdescription1', 'view') : get_string('retainviewrightsdescription1', 'view'),
'defaultvalue' => $view->get('template') && $view->get('retainview'), 'defaultvalue' => $view->get('template') && $view->get('retainview'),
); );
$js .= <<< EOF $js .= <<< EOF
......
...@@ -66,11 +66,16 @@ $views->limit = param_integer('viewlimit', 10); ...@@ -66,11 +66,16 @@ $views->limit = param_integer('viewlimit', 10);
$views->copyableby = (object) array('group' => $groupid, 'institution' => $institution, 'owner' => null); $views->copyableby = (object) array('group' => $groupid, 'institution' => $institution, 'owner' => null);
if ($groupid) { if ($groupid) {
$views->group = $groupid; $views->group = $groupid;
$helptext = get_string('choosetemplategrouppagedescription', 'view'); $helptext = get_string('choosetemplategrouppageandcollectiondescription', 'view');
} }
else if ($institution) { else if ($institution) {
$views->institution = $institution; $views->institution = $institution;
$helptext = get_string('choosetemplateinstitutionpagedescription', 'view'); if ($institution == 'mahara') {
$helptext = get_string('choosetemplatesitepageandcollectiondescription', 'view');
}
else {
$helptext = get_string('choosetemplateinstitutionpageandcollectiondescription', 'view');
}
} }
else { else {
$views->copyableby->owner = $USER->get('id'); $views->copyableby->owner = $USER->get('id');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment