Fix grammar and typos

This commit is contained in:
Anaggh S 2018-08-01 18:16:12 +05:30
parent f929f680e8
commit d2dd02055f
5 changed files with 18 additions and 18 deletions

View File

@ -15,7 +15,7 @@ function table($type) {
$list = $published; $list = $published;
if (empty($list)) { if (empty($list)) {
echo '<p class="mt-4 text-muted">'; echo '<p class="mt-4 text-muted">';
echo $Language->g('There are not pages in this moment.'); echo $Language->g('There are no pages at this moment.');
echo '</p>'; echo '</p>';
return false; return false;
} }
@ -23,7 +23,7 @@ function table($type) {
$list = $drafts; $list = $drafts;
if (empty($list)) { if (empty($list)) {
echo '<p class="mt-4 text-muted">'; echo '<p class="mt-4 text-muted">';
echo $Language->g('There are not draft pages in this moment.'); echo $Language->g('There are no draft pages at this moment.');
echo '</p>'; echo '</p>';
return false; return false;
} }
@ -31,7 +31,7 @@ function table($type) {
$list = $scheduled; $list = $scheduled;
if (empty($list)) { if (empty($list)) {
echo '<p class="mt-4 text-muted">'; echo '<p class="mt-4 text-muted">';
echo $Language->g('There are not scheduled pages in this moment.'); echo $Language->g('There are no scheduled pages at this moment.');
echo '</p>'; echo '</p>';
return false; return false;
} }
@ -39,7 +39,7 @@ function table($type) {
$list = $static; $list = $static;
if (empty($list)) { if (empty($list)) {
echo '<p class="mt-4 text-muted">'; echo '<p class="mt-4 text-muted">';
echo $Language->g('There are not static pages in this moment.'); echo $Language->g('There are no static pages at this moment.');
echo '</p>'; echo '</p>';
return false; return false;
} }
@ -47,7 +47,7 @@ function table($type) {
$list = $sticky; $list = $sticky;
if (empty($list)) { if (empty($list)) {
echo '<p class="mt-4 text-muted">'; echo '<p class="mt-4 text-muted">';
echo $Language->g('There are not sticky pages in this moment.'); echo $Language->g('There are no sticky pages at this moment.');
echo '</p>'; echo '</p>';
return false; return false;
} }
@ -126,7 +126,7 @@ function table($type) {
echo '<td class="pt-3 d-none d-lg-table-cell"><a target="_blank" href="'.$page->permalink().'">'.$friendlyURL.'</a></td>'; echo '<td class="pt-3 d-none d-lg-table-cell"><a target="_blank" href="'.$page->permalink().'">'.$friendlyURL.'</a></td>';
echo '<td class="pt-3 text-center d-none d-sm-table-cell">'.PHP_EOL; echo '<td class="pt-3 text-center d-none d-sm-table-cell">'.PHP_EOL;
echo '<a class="btn btn-secondary btn-sm" href="'.HTML_PATH_ADMIN_ROOT.'edit-content/'.$page->key().'">Edit</a>'.PHP_EOL; echo '<a class="btn btn-secondary btn-sm" href="'.HTML_PATH_ADMIN_ROOT.'edit-content/'.$page->key().'"><span class="oi oi-pencil"></span> Edit</a>'.PHP_EOL;
echo '<button type="button" class="btn btn-secondary btn-sm deletePageButton" data-toggle="modal" data-target="#jsdeletePageModal" data-key="'.$page->key().'"><span class="oi oi-trash"></span> Delete</button>'.PHP_EOL; echo '<button type="button" class="btn btn-secondary btn-sm deletePageButton" data-toggle="modal" data-target="#jsdeletePageModal" data-key="'.$page->key().'"><span class="oi oi-trash"></span> Delete</button>'.PHP_EOL;
echo '</td>'; echo '</td>';
@ -222,8 +222,8 @@ function table($type) {
<!-- Modal for delete page --> <!-- Modal for delete page -->
<?php echo Bootstrap::modal(array( <?php echo Bootstrap::modal(array(
'modalId'=>'jsdeletePageModal', 'modalId'=>'jsdeletePageModal',
'modalTitle'=>'Delete content', 'modalTitle'=>'<span class="oi oi-trash"></span> ' . 'Delete content',
'modalText'=>'Are you sure you ?', 'modalText'=>'Are you sure you want to delete this page?',
'buttonPrimary'=>'Delete', 'buttonPrimary'=>'Delete',
'buttonPrimaryClass'=>'deletePageModalAcceptButton', 'buttonPrimaryClass'=>'deletePageModalAcceptButton',
'buttonSecondary'=>'Cancel', 'buttonSecondary'=>'Cancel',
@ -263,4 +263,4 @@ $(document).ready(function() {
form.hide().appendTo("body").submit(); form.hide().appendTo("body").submit();
}); });
}); });
</script> </script>

View File

@ -124,7 +124,7 @@
'name'=>'externalCoverImage', 'name'=>'externalCoverImage',
'placeholder'=>'https://', 'placeholder'=>'https://',
'value'=>$externalCoverImage, 'value'=>$externalCoverImage,
'tip'=>'Set a cover image from external URL, such as a CDN or some server dedicate for images.' 'tip'=>'Set a cover image from external URL, such as a CDN or some server dedicated for images.'
)); ));
?> ?>
@ -216,7 +216,7 @@
'label'=>'Tags', 'label'=>'Tags',
'placeholder'=>'', 'placeholder'=>'',
'value'=>$page->tags(), 'value'=>$page->tags(),
'tip'=>'Write the tags separeted by comma' 'tip'=>'Write the tags separated by comma'
)); ));
// Friendly URL // Friendly URL
@ -295,7 +295,7 @@
'label'=>'', 'label'=>'',
'selected'=>$page->categoryKey(), 'selected'=>$page->categoryKey(),
'class'=>'', 'class'=>'',
'emptyOption'=>'- Without category -', 'emptyOption'=>'- Uncategorized -',
'options'=>$dbCategories->getKeyNameArray() 'options'=>$dbCategories->getKeyNameArray()
)); ));
?> ?>

View File

@ -100,7 +100,7 @@
'name'=>'externalCoverImage', 'name'=>'externalCoverImage',
'placeholder'=>"https://", 'placeholder'=>"https://",
'value'=>'', 'value'=>'',
'tip'=>'Set a cover image from external URL, such as a CDN or some server dedicate for images.' 'tip'=>'Set a cover image from external URL, such as a CDN or some server dedicated for images.'
)); ));
?> ?>
@ -173,7 +173,7 @@
'name'=>'tags', 'name'=>'tags',
'label'=>'Tags', 'label'=>'Tags',
'placeholder'=>'', 'placeholder'=>'',
'tip'=>'Write the tags separeted by comma' 'tip'=>'Write the tags separated by comma'
)); ));
// Friendly URL // Friendly URL

View File

@ -789,7 +789,7 @@ class dbPages extends dbJSON {
} }
// Returns an Array, array('tagSlug'=>'tagName') // Returns an Array, array('tagSlug'=>'tagName')
// (string) $tags, tag list separeted by comma. // (string) $tags, tag list separated by comma.
public function generateTags($tags) public function generateTags($tags)
{ {
$tmp = array(); $tmp = array();
@ -818,4 +818,4 @@ class dbPages extends dbJSON {
return $this->save(); return $this->save();
} }
} }

View File

@ -232,7 +232,7 @@ class PageX {
} }
// Returns the tags separated by comma // Returns the tags separated by comma
// (boolean) $returnsArray, TRUE to get the tags as an array, FALSE to get the tags separeted by comma // (boolean) $returnsArray, TRUE to get the tags as an array, FALSE to get the tags separated by comma
// The tags in array format returns array( tagKey => tagName ) // The tags in array format returns array( tagKey => tagName )
public function tags($returnsArray=false) public function tags($returnsArray=false)
{ {
@ -247,7 +247,7 @@ class PageX {
if (empty($tags)) { if (empty($tags)) {
return ''; return '';
} }
// Return string with tags separeted by comma. // Return string with tags separated by comma.
return implode(', ', $tags); return implode(', ', $tags);
} }