Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Daniele La Pira 2016-02-13 09:42:25 +01:00
commit d5c21ac548
60 changed files with 1177 additions and 1382 deletions

View File

@ -17,6 +17,7 @@ class Content {
return($this->vars!==false); return($this->vars!==false);
} }
// Returns the value from the $field, FALSE if the field doesn't exist.
public function getField($field) public function getField($field)
{ {
if(isset($this->vars[$field])) { if(isset($this->vars[$field])) {
@ -38,7 +39,7 @@ class Content {
private function build($path) private function build($path)
{ {
if( !Sanitize::pathFile($path, 'index.txt') ) { if( !Sanitize::pathFile($path.'index.txt') ) {
return false; return false;
} }

View File

@ -45,6 +45,7 @@ class dbJSON
public function restoreDB() public function restoreDB()
{ {
$this->db = $this->dbBackup; $this->db = $this->dbBackup;
return true; return true;
} }

View File

@ -103,13 +103,27 @@ class Plugin {
return ''; return '';
} }
public function setDb($array) public function setDb($args)
{ {
$tmp = array(); $tmp = array();
// All fields will be sanitize before save. foreach($this->dbFields as $key=>$value)
foreach($array as $key=>$value) { {
$tmp[$key] = Sanitize::html($value); if(isset($args[$key]))
{
// Sanitize value
$tmpValue = Sanitize::html( $args[$key] );
// Set type
settype($tmpValue, gettype($value));
// Set value
$tmp[$key] = $tmpValue;
}
else
{
$tmp[$key] = false;
}
} }
$this->db = $tmp; $this->db = $tmp;

View File

@ -179,17 +179,53 @@ button.delete-button:hover {
text-transform: uppercase; text-transform: uppercase;
} }
#jstagList { #bludit-tags {
margin-top: 5px; margin-top: 15px;
} }
#jstagList span { #bludit-tags .uk-button {
background: #f1f1f1; padding: 0 12px !important;
border-radius: 3px; margin-left: 10px;
color: #2672ec; }
#jstagList {
margin-top: 15px;
}
#jstagList span.unselect,
#jstagList span.select {
margin-top: 5px;
margin-right: 5px; margin-right: 5px;
padding: 3px 10px; padding: 1px 15px;
cursor: pointer; cursor: pointer;
display: inline-block;
border-radius: 3px;
background: #f1f1f1;
vertical-align: middle;
}
#jstagList span.unselect:before {
font-family: FontAwesome;
content: "\f067";
padding-right: 5px;
}
#jstagList span.unselect {
color: #AAA;
}
#jstagList span.unselect:hover {
color: #888;
}
#jstagList span.select:before {
font-family: FontAwesome;
content: "\f00c";
padding-right: 5px;
}
#jstagList span.select {
color: #2672ec;
} }
/* ----------- BLUDIT IMAGES V8 ----------- */ /* ----------- BLUDIT IMAGES V8 ----------- */
@ -229,6 +265,36 @@ button.delete-button:hover {
font-size: 0; font-size: 0;
} }
/* Bludit Menu v8 */
#bludit-menuV8 {
display: none;
z-index: 1020;
position: absolute;
overflow: hidden;
border: 1px solid #CCC;
background: #FFF;
color: #333;
border-radius: 2px;
list-style-type: none;
padding: 5px;
margin: 0;
}
#bludit-menuV8 li {
padding: 8px 12px;
cursor: pointer;
}
#bludit-menuV8 li:hover {
background-color: #2672ec;
color: #fff;
}
#bludit-menuV8 li i {
margin-right: 10px;
}
/* ----------- BLUDIT QUICK IMAGES ----------- */ /* ----------- BLUDIT QUICK IMAGES ----------- */
#bludit-quick-images { #bludit-quick-images {

View File

@ -21,9 +21,9 @@ class HTML {
{ {
$html = '</form>'; $html = '</form>';
$script = '<script> $script = '<script>
$(document).ready(function() { $(document).ready(function() {
// Prevent the form submit when press enter key. // Prevent the form submit when press enter key.
$("form").keypress(function(e) { $("form").keypress(function(e) {
@ -32,9 +32,10 @@ $(document).ready(function() {
} }
}); });
}); });
</script>';
</script>';
echo $html.$script; echo $html.$script;
} }
@ -67,108 +68,32 @@ $(document).ready(function() {
echo $html; echo $html;
} }
public static function tagsAutocomplete($args) public static function tags($args)
{ {
// Tag array for Javascript // Javascript code
$tagArray = 'var tagArray = [];'; include(PATH_JS.'bludit-tags.js');
if(!empty($args['value'])) {
$tagArray = 'var tagArray = ["'.implode('","', $args['value']).'"]';
}
$args['value'] = '';
// Text input $html = '<div id="bludit-tags" class="uk-form-row">';
self::formInputText($args);
echo '<div id="jstagList"></div>'; $html .= '<input type="hidden" id="jstags" name="tags" value="">';
$script = '<script> $html .= '<label for="jstagInput" class="uk-form-label">'.$args['label'].'</label>';
'.$tagArray.' $html .= '<div class="uk-form-controls">';
$html .= '<input id="jstagInput" type="text" class="uk-width-1-2" autocomplete="off">';
$html .= '<button id="jstagAdd" class="uk-button">Add</button>';
function insertTag(tag) $html .= '<div id="jstagList">';
{
// Clean the input text
$("#jstags").val("");
if(tag.trim()=="") { foreach($args['allTags'] as $tag) {
return true; $html .= '<span class="'.( in_array($tag, $args['selectedTags'])?'select':'unselect' ).'">'.$tag.'</span>';
} }
// Check if the tag is already inserted. $html .= '</div>';
var found = $.inArray(tag, tagArray); $html .= '</div>';
if(found == -1) { $html .= '</div>';
tagArray.push(tag);
renderTagList();
}
}
function removeTag(tag)
{
var found = $.inArray(tag, tagArray);
if(found => 0) {
tagArray.splice(found, 1);
renderTagList();
}
}
function renderTagList()
{
if(tagArray.length == 0) {
$("#jstagList").html("");
}
else {
$("#jstagList").html("<span>"+tagArray.join("</span><span>")+"</span>");
}
}
$("#jstags").autoComplete({
minChars: 1,
source: function(term, suggest){
term = term.toLowerCase();
var choices = ['.$args['words'].'];
var matches = [];
for (i=0; i<choices.length; i++)
if (~choices[i].toLowerCase().indexOf(term)) matches.push(choices[i]);
suggest(matches);
},
onSelect: function(e, value, item) {
// Insert the tag when select whit the mouse click.
insertTag(value);
}
});
$(document).ready(function() {
// When the page is loaded render the tags
renderTagList();
// Remove the tag when click on it.
$("body").on("click", "#jstagList > span", function() {
value = $(this).html();
removeTag(value);
});
// Insert tag when press enter key.
$("#jstags").keypress(function(e) {
if (e.which == 13) {
var value = $(this).val();
insertTag(value);
}
});
// When form submit.
$("form").submit(function(e) {
var list = tagArray.join(",");
$("#jstags").val(list);
});
});
</script>';
echo $script;
echo $html;
} }
public static function formInputPassword($args) public static function formInputPassword($args)
@ -242,67 +167,46 @@ $(document).ready(function() {
echo $html; echo $html;
} }
public static function formButtonSubmit($args)
{
$html = '';
}
public static function bluditQuickImages() public static function bluditQuickImages()
{ {
// Javascript code
include(PATH_JS.'bludit-quick-images.js');
global $L; global $L;
$html = '<!-- BLUDIT QUICK IMAGES -->'; $html = '<!-- BLUDIT QUICK IMAGES -->';
$html .= ' $html .= '
<div id="bludit-quick-images"> <div id="bludit-quick-images">
<div id="bludit-quick-images-thumbnails" onmousedown="return false"> <div id="bludit-quick-images-thumbnails" onmousedown="return false">
'; ';
$thumbnailList = Filesystem::listFiles(PATH_UPLOADS_THUMBNAILS,'*','*',true); $thumbnailList = Filesystem::listFiles(PATH_UPLOADS_THUMBNAILS,'*','*',true);
array_splice($thumbnailList, THUMBNAILS_AMOUNT); array_splice($thumbnailList, THUMBNAILS_AMOUNT);
foreach($thumbnailList as $file) { foreach($thumbnailList as $file) {
$filename = basename($file); $filename = basename($file);
$html .= '<img class="bludit-thumbnail" data-filename="'.$filename.'" src="'.HTML_PATH_UPLOADS_THUMBNAILS.$filename.'" alt="Thumbnail">'; $html .= '<img class="bludit-thumbnail" data-filename="'.$filename.'" src="'.HTML_PATH_UPLOADS_THUMBNAILS.$filename.'" alt="Thumbnail">';
}
$html .= '
</div>
';
if(empty($thumbnailList)) {
$html .= '<div class="empty-images uk-block uk-text-center uk-block-muted">'.$L->g('There are no images').'</div>';
}
$html .= '
<a data-uk-modal href="#bludit-images-v8" class="moreImages uk-button">'.$L->g('More images').'</a>
</div>
';
$script = '
<script>
// Add thumbnail to Quick Images
function addQuickImages(filename)
{
var imageSrc = HTML_PATH_UPLOADS_THUMBNAILS + filename;
// Remove element if there are more than 6 thumbnails
if ($("#bludit-quick-images-thumbnails > img").length > 5) {
$("img:last-child", "#bludit-quick-images-thumbnails").remove();
} }
// Add the new thumbnail to Quick images $html .= '
$("#bludit-quick-images-thumbnails").prepend("<img class=\"bludit-thumbnail\" data-filename=\""+filename+"\" src=\""+imageSrc+"\" alt=\"Thumbnail\">"); </div>
} ';
</script> $html .= '<div class="empty-images uk-block uk-text-center uk-block-muted" '.( !empty($thumbnailList)?'style="display:none"':'' ).'>'.$L->g('There are no images').'</div>';
';
echo $html.$script; $html .= '
<a data-uk-modal href="#bludit-images-v8" class="moreImages uk-button">'.$L->g('More images').'</a>
</div>
';
echo $html;
} }
public static function bluditCoverImage($coverImage="") public static function bluditCoverImage($coverImage="")
{ {
// Javascript code
include(PATH_JS.'bludit-cover-image.js');
global $L; global $L;
$style = ''; $style = '';
@ -310,10 +214,10 @@ function addQuickImages(filename)
$style = 'background-image: url('.HTML_PATH_UPLOADS_THUMBNAILS.$coverImage.')'; $style = 'background-image: url('.HTML_PATH_UPLOADS_THUMBNAILS.$coverImage.')';
} }
$html = '<!-- BLUDIT COVER IMAGE -->'; $html = '<!-- BLUDIT COVER IMAGE -->';
$html .= ' $html .= '
<div id="bludit-cover-image"> <div id="bludit-cover-image">
<div id="cover-image-thumbnail" class="uk-form-file uk-placeholder uk-text-center" style="'.$style.'"> <div id="cover-image-thumbnail" class="uk-form-file uk-placeholder uk-text-center" style="'.$style.'">
<input type="hidden" name="coverImage" id="cover-image-upload-filename" value="'.$coverImage.'"> <input type="hidden" name="coverImage" id="cover-image-upload-filename" value="'.$coverImage.'">
@ -330,90 +234,43 @@ $html .= '
<div class="uk-progress-bar" style="width: 0%;">0%</div> <div class="uk-progress-bar" style="width: 0%;">0%</div>
</div> </div>
</div> </div>
</div> </div>
'; ';
$script = ' echo $html;
<script>
function addCoverImage(filename)
{
var imageSrc = HTML_PATH_UPLOADS_THUMBNAILS + filename;
// Cover image background
$("#cover-image-thumbnail").attr("style","background-image: url("+imageSrc+")");
// Form attribute
$("#cover-image-upload-filename").attr("value", filename);
}
$(document).ready(function() {
$("#cover-image-delete").on("click", function() {
$("#cover-image-thumbnail").attr("style","");
$("#cover-image-upload-filename").attr("value","");
$("#cover-image-delete").hide();
$("#cover-image-upload").show();
});
var settings =
{
type: "json",
action: HTML_PATH_ADMIN_ROOT+"ajax/uploader",
allow : "*.(jpg|jpeg|gif|png)",
params: {"type":"cover-image"},
loadstart: function() {
$("#cover-image-progressbar").find(".uk-progress-bar").css("width", "0%").text("0%");
$("#cover-image-progressbar").show();
$("#cover-image-delete").hide();
$("#cover-image-upload").hide();
},
progress: function(percent) {
percent = Math.ceil(percent);
$("#cover-image-progressbar").find(".uk-progress-bar").css("width", percent+"%").text(percent+"%");
},
allcomplete: function(response) {
$("#cover-image-progressbar").find(".uk-progress-bar").css("width", "100%").text("100%");
$("#cover-image-progressbar").hide();
$("#cover-image-delete").show();
$(".empty-images").hide();
// Add Cover Image
addCoverImage(response.filename);
// Add thumbnail to Quick Images
addQuickImages(response.filename);
// Add thumbnail to Bludit Images V8
addBluditImagev8(response.filename);
},
notallowed: function(file, settings) {
alert("'.$L->g('Supported image file types').' "+settings.allow);
} }
};
UIkit.uploadSelect($("#cover-image-file-select"), settings); public static function bluditMenuV8()
UIkit.uploadDrop($("#cover-image-thumbnail"), settings); {
// Javascript code
include(PATH_JS.'bludit-menu-v8.js');
}); global $L;
</script>
'; $html = '<!-- BLUDIT MENU V8 -->';
echo $html.$script; $html .= '
<ul id="bludit-menuV8">
<li id="bludit-menuV8-insert"><i class="uk-icon-plus"></i>'.$L->g('Insert image').'</li>
<li id="bludit-menuV8-cover"><i class="uk-icon-picture-o"></i>'.$L->g('Set as cover image').'</li>
<li id="bludit-menuV8-delete"><i class="uk-icon-trash"></i>'.$L->g('Delete image').'</li>
</ul>
';
echo $html;
} }
public static function bluditImagesV8() public static function bluditImagesV8()
{ {
// Javascript code
include(PATH_JS.'bludit-images-v8.js');
global $L; global $L;
$html = '<!-- BLUDIT IMAGES V8 -->'; $html = '<!-- BLUDIT IMAGES V8 -->';
$html .= ' $html .= '
<div id="bludit-images-v8" class="uk-modal"> <div id="bludit-images-v8" class="uk-modal">
<div class="uk-modal-dialog"> <div class="uk-modal-dialog">
<div id="bludit-images-v8-upload" class="uk-form-file uk-placeholder uk-text-center"> <div id="bludit-images-v8-upload" class="uk-form-file uk-placeholder uk-text-center">
@ -429,105 +286,33 @@ $html .= '
</div> </div>
<div id="bludit-images-v8-thumbnails"> <div id="bludit-images-v8-thumbnails">
'; ';
$thumbnailList = Filesystem::listFiles(PATH_UPLOADS_THUMBNAILS,'*','*',true); $thumbnailList = Filesystem::listFiles(PATH_UPLOADS_THUMBNAILS,'*','*',true);
foreach($thumbnailList as $file) { foreach($thumbnailList as $file) {
$filename = basename($file); $filename = basename($file);
$html .= '<img class="bludit-thumbnail" src="'.HTML_PATH_UPLOADS_THUMBNAILS.$filename.'" data-filename="'.$filename.'" alt="Thumbnail">'; $html .= '<img class="bludit-thumbnail" src="'.HTML_PATH_UPLOADS_THUMBNAILS.$filename.'" data-filename="'.$filename.'" alt="Thumbnail">';
} }
$html .= ' $html .= '
</div> </div>
'; ';
if(empty($thumbnailList)) { $html .= '<div class="empty-images uk-block uk-text-center uk-block-muted" '.( !empty($thumbnailList)?'style="display:none"':'' ).'>'.$L->g('There are no images').'</div>';
$html .= '<div class="empty-images uk-block uk-text-center uk-block-muted">'.$L->g('There are no images').'</div>';
}
$html .= ' $html .= '
<div class="uk-modal-footer"> <div class="uk-modal-footer">
'.$L->g('Double click on the image to add it').' <a href="" class="uk-modal-close">'.$L->g('Click here to cancel').'</a> '.$L->g('Click on the image for options').' <a href="" class="uk-modal-close">'.$L->g('Click here to cancel').'</a>
</div> </div>
</div> </div>
</div> </div>
'; ';
$script = ' echo $html;
<script>
// Add thumbnail to Bludit Images v8
function addBluditImagev8(filename)
{
var imageSrc = HTML_PATH_UPLOADS_THUMBNAILS + filename;
// Add the new thumbnail to Bludit Images v8
$("#bludit-images-v8-thumbnails").prepend("<img class=\"bludit-thumbnail\" data-filename=\""+filename+"\" src=\""+imageSrc+"\" alt=\"Thumbnail\">");
}
$(document).ready(function() {
// Add border when select an thumbnail
$("body").on("click", "img.bludit-thumbnail", function() {
$(".bludit-thumbnail").css("border", "1px solid #ddd");
$(this).css("border", "solid 3px orange");
});
// Hide the modal when double click on thumbnail.
$("body").on("dblclick", "img.bludit-thumbnail", function() {
var modal = UIkit.modal("#bludit-images-v8");
if ( modal.isActive() ) {
modal.hide();
} }
});
// Event for double click for insert the image is in each editor plugin
// ..
var settings =
{
type: "json",
action: HTML_PATH_ADMIN_ROOT+"ajax/uploader",
allow : "*.(jpg|jpeg|gif|png)",
params: {"type":"bludit-images-v8"},
loadstart: function() {
$("#bludit-images-v8-progressbar").find(".uk-progress-bar").css("width", "0%").text("0%");
$("#bludit-images-v8-drag-drop").hide();
$("#bludit-images-v8-progressbar").show();
},
progress: function(percent) {
percent = Math.ceil(percent);
$("#bludit-images-v8-progressbar").find(".uk-progress-bar").css("width", percent+"%").text(percent+"%");
},
allcomplete: function(response) {
$("#bludit-images-v8-progressbar").find(".uk-progress-bar").css("width", "100%").text("100%");
$("#bludit-images-v8-progressbar").hide();
$("#bludit-images-v8-drag-drop").show();
$(".empty-images").hide();
// Add thumbnail to Bludit Images V8
addBluditImagev8(response.filename);
// Add thumbnail to Quick Images
addQuickImages(response.filename);
},
notallowed: function(file, settings) {
alert("'.$L->g('Supported image file types').' "+settings.allow);
}
};
UIkit.uploadSelect($("#bludit-images-v8-file-select"), settings);
UIkit.uploadDrop($("#bludit-images-v8-upload"), settings);
});
</script>
';
echo $html.$script;
}
public static function profileUploader($username) public static function profileUploader($username)
{ {

File diff suppressed because one or more lines are too long

View File

@ -77,13 +77,11 @@ echo '<div class="sidebar uk-width-large-2-10">';
)); ));
// Tags input // Tags input
HTML::tagsAutocomplete(array( HTML::tags(array(
'name'=>'tags', 'name'=>'tags',
'value'=>$_Page->tags(true),
'tip'=>$L->g('Type the tag and press enter'),
'class'=>'uk-width-1-1 uk-form-large',
'label'=>$L->g('Tags'), 'label'=>$L->g('Tags'),
'words'=>'"'.implode('", "', $dbTags->getAll()).'"' 'allTags'=>$dbTags->getAll(),
'selectedTags'=>$_Page->tags(true)
)); ));
echo '</li>'; echo '</li>';
@ -102,6 +100,9 @@ echo '<div class="sidebar uk-width-large-2-10">';
// --- BLUDIT IMAGES V8 --- // --- BLUDIT IMAGES V8 ---
HTML::bluditImagesV8(); HTML::bluditImagesV8();
// --- BLUDIT MENU V8 ---
HTML::bluditMenuV8();
echo '</li>'; echo '</li>';
// ---- ADVANCED TAB ---- // ---- ADVANCED TAB ----

View File

@ -71,13 +71,11 @@ echo '<div class="sidebar uk-width-large-2-10">';
)); ));
// Tags input // Tags input
HTML::tagsAutocomplete(array( HTML::tags(array(
'name'=>'tags', 'name'=>'tags',
'value'=>$_Post->tags(true),
'tip'=>$L->g('Type the tag and press enter'),
'class'=>'uk-width-1-1 uk-form-large',
'label'=>$L->g('Tags'), 'label'=>$L->g('Tags'),
'words'=>'"'.implode('", "', $dbTags->getAll()).'"' 'allTags'=>$dbTags->getAll(),
'selectedTags'=>$_Post->tags(true)
)); ));
echo '</li>'; echo '</li>';
@ -96,6 +94,9 @@ echo '<div class="sidebar uk-width-large-2-10">';
// --- BLUDIT IMAGES V8 --- // --- BLUDIT IMAGES V8 ---
HTML::bluditImagesV8(); HTML::bluditImagesV8();
// --- BLUDIT MENU V8 ---
HTML::bluditMenuV8();
echo '</li>'; echo '</li>';
// ---- ADVANCED TAB ---- // ---- ADVANCED TAB ----

View File

@ -64,13 +64,11 @@ echo '<div class="sidebar uk-width-large-2-10">';
)); ));
// Tags input // Tags input
HTML::tagsAutocomplete(array( HTML::tags(array(
'name'=>'tags', 'name'=>'tags',
'value'=>'',
'tip'=>$L->g('Type the tag and press enter'),
'class'=>'uk-width-1-1 uk-form-large',
'label'=>$L->g('Tags'), 'label'=>$L->g('Tags'),
'words'=>'"'.implode('", "', $dbTags->getAll()).'"' 'allTags'=>$dbTags->getAll(),
'selectedTags'=>array()
)); ));
echo '</li>'; echo '</li>';
@ -89,6 +87,9 @@ echo '<div class="sidebar uk-width-large-2-10">';
// --- BLUDIT IMAGES V8 --- // --- BLUDIT IMAGES V8 ---
HTML::bluditImagesV8(); HTML::bluditImagesV8();
// --- BLUDIT MENU V8 ---
HTML::bluditMenuV8();
echo '</li>'; echo '</li>';
// ---- ADVANCED TAB ---- // ---- ADVANCED TAB ----

View File

@ -64,13 +64,11 @@ echo '<div class="sidebar uk-width-large-2-10">';
)); ));
// Tags input // Tags input
HTML::tagsAutocomplete(array( HTML::tags(array(
'name'=>'tags', 'name'=>'tags',
'value'=>'',
'tip'=>$L->g('Type the tag and press enter'),
'class'=>'uk-width-1-1 uk-form-large',
'label'=>$L->g('Tags'), 'label'=>$L->g('Tags'),
'words'=>'"'.implode('", "', $dbTags->getAll()).'"' 'allTags'=>$dbTags->getAll(),
'selectedTags'=>array()
)); ));
echo '</li>'; echo '</li>';
@ -89,6 +87,9 @@ echo '<div class="sidebar uk-width-large-2-10">';
// --- BLUDIT IMAGES V8 --- // --- BLUDIT IMAGES V8 ---
HTML::bluditImagesV8(); HTML::bluditImagesV8();
// --- BLUDIT MENU V8 ---
HTML::bluditMenuV8();
echo '</li>'; echo '</li>';
// ---- ADVANCED TAB ---- // ---- ADVANCED TAB ----

View File

@ -0,0 +1,31 @@
<?php defined('BLUDIT') or die('Bludit CMS.');
header('Content-Type: application/json');
// Request $_POST
// $filename: Name of file to delete, just the filename
$filename = isset($_POST['filename']) ? $_POST['filename'] : '';
if( empty($filename) ) {
echo json_encode( array('status'=>0, 'msg'=>'The filename is empty.') );
exit;
}
// Check if the filename exist and Sanitize::pathFile it's necesary for security reasons.
if( Sanitize::pathFile(PATH_UPLOADS.$filename) ) {
// Delete the file.
Filesystem::rmfile(PATH_UPLOADS.$filename);
// Delete the thumnails.
Filesystem::rmfile(PATH_UPLOADS_THUMBNAILS.$filename);
echo json_encode( array('status'=>1, 'msg'=>'The file was deleted.') );
exit;
}
echo json_encode( array('status'=>0, 'msg'=>'The file does not exist.') );
?>

View File

@ -8,7 +8,7 @@ header('Content-Type: application/json');
// parent: Page parent, if you are checking a slug for a page. // parent: Page parent, if you are checking a slug for a page.
// Response JSON // Response JSON
// text: valid slug text // slug: valid slug text
$text = isset($_POST['text']) ? $_POST['text'] : ''; $text = isset($_POST['text']) ? $_POST['text'] : '';
$parent = isset($_POST['parent']) ? $_POST['parent'] : NO_PARENT_CHAR; $parent = isset($_POST['parent']) ? $_POST['parent'] : NO_PARENT_CHAR;
@ -21,6 +21,6 @@ elseif( $_POST['type']==='post' ) {
$slug = $dbPosts->generateKey($text, $key); $slug = $dbPosts->generateKey($text, $key);
} }
echo json_encode( array('slug'=>$slug) ); echo json_encode( array('status'=>1, 'slug'=>$slug) );
?> ?>

View File

@ -56,6 +56,9 @@ if(!defined('JSON_PRETTY_PRINT')) {
define('JSON_PRETTY_PRINT', 128); define('JSON_PRETTY_PRINT', 128);
} }
// Alert status ok
define('CHECK_SYMBOLIC_LINKS', FALSE);
// Alert status ok // Alert status ok
define('ALERT_STATUS_OK', 0); define('ALERT_STATUS_OK', 0);
@ -82,9 +85,12 @@ define('POSTS_PER_PAGE_ADMIN', 10);
// Check if JSON encode and decode are enabled. // Check if JSON encode and decode are enabled.
// define('JSON', function_exists('json_encode')); // define('JSON', function_exists('json_encode'));
// TRUE if new posts hand-made set published, or FALSE for draft. // Cli mode status for new posts/pages
define('CLI_STATUS', 'published'); define('CLI_STATUS', 'published');
// Cli mode username for new posts/pages
define('CLI_USERNAME', 'admin');
// Database date format // Database date format
define('DB_DATE_FORMAT', 'Y-m-d H:i:s'); define('DB_DATE_FORMAT', 'Y-m-d H:i:s');

View File

@ -20,10 +20,10 @@ function reIndexTagsPosts()
// Remove unpublished. // Remove unpublished.
$dbPosts->removeUnpublished(); $dbPosts->removeUnpublished();
// Regenerate the tags index for posts // Regenerate the tags index for posts.
$dbTags->reindexPosts( $dbPosts->db ); $dbTags->reindexPosts( $dbPosts->db );
// Restore de db on dbPost // Restore the database, before remove the unpublished.
$dbPosts->restoreDB(); $dbPosts->restoreDB();
return true; return true;

View File

@ -244,7 +244,12 @@ class dbPosts extends dbJSON
$outrange = $init<0 ? true : $init>$end; $outrange = $init<0 ? true : $init>$end;
if(!$outrange) { if(!$outrange) {
return array_slice($this->db, $init, $postPerPage, true); $tmp = array_slice($this->db, $init, $postPerPage, true);
// Restore the database because we delete the unpublished posts.
$this->restoreDB();
return $tmp;
} }
return array(); return array();
@ -390,7 +395,7 @@ class dbPosts extends dbJSON
return $a['date']<$b['date']; return $a['date']<$b['date'];
} }
// Return TRUE if there are new posts, FALSE otherwise. // Return TRUE if there are new posts or orphan post deleted, FALSE otherwise.
public function regenerateCli() public function regenerateCli()
{ {
$db = $this->db; $db = $this->db;
@ -407,23 +412,23 @@ class dbPosts extends dbJSON
$fields['status'] = CLI_STATUS; $fields['status'] = CLI_STATUS;
$fields['date'] = $currentDate; $fields['date'] = $currentDate;
$fields['username'] = 'admin'; $fields['username'] = CLI_USERNAME;
// Recovery posts from the first level of directories // Get all posts from the first level of directories.
$tmpPaths = Filesystem::listDirectories(PATH_POSTS); $tmpPaths = Filesystem::listDirectories(PATH_POSTS);
foreach($tmpPaths as $directory) foreach($tmpPaths as $directory)
{ {
if(file_exists($directory.DS.'index.txt')) // Check if the post have the index.txt file.
if(Sanitize::pathFile($directory.DS.'index.txt'))
{ {
// The key is the directory name. // The key is the directory name.
$key = basename($directory); $key = basename($directory);
// All keys posts
$allPosts[$key] = true; $allPosts[$key] = true;
// Create the new entry if not exist on DATABASE. // Create the new entry if not exist inside the DATABASE.
if(!isset($this->db[$key])) { if(!isset($this->db[$key])) {
// New entry on database // New entry on database with the default fields and values.
$this->db[$key] = $fields; $this->db[$key] = $fields;
} }

View File

@ -64,7 +64,6 @@ class dbTags extends dbJSON
public function reindexPosts($db) public function reindexPosts($db)
{ {
$tagsIndex = array(); $tagsIndex = array();
$currentDate = Date::current(DB_DATE_FORMAT);
// Foreach post // Foreach post
foreach($db as $postKey=>$values) foreach($db as $postKey=>$values)

View File

@ -40,7 +40,12 @@ class Sanitize {
// Fix for Windows on paths. eg: $path = c:\diego/page/subpage convert to c:\diego\page\subpages // Fix for Windows on paths. eg: $path = c:\diego/page/subpage convert to c:\diego\page\subpages
$fullPath = str_replace('/', DS, $fullPath); $fullPath = str_replace('/', DS, $fullPath);
if(CHECK_SYMBOLIC_LINKS) {
$real = realpath($fullPath); $real = realpath($fullPath);
}
else {
$real = file_exists($fullPath)?$fullPath:false;
}
// If $real is FALSE the file does not exist. // If $real is FALSE the file does not exist.
if($real===false) { if($real===false) {

View File

@ -142,6 +142,7 @@ class Theme {
return $tmp; return $tmp;
} }
} }
?> ?>

View File

@ -0,0 +1,96 @@
<script>
var coverImage = new function() {
this.set = function(filename) {
var imageSrc = HTML_PATH_UPLOADS_THUMBNAILS + filename;
// Cover image background
$("#cover-image-thumbnail").attr("style", "background-image: url("+imageSrc+")");
// Form attribute
$("#cover-image-upload-filename").attr("value", filename);
// Show delete button.
$("#cover-image-delete").show();
// Hide Cover image text.
$("#cover-image-upload").hide();
// Hide box "There are no images"
$(".empty-images").hide();
}
this.remove = function () {
// Remove the filename from the form.
$("#cover-image-upload-filename").attr("value","");
// Remove the image from background-image.
$("#cover-image-thumbnail").attr("style","");
// Hide delete button.
$("#cover-image-delete").hide();
// Show Cover image text.
$("#cover-image-upload").show();
}
}
$(document).ready(function() {
// Click on delete cover image.
$("#cover-image-delete").on("click", function() {
// Remove the cover image.
coverImage.remove();
});
var settings =
{
type: "json",
action: HTML_PATH_ADMIN_ROOT+"ajax/uploader",
allow : "*.(jpg|jpeg|gif|png)",
params: {"type":"cover-image"},
loadstart: function() {
$("#cover-image-progressbar").find(".uk-progress-bar").css("width", "0%").text("0%");
$("#cover-image-progressbar").show();
$("#cover-image-delete").hide();
$("#cover-image-upload").hide();
},
progress: function(percent) {
percent = Math.ceil(percent);
$("#cover-image-progressbar").find(".uk-progress-bar").css("width", percent+"%").text(percent+"%");
},
allcomplete: function(response) {
$("#cover-image-progressbar").find(".uk-progress-bar").css("width", "100%").text("100%");
$("#cover-image-progressbar").hide();
// Add Cover Image
coverImage.set( response.filename );
// Add thumbnail to Quick Images
quickImages.addThumbnail( response.filename );
// Add thumbnail to Bludit Images V8
imagesV8.addThumbnail( response.filename );
},
notallowed: function(file, settings) {
alert("'.$L->g('Supported image file types').' "+settings.allow);
}
};
UIkit.uploadSelect($("#cover-image-file-select"), settings);
UIkit.uploadDrop($("#cover-image-thumbnail"), settings);
});
</script>

View File

@ -0,0 +1,68 @@
<script>
var imagesV8 = new function() {
this.addThumbnail = function(filename) {
var imageSrc = HTML_PATH_UPLOADS_THUMBNAILS + filename;
// Add the new thumbnail to Bludit Images v8
$("#bludit-images-v8-thumbnails").prepend("<img class=\"bludit-thumbnail\" data-filename=\""+filename+"\" src=\""+imageSrc+"\" alt=\"Thumbnail\">");
}
this.removeThumbnail = function(filename) {
// Remove the thumbnail
$("#bludit-images-v8-thumbnails > img[data-filename=\""+filename+"\"]").remove();
if($("#bludit-images-v8-thumbnails > img").length == 0) {
// Show box "There are no images"
$(".empty-images").show();
}
}
}
$(document).ready(function() {
var settings =
{
type: "json",
action: HTML_PATH_ADMIN_ROOT+"ajax/uploader",
allow : "*.(jpg|jpeg|gif|png)",
params: {"type":"bludit-images-v8"},
loadstart: function() {
$("#bludit-images-v8-progressbar").find(".uk-progress-bar").css("width", "0%").text("0%");
$("#bludit-images-v8-drag-drop").hide();
$("#bludit-images-v8-progressbar").show();
},
progress: function(percent) {
percent = Math.ceil(percent);
$("#bludit-images-v8-progressbar").find(".uk-progress-bar").css("width", percent+"%").text(percent+"%");
},
allcomplete: function(response) {
$("#bludit-images-v8-progressbar").find(".uk-progress-bar").css("width", "100%").text("100%");
$("#bludit-images-v8-progressbar").hide();
$("#bludit-images-v8-drag-drop").show();
$(".empty-images").hide();
// Add thumbnail to Bludit Images V8
imagesV8.addThumbnail( response.filename );
// Add thumbnail to Quick Images
quickImages.addThumbnail( response.filename );
},
notallowed: function(file, settings) {
alert("'.$L->g('Supported image file types').' "+settings.allow);
}
};
UIkit.uploadSelect($("#bludit-images-v8-file-select"), settings);
UIkit.uploadDrop($("#bludit-images-v8-upload"), settings);
});
</script>

View File

@ -0,0 +1,144 @@
<script>
var menuV8 = new function() {
this.filenameSelected = null;
this.getFilename = function() {
return this.filenameSelected;
}
this.setFilename = function(filename) {
this.filenameSelected = filename;
}
this.hideMenu = function() {
// Check if the menu is visible.
if($("#bludit-menuV8").is(":visible")) {
// Hide the menu.
$("#bludit-menuV8").hide();
// Clean thumbnail borders.
$(".bludit-thumbnail").css("border", "1px solid #ddd");
}
}
this.showMenu = function(filenameSelected, positonX, positonY) {
// Store the image selected.
this.setFilename( filenameSelected );
console.log("Image selected: " + this.getFilename());
// Position the menu v8.
$("#bludit-menuV8").css({
left: positonX + "px",
top: positonY + "px"
});
// Show the menu v8.
$("#bludit-menuV8").show();
}
}
$(document).ready(function() {
// Click on document.
$(document).bind("click", function(e) {
// Deny hide if the click is over the thumbnail.
if($(e.target).is("img.bludit-thumbnail")) {
return false;
}
// Hide the menu.
menuV8.hideMenu(e);
});
// Click over thumbnail.
$("body").on("click", "img.bludit-thumbnail", function(e) {
console.log("Thumbnail click");
// Clean all thumbnail borders.
$(".bludit-thumbnail").css("border", "1px solid #ddd");
// Thumbnail selected.
var thumbnail = $(this);
// Add border to the thumbnail selected.
thumbnail.css("border", "solid 3px orange");
// Filename of the selected image.
var filenameSelected = thumbnail.attr("data-filename");
// SHow menu in position X and Y of the mouse.
menuV8.showMenu( filenameSelected, e.pageX, e.pageY );
});
// Insert image
$("body").on("click", "#bludit-menuV8-insert", function(e) {
// This function is defined in each editor plugin.
editorAddImage( menuV8.getFilename() );
});
// Set cover image
$("body").on("click", "#bludit-menuV8-cover", function(e) {
coverImage.set( menuV8.getFilename() );
});
// Delete image
$("body").on("click", "#bludit-menuV8-delete", function(e) {
var filenameSelected = menuV8.getFilename();
if(filenameSelected==null) {
return false;
}
ajaxRequest = $.ajax({
type: "POST",
data:{ filename: filenameSelected },
url: "<?php echo HTML_PATH_ADMIN_ROOT.'ajax/delete-file' ?>"
});
// Callback handler that will be called on success
ajaxRequest.done(function (response, textStatus, jqXHR){
// Remove the thumbnail from Images v8
imagesV8.removeThumbnail( filenameSelected );
// Remove the thumbnail from Quick Images
quickImages.removeThumbnail( filenameSelected );
console.log("Delete image: AJAX request done, message: "+response["msg"]);
});
// Callback handler that will be called on failure
ajaxRequest.fail(function (jqXHR, textStatus, errorThrown){
console.log("Delete image: AJAX request fail");
});
// Callback handler that will be called regardless
// if the request failed or succeeded
ajaxRequest.always(function () {
console.log("Delete image: AJAX request always");
});
});
});
</script>

View File

@ -0,0 +1,33 @@
<script>
var quickImages = new function() {
this.addThumbnail = function(filename) {
var imageSrc = HTML_PATH_UPLOADS_THUMBNAILS + filename;
// Remove element if there are more than 6 thumbnails
if ($("#bludit-quick-images-thumbnails > img").length > 5) {
$("img:last-child", "#bludit-quick-images-thumbnails").remove();
}
// Add the new thumbnail to Quick images
$("#bludit-quick-images-thumbnails").prepend("<img class=\"bludit-thumbnail\" data-filename=\""+filename+"\" src=\""+imageSrc+"\" alt=\"Thumbnail\">");
}
this.removeThumbnail = function(filename) {
// Remove the thumbnail
$("#bludit-quick-images-thumbnails > img[data-filename=\""+filename+"\"]").remove();
if($("#bludit-quick-images-thumbnails > img").length == 0) {
// Show box "There are no images"
$(".empty-images").show();
}
}
}
</script>

View File

@ -0,0 +1,64 @@
<script>
function insertTag() {
var newTag = $("#jstagInput").val();
if(newTag.trim()=="") {
return true;
}
$("#jstagList").append("<span class=\"select\">"+newTag+"</span>");
// Clean the input.
$("#jstagInput").val("");
}
$(document).ready(function() {
// Click on tag unselected.
$(document).on("click", ".unselect", function() {
$(this).removeClass("unselect").addClass("select");
});
// Click on tag selected.
$(document).on("click", ".select", function() {
$(this).removeClass("select").addClass("unselect");
});
// Insert tag when click on the button "add".
$(document).on("click", "#jstagAdd", function(e) {
// Prevent forum submit.
e.preventDefault();
insertTag();
});
// Insert tag when press enter key.
$("#jstagInput").keypress(function(e) {
if(e.which == 13) {
insertTag();
}
});
// Before form submit.
$("form").submit(function(e) {
// For each span.select make an array then implode with comma glue.
var list = $("#jstagList > span.select").map(function() {
return $(this).html();
}).get().join(",");
// Insert the tags separated by comma in the input hiden field.
$("#jstags").val( list );
});
});
</script>

View File

@ -200,10 +200,10 @@
"view-and-edit-your-profile": "Преглед и редактиране на профила ви.", "view-and-edit-your-profile": "Преглед и редактиране на профила ви.",
"password-must-be-at-least-6-characters-long": "Паролата трябва да е с дължина най-малко 6 символа", "password-must-be-at-least-6-characters-long": "Паролата трябва да е с дължина най-малко 6 символа",
"images": "Снимки", "images": "Изображения",
"upload-image": "Прикачи снимка", "upload-image": "Прикачи изображение",
"drag-and-drop-or-click-here": "Влачите и пускате или натиснете тук", "drag-and-drop-or-click-here": "Влачите и пускате или натиснете тук",
"insert-image": "Вмъкни снимка", "insert-image": "Вмъкни изображение",
"supported-image-file-types": "Поддържани файлови формати за снимки", "supported-image-file-types": "Поддържани файлови формати за снимки",
"date-format": "Формат дата ", "date-format": "Формат дата ",
"time-format": "Формат за време", "time-format": "Формат за време",
@ -222,11 +222,16 @@
"cover-image": "Обложка", "cover-image": "Обложка",
"blog": "Блог", "blog": "Блог",
"more-images": "Още снимки", "more-images": "Още изображения",
"double-click-on-the-image-to-add-it": "Кликнете два пъти върху изображението, за да го добавите.",
"click-here-to-cancel": "Кликнете тук, за да отмените.", "click-here-to-cancel": "Кликнете тук, за да отмените.",
"type-the-tag-and-press-enter": "Напишете етикет и натиснете клавиша Enter.", "type-the-tag-and-press-enter": "Напишете етикет и натиснете клавиша Enter.",
"manage-your-bludit-from-the-admin-panel": "Управлявайте вашият Bludit от [admin area]({{ADMIN_AREA_LINK}})", "manage-your-bludit-from-the-admin-panel": "Управлявайте вашият Bludit от [admin area]({{ADMIN_AREA_LINK}})",
"there-are-no-images":"Няма изображения" "there-are-no-images":"Няма изображения",
"click-on-the-image-for-options": "Кликнете върху изображението за опции.",
"set-as-cover-image": "Задай като обложка ",
"delete-image": "Изтрий на изображенито",
"image-description": "Описание на изображението "
} }

View File

@ -1,148 +0,0 @@
{
"language-data":
{
"native": "Czech (Czech Republik)",
"english-name": "Czech",
"last-update": "2015-06-14",
"author": "honigp",
"email": "honigp@seznam.cz",
"website": "honigp.cz"
},
"username": "Jméno",
"password": "Heslo",
"confirm-password": "Heslo znovu",
"editor": "Editor",
"dashboard": "Nástěnka",
"role": "Úroveň",
"post": "Zveřejnit",
"posts": "Počet příspěvků",
"users": "Počet uživatelů",
"administrator": "Administrátor",
"add": "Přidat",
"cancel": "Zrušit",
"content": "Obsah",
"title": "Nadpis",
"no-parent": "Bez zdroje",
"edit-page": "Upravit stránku",
"edit-post": "Upravit příspěvek",
"add-a-new-user": "Přidání nového uživatele",
"parent": "Zdroj",
"friendly-url": "Pěkné URL",
"description": "Popis",
"posted-by": "Přidat",
"tags": "Štítky",
"position": "Umístit",
"save": "Uložit",
"draft": "Návrh",
"delete": "Smazat",
"registered": "Registrace",
"Notifications": "Oznámení",
"profile": "Profil",
"email": "Email",
"settings": "Nastavení",
"general": "Obecné",
"advanced": "Pokročilé",
"regional": "Region",
"about": "O systému",
"login": "Přihlásit",
"logout": "Odhlásit",
"manage": "Správa obsahu",
"themes": "Motiv",
"prev-page": "Předchozí stránka",
"next-page": "Následující stránka",
"configure-plugin": "nastavení pluginů",
"confirm-delete-this-action-cannot-be-undone": "Potvrdit odstranění,tato akce nelze vrátit zpět.",
"site-title": "Název webu",
"site-slogan": "Slogan webu",
"site-description": "Popis webu",
"footer-text": "Patička text",
"posts-per-page": "Příspěvků na stránku",
"site-url": "Adresa webu",
"writting-settings": "Nastavení psaní",
"url-filters": "URL filtr",
"page": "Stránka",
"pages": "Stránky",
"home": "Domů",
"welcome-back": "Vítejte",
"language": "Jazyk",
"website": "Stránka",
"timezone": "Časová zóna",
"locale": "Místní",
"new-post": "Nový příspěvek",
"html-and-markdown-code-supported": "Podpora HTML a Markdown",
"new-page": "Nová stránka",
"manage-posts": "Správa příspěvků",
"published-date": "Publikováno",
"modified-date": "Datum úpravy",
"empty-title": "Prázdný titul",
"plugins": "Pluginy",
"install-plugin": "Instalovat plugin",
"uninstall-plugin": "Odinstalovat plugin",
"new-password": "Nové heslo",
"edit-user": "Upravit uživatele",
"publish-now": "Publikovat nyní",
"first-name": "Jméno",
"last-name": "Příjmení",
"bludit-version": "Bludit verze",
"powered-by": "Powered by",
"recent-posts": "Poslední příspěvky",
"manage-pages": "Správa stránek",
"advanced-options": "Pokročilé možnosti",
"user-deleted": "Uživatel smazán",
"page-added-successfully": "Stránka přidána",
"post-added-successfully": "Příspěvek přidán",
"the-post-has-been-deleted-successfully": "Příspěvek byl úspěšně smazán",
"the-page-has-been-deleted-successfully": "Stránka byla úspěšně smazána",
"username-or-password-incorrect": "Uživatelské jméno nebo heslo není správné",
"database-regenerated": "Databáze regeneruje",
"the-changes-have-been-saved": "Změny byly uloženy",
"enable-more-features-at": "Další funkce na",
"username-already-exists": "Uživatelské jméno již existuje",
"username-field-is-empty": "Uživatelské jméno je prázdné",
"the-password-and-confirmation-password-do-not-match":"Heslo a potvrzení hesla se neshodují",
"user-has-been-added-successfully": "Uživatel byl úspěšně přidán",
"you-do-not-have-sufficient-permissions": "Nemáte dostatečná oprávnění pro přístup k této stránce, obraťte se na správce.",
"settings-advanced-writting-settings": "Nastavení->Pokročilé->Nastavení psaní",
"new-posts-and-pages-synchronized": "Nové příspěvky a stránky synchronizované.",
"you-can-choose-the-users-privilege": "Můžete si vybrat oprávnění uživatele.Editor může jen psát stránky a příspěvky.",
"email-will-not-be-publicly-displayed": "E-mail nebude veřejně zobrazen. Doporučuje se heslo pro obnovení a oznámení.",
"use-this-field-to-name-your-site": "V tomto poli lze pojmenovat vaše stránky, zobrazí se v horní části každé stránky vašeho webu.",
"use-this-field-to-add-a-catchy-prhase": "Pomocí tohoto pole přidejte chytlavý slogan na vašem webu.",
"you-can-add-a-site-description-to-provide": "Můžete přidat popis webu nebo krátký životopis.",
"you-can-add-a-small-text-on-the-bottom": "Můžete přidat text v patičce každé stránky. např: autorská práva, vlastník, data, atd",
"number-of-posts-to-show-per-page": "Počet příspěvků na stránce.",
"the-url-of-your-site": "Adresa URL vašich stránek.",
"add-or-edit-description-tags-or": "Přidat nebo upravit popis,značky,pěkné URL.",
"select-your-sites-language": "Vyberte jazyk svých stránek.",
"select-a-timezone-for-a-correct": "Vyberte časové pásmo pro správné zobrazení data / času na vašem webu.",
"you-can-use-this-field-to-define-a-set-of": "Můžete použít toto pole pro definování parametrů souvisejících s jazykem a zemí.",
"you-can-modify-the-url-which-identifies":"Můžete upravit adresu URL, která identifikuje stránku. Ne víc než 150 znaků.",
"this-field-can-help-describe-the-content": "Zde můžete napsat obsah několika slovy. Ne víc než 150 znaků.",
"write-the-tags-separated-by-comma": "Napište štítky oddělené čárkou. např: štítek1, štítek2, štítek3",
"delete-the-user-and-all-its-posts":"Odstranit uživatele a všechny jeho příspěvky",
"delete-the-user-and-associate-its-posts-to-admin-user": "Odstranit uživatele a spojit své příspěvky na uživatele admin",
"read-more": "Čtěte více",
"show-blog": "Zobrazit blog",
"default-home-page": "Výchozí domovská stránka",
"version": "Verze",
"there-are-no-drafts": "Nejsou k dispozici žádné návrhy.",
"create-a-new-article-for-your-blog":"Vytvořte nový článek pro váš blog.",
"create-a-new-page-for-your-website":"Vytvořte novou stránku pro vaše webové stránky.",
"invite-a-friend-to-collaborate-on-your-website":"Pozvěte přátele ke spolupráci na svých webových stránkách.",
"change-your-language-and-region-settings":"Změna nastavení jazyka a regionu.",
"language-and-timezone":"Jazyk a časová zóna",
"author": "Autor",
"start-here": "Začněte zde",
"install-theme": "Instalovat motiv",
"first-post": "První příspěvek",
"congratulations-you-have-successfully-installed-your-bludit": "Blahopřejeme právě jste nainstalovaly **Bludit**",
"whats-next": "Kam dál",
"manage-your-bludit-from-the-admin-panel": "Správa vašeho webu [admin area](./admin/)",
"follow-bludit-on": "Follow Bludit on",
"visit-the-support-forum": "Navštivte [forum](http://forum.bludit.com) fórum",
"read-the-documentation-for-more-information": "Čtětě [documentation](http://docs.bludit.com) více informaví",
"share-with-your-friends-and-enjoy": "Podělte se se svými přáteli a užívejte si",
"the-page-has-not-been-found": "Stránka nenalezena.",
"error": "Error"
}

View File

@ -3,7 +3,7 @@
{ {
"native": "English (United States)", "native": "English (United States)",
"english-name": "English", "english-name": "English",
"last-update": "2015-12-01", "last-update": "2016-02-13",
"author": "Diego", "author": "Diego",
"email": "", "email": "",
"website": "" "website": ""
@ -223,9 +223,14 @@
"cover-image": "Cover image", "cover-image": "Cover image",
"blog": "Blog", "blog": "Blog",
"more-images": "More images", "more-images": "More images",
"double-click-on-the-image-to-add-it": "Double click on the image to add it.",
"click-here-to-cancel": "Click here to cancel.", "click-here-to-cancel": "Click here to cancel.",
"type-the-tag-and-press-enter": "Type the tag and press enter.", "type-the-tag-and-press-enter": "Type the tag and press enter.",
"manage-your-bludit-from-the-admin-panel": "Manage your Bludit from the [admin area]({{ADMIN_AREA_LINK}})", "manage-your-bludit-from-the-admin-panel": "Manage your Bludit from the [admin area]({{ADMIN_AREA_LINK}})",
"there-are-no-images":"There are no images" "there-are-no-images":"There are no images",
"click-on-the-image-for-options": "Click on the image for options.",
"set-as-cover-image": "Set as cover image",
"delete-image": "Delete image",
"image-description": "Image description"
} }

View File

@ -3,7 +3,7 @@
{ {
"native": "Español (Argentina)", "native": "Español (Argentina)",
"english-name": "Spanish", "english-name": "Spanish",
"last-update": "2016-01-22", "last-update": "2016-02-13",
"author": "Diego", "author": "Diego",
"email": "", "email": "",
"website": "" "website": ""
@ -223,9 +223,14 @@
"cover-image": "Imagen de portada", "cover-image": "Imagen de portada",
"blog": "Blog", "blog": "Blog",
"more-images": "Mas imagenes", "more-images": "Mas imagenes",
"double-click-on-the-image-to-add-it": "Doble clic en la imagen para insertarla.",
"click-here-to-cancel": "Clic aquí para cancelar.", "click-here-to-cancel": "Clic aquí para cancelar.",
"type-the-tag-and-press-enter": "Escriba la etiqueta y presione enter.", "type-the-tag-and-press-enter": "Escriba la etiqueta y presione enter.",
"manage-your-bludit-from-the-admin-panel": "Administre su Bludit desde el [panel de administración]({{ADMIN_AREA_LINK}})", "manage-your-bludit-from-the-admin-panel": "Administre su Bludit desde el [panel de administración]({{ADMIN_AREA_LINK}})",
"there-are-no-images":"No hay imagenes" "there-are-no-images":"No hay imagenes",
"click-on-the-image-for-options": "Clic en la imagen para las opciones.",
"set-as-cover-image": "Establecer como portada",
"delete-image": "Eliminar imagen",
"image-description": "Descripción de la imagen"
} }

View File

@ -1,172 +0,0 @@
{
"language-data":
{
"native": "Español (España)",
"english-name": "Spanish",
"last-update": "2015-08-28",
"author": "Tak-MK",
"email": "snavarrotd {at} gmail {dot} com",
"website": "http://sevendats.com"
},
"username": "Nombre de usuario",
"password": "Contraseña",
"confirm-password": "Confirmar contraseña",
"editor": "Editor",
"dashboard": "Panel",
"role": "Rol",
"post": "Post",
"posts": "Posts",
"users": "Usuarios",
"administrator": "Administrador",
"add": "Agregar",
"cancel": "Cancel",
"content": "Contenido",
"title": "Título",
"no-parent": "Sin padre",
"edit-page": "Editar página",
"edit-post": "Editar post",
"add-a-new-user": "Agregar nuevo usuario",
"parent": "Padre",
"friendly-url": "URL Amigable",
"description": "Descripción",
"posted-by": "Publicado por",
"tags": "Etiquetas",
"position": "Posición",
"save": "Guardar",
"draft": "Borrador",
"delete": "Eliminar",
"registered": "Registrado",
"Notifications": "Notificaciones",
"profile": "Perfil",
"email": "Correo electrónico",
"settings": "Ajustes",
"general": "General",
"advanced": "Avanzado",
"regional": "Regional",
"about": "Acerca de",
"login": "Iniciar sesión",
"logout": "Cerrar sesión",
"manage": "Administrar",
"themes": "Temas",
"prev-page": "Pag. anterior",
"next-page": "Pag. siguiente",
"configure-plugin": "Configurar plugin",
"confirm-delete-this-action-cannot-be-undone": "Confirmar eliminación, esta operación no se puede deshacer.",
"site-title": "Título del sitio",
"site-slogan": "Eslogan del sitio",
"site-description": "Descripción del sitio",
"footer-text": "Texto de pie de página",
"posts-per-page": "Posts por página",
"site-url": "URL del sitio",
"writting-settings": "Ajustes de redacción",
"url-filters": "Filtros URL",
"page": "página",
"pages": "páginas",
"home": "Inicio",
"welcome-back": "Bienvenido",
"language": "Lenguaje",
"website": "Sitio web",
"timezone": "Zona horaria",
"locale": "Codificación",
"new-post": "Nuevo post",
"new-page": "Nueva página",
"html-and-markdown-code-supported": "Código HTML y Markdown soportado",
"manage-posts": "Administrar posts",
"published-date": "Fecha de publicación",
"modified-date": "Fecha de modificación",
"empty-title": "Título vacío",
"plugins": "Plugins",
"install-plugin": "Instalar plugin",
"uninstall-plugin": "Desinstalar plugin",
"new-password": "Nueva contraseña",
"edit-user": "Editar usuario",
"publish-now": "Publicar",
"first-name": "Nombre",
"last-name": "Apellido",
"bludit-version": "Bludit versión",
"powered-by": "Corriendo con",
"recent-posts": "Posts recientes",
"manage-pages": "Administrar páginas",
"advanced-options": "Opciones avanzadas",
"user-deleted": "Usuario eliminado",
"page-added-successfully": "Página agregada con éxito",
"post-added-successfully": "Post agregado con éxito ",
"the-post-has-been-deleted-successfully": "El post ha sido eliminado con éxito",
"the-page-has-been-deleted-successfully": "La página ha sido eliminada con éxito",
"username-or-password-incorrect": "Nombre de usuario o contraseña incorrectos",
"database-regenerated": "Base de datos regenerada",
"the-changes-have-been-saved": "Los cambios han sido guardados",
"enable-more-features-at": "Habilitar más funciones en",
"username-already-exists": "El nombre de usuario ya existe",
"username-field-is-empty": "El campo nombre de usuario esta vacío",
"the-password-and-confirmation-password-do-not-match": "Las contraseñas no coinciden",
"user-has-been-added-successfully": "El usuario ha sido creado con éxito",
"you-do-not-have-sufficient-permissions": "No tiene suficientes permisos para acceder a esta página, contacta con el administrador.",
"settings-advanced-writting-settings": "Ajustes->Avanzado->Ajustes de redacción",
"new-posts-and-pages-synchronized": "Nuevos posts y páginas sincronizados.",
"you-can-choose-the-users-privilege": "Puede elegir los privilegios del usuario. El rol editor solo puede redactar páginas y post.",
"email-will-not-be-publicly-displayed": "El correo electrónico no será visible. Recomendado para recuperar la contraseña y notificaciones.",
"use-this-field-to-name-your-site": "Utilice este campo para nombrar su sitio, aparecerá en la parte superior de cada página de su sitio.",
"use-this-field-to-add-a-catchy-phrase": "Utilice este campo para agregar un slogan a su sitio.",
"you-can-add-a-site-description-to-provide": "Puede agregar una descripción del sitio para proporcionar una breve biografía o descripción de su sitio.",
"you-can-add-a-small-text-on-the-bottom": "Puede agregar un pequeño texto en el pie de página. ej: copyright, autor, fechas, etc.",
"number-of-posts-to-show-per-page": "Numero de posts a mostrar por página.",
"the-url-of-your-site": "URL de su sitio.",
"add-or-edit-description-tags-or": "Agregar o editar la descripción, tags y modificar la URL amigable.",
"select-your-sites-language": "Seleccione el lenguaje de su sitio.",
"select-a-timezone-for-a-correct": "Seleccione la zona horaria para una correcta visualización de las fechas.",
"you-can-use-this-field-to-define-a-set-of": "Puede utilizar este campo para definir un conjunto de parámetros relacionados con el idioma, país y preferencias especiales.",
"you-can-modify-the-url-which-identifies": "Puede modificar la dirección URL que identifica una página o post usando palabras clave legible. No más de 150 caracteres.",
"this-field-can-help-describe-the-content": "Este campo puede ayudar a describir el contenido en pocas palabras. No más de 150 caracteres.",
"write-the-tags-separated-by-comma": "Escribir los tags separados por comas. ej: tag1, tag2, tag3",
"delete-the-user-and-all-its-posts": "Eliminar el usuario y sus posts",
"delete-the-user-and-associate-its-posts-to-admin-user": "Eliminar el usuario y asociar los posts al usuario admin",
"read-more": "Leer más",
"show-blog": "Mostrar blog",
"default-home-page": "página de inicio predeterminada",
"version": "Versión",
"there-are-no-drafts": "No hay borradores",
"create-a-new-article-for-your-blog":"Crear un nuevo artículo para su blog.",
"create-a-new-page-for-your-website":"Crear una nueva página para su sitio web.",
"invite-a-friend-to-collaborate-on-your-website":"Invite a un amigo para colaborar en el sitio web.",
"change-your-language-and-region-settings":"Cambiar la configuración de idioma y región.",
"language-and-timezone":"Idioma y zona horaria",
"author": "Autor",
"start-here": "Comience aquí",
"install-theme": "Instalar tema",
"first-post": "Primer post",
"congratulations-you-have-successfully-installed-your-bludit": "Felicitación, usted ha instalado **Bludit** exitosamente",
"whats-next": "Siguientes pasos",
"manage-your-bludit-from-the-admin-panel": "Administre su Bludit desde el [panel de administración](./admin/)",
"follow-bludit-on": "Siga Bludit en",
"visit-the-support-forum": "Visite el [foro](http://forum.bludit.com) para soporte",
"read-the-documentation-for-more-information": "Lea la [documentación](http://docs.bludit.com) para mas información",
"share-with-your-friends-and-enjoy": "Compartí con tus amigos y a disfrutar",
"the-page-has-not-been-found": "La página no fue encontrada.",
"error": "Error",
"bludit-installer": "Instalador de Bludit",
"welcome-to-the-bludit-installer": "Bienvenido al asistente para la instalación de Bludit",
"complete-the-form-choose-a-password-for-the-username-admin": "Complete el formulario y elija una contraseña para el usuario « admin »",
"password-visible-field": "Contraseña, ¡este campo es visible!",
"install": "Instalar",
"choose-your-language": "Seleccione su idioma",
"next": "Siguiente",
"the-password-field-is-empty": "Debe completar el campo contraseña",
"your-email-address-is-invalid":"Su dirección de correo es inválida.",
"proceed-anyway": "¡Continuar de todas formas!",
"drafts":"Borradores",
"ip-address-has-been-blocked":"La dirección IP fue bloqueada.",
"try-again-in-a-few-minutes": "Vuelva a intentar en unos minutos.",
"date": "Fecha",
"you-can-schedule-the-post-just-select-the-date-and-time": "Puede programar un post, solo seleccione la fecha y hora.",
"scheduled": "Programado",
"publish": "Publicar",
"please-check-your-theme-configuration": "Verifique la configuración del tema.",
"plugin-label": "Titulo del plugin",
"enabled": "Habilitado",
"disabled": "Deshabilitado",
"cli-mode": "Modo Cli",
"command-line-mode": "Linea de comandos",
"enable-the-command-line-mode-if-you-add-edit": "Habilite el modo linea de comando si usted crea, edita o elimina posts o paginas desde el sistema de archivos."
}

View File

@ -1,129 +0,0 @@
{
"language-data":
{
"native": "Español (Venezuela)",
"english-name": "Spanish",
"last-update": "2015-07-27",
"author": "c-sanchez",
"email": "",
"website": ""
},
"username": "Usuario",
"password": "Contraseña",
"confirm-password": "Confirmar contraseña",
"editor": "Editor",
"dashboard": "Tablero",
"role": "Papel",
"post": "Mensaje",
"posts": "Entrada",
"users": "Usuarios",
"administrator": "Administrador",
"add": "Agregar",
"cancel": "Cancelar",
"content": "Contenido",
"title": "Título",
"no-parent": "Ningún padre",
"edit-page": "Editar página",
"edit-post": "Editar entrada",
"add-a-new-user": "Agregar un nuevo usuario",
"parent": "Padre",
"friendly-url": "URL amigable",
"description": "Descripción",
"posted-by": "Publicado por",
"tags": "Etiquetas",
"position": "Posición",
"save": "Guardar",
"draft": "Borrador",
"delete": "Eliminar",
"registered": "Registrado",
"Notifications": "Notificaciones",
"profile": "Perfil",
"email": "Email",
"settings": "Ajustes",
"general": "General",
"advanced": "Avanzado",
"regional": "Regional",
"about": "Acerca de...",
"login": "Ingresar",
"logout": "Salir",
"manage": "Administrar",
"themes": "Temas",
"prev-page": "Página Anterior",
"next-page": "Siguiente página",
"configure-plugin": "Configurar complemento",
"confirm-delete-this-action-cannot-be-undone": "Confirmar eliminar, esta acción no se puede deshacer.",
"site-title": "Título del sitio",
"site-slogan": "Lema del sitio",
"site-description": "Descripción del sitio",
"footer-text": "Texto de pie de página",
"posts-per-page": "Entradas por página",
"site-url": "URL del sitio",
"writting-settings": "Ajustes de redacción",
"url-filters": "Filtros de URL",
"page": "Página",
"pages": "Páginas",
"home": "Página de inicio",
"welcome-back": "Bienvenido",
"language": "Idioma",
"website": "Sitio web",
"timezone": "Zona Horaria",
"locale": "Localización",
"notifications": "Notificaciones",
"new-post": "Nueva entrada",
"html-and-markdown-code-supported": "Código HTML y Markdown soportado",
"new-page": "Nueva página",
"manage-posts": "Administrar mensajes",
"published-date": "Fecha de publicación",
"modified-date": "Fecha de modificación",
"empty-title": "Título vacío",
"plugins": "Complementos",
"install-plugin": "Instalar complemento",
"uninstall-plugin": "Desinstalar complemento",
"new-password": "Nueva contraseña",
"edit-user": "Editar usuario",
"publish-now": "Publicar ahora",
"first-name": "Nombre",
"last-name": "Apellido",
"bludit-version": "Versión de Bludit",
"powered-by": "Impulsado por",
"recent-posts": "Mensajes recientes",
"manage-pages": "Administrar páginas",
"advanced-options": "Opciones avanzadas",
"user-deleted": "Usuario eliminado",
"page-added-successfully": "Página agregada correctamente",
"post-added-successfully": "Mensaje agregado correctamente",
"the-post-has-been-deleted-successfully": "El mensaje ha sido eliminado correctamente",
"the-page-has-been-deleted-successfully": "La página ha sido eliminado correctamente",
"username-or-password-incorrect": "Usuario o contraseña incorrecto",
"database-regenerated": "Base de datos regenerada",
"the-changes-have-been-saved": "Los cambios han sido guardados",
"html-markdown-code-supported": "Código HTML y Markdown soportado.",
"enable-more-features-at": "Activar más funciones en",
"username-already-exists": "Ya existe nombre de usuario",
"username-field-is-empty": "Está vacío el campo de nombre de usuario ",
"the-password-and-confirmation-password-do-not-match":"La contraseña y la contraseña de confirmación no coinciden",
"user-has-been-added-successfully": "El usuario se ha agregado correctamente",
"you-do-not-have-sufficient-permissions": "No tienes permisos suficientes para acceder a esta página, póngase en contacto con el administrador.",
"settings-advanced-writting-settings": "Ajustes->Avanzado->Ajustes de redacción",
"new-posts-and-pages-synchronized": "Nuevos mensajes y páginas sincronizadas.",
"you-can-choose-the-users-privilege": "Usted puede elegir los privilegios del usuario. El papel del editor sólo puede escribir páginas y mensajes.",
"email-will-not-be-publicly-displayed": "El correo electrónico no se mostrará públicamente. Recomendado para notificaciones y recuperación contraseña.",
"use-this-field-to-name-your-site": "Use este campo para el nombre de su sitio, aparecerá en la parte superior de cada página de su sitio.",
"use-this-field-to-add-a-catchy-phrase": "Use este campo para agregar una frase pegadiza en su sitio.",
"you-can-add-a-site-description-to-provide": "Puede agregar una descripción del sitio para proporcionar una breve biografía o descripción de su sitio.",
"you-can-add-a-small-text-on-the-bottom": "Puede añadir un pequeño texto en la parte inferior de cada página. por ejemplo: derechos de autor, propietario, fechas, etc.",
"number-of-posts-to-show-per-page": "Número de mensajes a mostrar por página.",
"the-url-of-your-site": "La URL de su sitio.",
"add-or-edit-description-tags-or": "Agregar o editar la descripción, etiquetas o modificar la URL amigable.",
"select-your-sites-language": "Seleccionar el idioma de su sitio.",
"select-a-timezone-for-a-correct": "Seleccione una zona horaria para mostrar correctamente la fecha y hora en su sitio.",
"you-can-use-this-field-to-define-a-set-of": "Puede usar este campo para definir un conjunto de parámetros relacionados con la languege, el país y preferencias especiales.",
"you-can-modify-the-url-which-identifies":"You can modify the URL which identifies a page or post using human-readable keywords. No more than 150 characters.",
"this-field-can-help-describe-the-content": "Este campo puede ayudar a describir el contenido en pocas palabras. No más de 150 caracteres.",
"write-the-tags-separated-by-comma": "Escribir las etiquetas separadas por comas. por ejemplo: etiqueta1, etiqueta2, etiqueta3",
"delete": "Delete",
"delete-the-user-and-all-its-posts":"Eliminar el usuario y todos sus mensajes",
"delete-the-user-and-associate-its-posts-to-admin-user": "Eliminar el usuario y asociar sus mensajes al usuario administrador",
"read-more": "Leer más"
}

View File

@ -1,166 +0,0 @@
{
"language-data":
{
"native": "Bahasa Indonesia (Indonesia)",
"english-name": "Indonesian",
"last-update": "2015-09-29",
"author": "Cempal",
"email": "contact@cempal.com",
"website": "http://www.cempal.com"
},
"username": "Nama Pengguna",
"password": "Kata Sandi",
"confirm-password": "Ulangi Kata Sandi",
"editor": "Editor",
"dashboard": "Dasbor",
"role": "Peran",
"post": "Posting",
"posts": "Posting",
"users": "Pengguna",
"administrator": "Administrator",
"add": "Tambah",
"cancel": "Batal",
"content": "Isi",
"title": "Judul",
"no-parent": "Tanpa Induk",
"edit-page": "Sunting halaman",
"edit-post": "Sunting post",
"add-a-new-user": "Tambah pengguna baru",
"parent": "Induk",
"friendly-url": "Alamat URL Yang Ramah",
"description": "Penjelasan",
"posted-by": "Diterbitkan oleh",
"tags": "Label",
"position": "Posisi",
"save": "Simpan",
"draft": "Konsep",
"delete": "Hapus",
"registered": "Terdaftar",
"Notifications": "Pemberitahuan",
"profile": "Profil",
"email": "Surat elektronik",
"settings": "Pengaturan",
"general": "Umum",
"advanced": "Lanjutan",
"regional": "Wilayah",
"about": "Tentang",
"login": "Masuk",
"logout": "Keluar",
"manage": "Kelola",
"themes": "Tema",
"prev-page": "Halaman sebelumnya",
"next-page": "Halaman selanjutnya",
"configure-plugin": "Atur plugin",
"confirm-delete-this-action-cannot-be-undone": "Konfirmasi penghapusan, tindakan ini tidak dapat dibatalkan.",
"site-title": "Judul situs",
"site-slogan": "Slogan situs",
"site-description": "Deskripsi situs",
"footer-text": "Footer teks",
"posts-per-page": "Jumlah posting per halaman",
"site-url": "Alamat situs",
"writting-settings": "Pengaturan penulisan",
"url-filters": "Filter URL",
"page": "Halaman",
"pages": "Halaman",
"home": "Beranda",
"welcome-back": "Selamat Datang kembali",
"language": "Bahasa",
"website": "Website",
"timezone": "Zona waktu",
"locale": "Lokal",
"new-post": "Post baru",
"html-and-markdown-code-supported": "Mendukung HTML dan kode Markdown",
"new-page": "Halaman baru",
"manage-posts": "Kelola posting",
"published-date": "Tanggal diterbitkan",
"modified-date": "Tanggal modifikasi",
"empty-title": "Judul kosong",
"plugins": "Plugin",
"install-plugin": "Pasang plugin",
"uninstall-plugin": "Hapus plugin",
"new-password": "Kata kunci baru",
"edit-user": "Edit pengguna",
"publish-now": "Publikasi sekarang",
"first-name": "Nama depan",
"last-name": "Nama belakang",
"bludit-version": "Versi Bludit",
"powered-by": "Dipersembahkan oleh",
"recent-posts": "Posting Terbaru",
"manage-pages": "Kelola halaman",
"advanced-options": "Pilihan tingkat lanjut",
"user-deleted": "Pengguna dihapus",
"page-added-successfully": "Halaman telah ditambahkan",
"post-added-successfully": "Post telah ditambahkan",
"the-post-has-been-deleted-successfully": "Posting telah berhasil dihapus",
"the-page-has-been-deleted-successfully": "Halaman telah berhasil dihapus",
"username-or-password-incorrect": "Nama pengguna atau kata kunci tidak cocok",
"database-regenerated": "Database diregenerasi",
"the-changes-have-been-saved": "Perubahan telah disimpan",
"enable-more-features-at": "Memungkinkan lebih banyak fitur di",
"username-already-exists": "Nama pengguna sudah ada",
"username-field-is-empty": "Nama pengguna tidak diisi",
"the-password-and-confirmation-password-do-not-match":"Kata kunci dan konfirmasi kata kunci tidak sama",
"user-has-been-added-successfully": "Pengguna telah ditambahkan",
"you-do-not-have-sufficient-permissions": "Anda tidak memiliki izin yang memadai untuk mengakses halaman ini, hubungi administrator.",
"settings-advanced-writting-settings": "Pengaturan->Tingkat Lanjut->Pengaturan Penulisan",
"new-posts-and-pages-synchronized": "Post dan halaman baru telah disinkronisasi.",
"you-can-choose-the-users-privilege": "Anda dapat memilih hak pengguna. Peran Editor hanya bisa menulis halaman dan posting.",
"email-will-not-be-publicly-displayed": "Alamat surat elektronik tidak akan ditampilkan untuk umum. Direkomendasikan untuk pemulihan kata kunci dan pemberitahuan.",
"use-this-field-to-name-your-site": "Gunakan bidang ini untuk nama situs Anda, akan muncul di bagian atas setiap halaman situs Anda.",
"use-this-field-to-add-a-catchy-phrase": "Gunakan bidang ini untuk menambahkan frase menarik di situs Anda.",
"you-can-add-a-site-description-to-provide": "Anda dapat menambahkan deskripsi situs untuk memberikan informasi singkat mengenai situs Anda.",
"you-can-add-a-small-text-on-the-bottom": "Anda dapat menambahkan teks di bagian bawah setiap halaman. misalnya: hak cipta, pemilik, tanggal, dll.",
"number-of-posts-to-show-per-page": "Jumlah posting untuk ditampilkan per halaman.",
"the-url-of-your-site": "Alamat URL dari situs Anda.",
"add-or-edit-description-tags-or": "Tambahkan atau ubah deskripsi, label, atau ubah alamat URL.",
"select-your-sites-language": "Pilih bahasa bagi situs Anda.",
"select-a-timezone-for-a-correct": "Pilih zona waktu bagi situs Anda.",
"you-can-use-this-field-to-define-a-set-of": "Anda dapat menggunakan bidang ini untuk mendefinisikan satu set parameter yang terkait dengan bahasa, negara dan preferensi khusus.",
"you-can-modify-the-url-which-identifies":"Anda dapat memodifikasi URL yang mengidentifikasi halaman atau posting menggunakan kata kunci yang mudah dipahami manusia. Tidak lebih dari 150 karakter.",
"this-field-can-help-describe-the-content": "Bidang ini untuk membantu menjelaskan isi dalam beberapa kata. Tidak lebih dari 150 karakter.",
"write-the-tags-separated-by-comma": "Tulis label yang dipisahkan oleh tanda koma. Contohnya: label1, label2, label3",
"delete-the-user-and-all-its-posts":"Hapus pengguna dan semua postingnya",
"delete-the-user-and-associate-its-posts-to-admin-user": "Hapus pengguna dan hibahkan postingnya kepada pengguna dengan tingkatan admin",
"read-more": "Baca seterusnya",
"show-blog": "Tampilkan blog",
"default-home-page": "Beranda default",
"version": "Versi",
"there-are-no-drafts": "Tidak ada draft.",
"create-a-new-article-for-your-blog":"Buat artikel baru untuk blog Anda.",
"create-a-new-page-for-your-website":"Membuat halaman baru untuk situs web Anda.",
"invite-a-friend-to-collaborate-on-your-website":"Undang teman untuk berkolaborasi pada situs Anda.",
"change-your-language-and-region-settings":"Ubah pengaturan bahasa dan wilayah Anda.",
"language-and-timezone":"Bahasa dan zona waktu",
"author": "Penulis",
"start-here": "Mulai dari sini",
"install-theme": "Pasang tema",
"first-post": "Posting pertama",
"congratulations-you-have-successfully-installed-your-bludit": "Selamat Anda telah berhasil menginstal **Bludit**",
"whats-next": "Apa Berikutnya",
"manage-your-bludit-from-the-admin-panel": "Kelola Bludit Anda dari [admin area](./admin/)",
"follow-bludit-on": "Ikuti Bludit di",
"visit-the-support-forum": "Kunjungi [forum](http://forum.bludit.com) untuk bantuan",
"read-the-documentation-for-more-information": "Baca [documentation](http://docs.bludit.com) untuk informasi lebih lanjut",
"share-with-your-friends-and-enjoy": "Berbagi dengan teman Anda dan selamat menikmati",
"the-page-has-not-been-found": "Halaman tidak ditemukan.",
"error": "Kesalahan",
"bludit-installer": "Bantuan Pemasangan Bludit",
"welcome-to-the-bludit-installer": "Selamat Datang pada Bantuan Pemasangan Bludit",
"complete-the-form-choose-a-password-for-the-username-admin": "Lengkapi formulir, pilih kata kunci untuk pengguna « admin »",
"password-visible-field": "Kata kunci, bidang yang terlihat!",
"install": "Pasang",
"choose-your-language": "Pilih bahasa Anda",
"next": "Berikutnya",
"the-password-field-is-empty": "Kata kunci tidak diisi",
"your-email-address-is-invalid":"Alamat surat elektronik tidak benar.",
"proceed-anyway": "Tetap lanjutkan!",
"drafts":"Draft",
"ip-address-has-been-blocked": "Alamat IP diblokir.",
"try-again-in-a-few-minutes": "Coba lagi dalam beberapa menit.",
"date": "Tanggal",
"you-can-schedule-the-post-just-select-the-date-and-time": "Anda dapat menjadwalkan posting, cukup pilih tanggal dan waktu.",
"scheduled": "Telah dijadwalkan",
"publish": "Terbitkan",
"please-check-your-theme-configuration": "Silahkan periksa pengaturan tema Anda."
}

View File

@ -1,11 +1,11 @@
{ {
"language-data": "language-data":
{ {
"native": "日本語", "native": "日本語 (Japan)",
"english-name": "Japanese", "english-name": "Japanese",
"last-update": "2015-07-15", "last-update": "2016-02-08",
"author": "Jun NOGATA", "author": "Jun NOGATA",
"email": "nogajun@gmail.com", "email": "nogajun+bludit@gmail.com",
"website": "http://www.nofuture.tv/" "website": "http://www.nofuture.tv/"
}, },
@ -15,6 +15,7 @@
"editor": "編集者", "editor": "編集者",
"dashboard": "ダッシュボード", "dashboard": "ダッシュボード",
"role": "役割", "role": "役割",
"post": "記事",
"posts": "記事", "posts": "記事",
"users": "ユーザー", "users": "ユーザー",
"administrator": "管理者", "administrator": "管理者",
@ -25,7 +26,7 @@
"no-parent": "親ページなし", "no-parent": "親ページなし",
"edit-page": "ページの編集", "edit-page": "ページの編集",
"edit-post": "記事の編集", "edit-post": "記事の編集",
"add-a-new-user": "新規ユーザーの追加", "add-a-new-user": "新規ユーザーを追加",
"parent": "親ページ", "parent": "親ページ",
"friendly-url": "フレンドリーURL", "friendly-url": "フレンドリーURL",
"description": "概要", "description": "概要",
@ -43,11 +44,13 @@
"general": "全般", "general": "全般",
"advanced": "詳細", "advanced": "詳細",
"regional": "地域", "regional": "地域",
"about": "Bluditについて", "about": "About",
"login": "ログイン", "login": "ログイン",
"logout": "ログアウト", "logout": "ログアウト",
"manage": "管理", "manage": "管理",
"themes": "テーマ", "themes": "テーマ",
"prev-page": "前のページ",
"next-page": "次のページ",
"configure-plugin": "プラグインの設定", "configure-plugin": "プラグインの設定",
"confirm-delete-this-action-cannot-be-undone": "削除しますか? この操作は取り消せません", "confirm-delete-this-action-cannot-be-undone": "削除しますか? この操作は取り消せません",
"site-title": "サイトタイトル", "site-title": "サイトタイトル",
@ -58,6 +61,7 @@
"site-url": "サイトURL", "site-url": "サイトURL",
"writting-settings": "編集設定", "writting-settings": "編集設定",
"url-filters": "URLフィルター", "url-filters": "URLフィルター",
"page": "ページ",
"pages": "ページ", "pages": "ページ",
"home": "ホーム", "home": "ホーム",
"welcome-back": "お帰りなさい", "welcome-back": "お帰りなさい",
@ -65,11 +69,10 @@
"website": "Webサイト", "website": "Webサイト",
"timezone": "タイムゾーン", "timezone": "タイムゾーン",
"locale": "ロケール", "locale": "ロケール",
"notifications": "お知らせ",
"new-post": "新規記事", "new-post": "新規記事",
"html-and-markdown-code-supported": "HTMLとMarkdownが利用できます",
"new-page": "新規ページ", "new-page": "新規ページ",
"manage-posts": "投稿の管理", "html-and-markdown-code-supported": "HTMLとMarkdownが利用できます",
"manage-posts": "投稿管理",
"published-date": "公開日", "published-date": "公開日",
"modified-date": "更新日", "modified-date": "更新日",
"empty-title": "タイトルなし", "empty-title": "タイトルなし",
@ -77,32 +80,152 @@
"install-plugin": "インストール", "install-plugin": "インストール",
"uninstall-plugin": "アンインストール", "uninstall-plugin": "アンインストール",
"new-password": "新しいパスワード", "new-password": "新しいパスワード",
"edit-user": "ユーザー編集", "edit-user": "ユーザー編集",
"publish-now": "今すぐ公開", "publish-now": "今すぐ公開",
"first-name": "名", "first-name": "名",
"last-name": "姓", "last-name": "姓",
"manage-pages": "ページの管理", "bludit-version": "Bludit バージョン",
"powered-by": "Powered by",
"recent-posts": "最近の投稿",
"manage-pages": "ページ管理",
"advanced-options": "詳細オプション", "advanced-options": "詳細オプション",
"user-deleted": "ユーザー削除",
"page-added-successfully": "ページを追加しました",
"post-added-successfully": "記事を追加しました",
"the-post-has-been-deleted-successfully": "記事を削除しました",
"the-page-has-been-deleted-successfully": "ページを削除しました",
"username-or-password-incorrect": "ユーザー名またはパスワードが不正です",
"database-regenerated": "データベースを再生成しました", "database-regenerated": "データベースを再生成しました",
"html-markdown-code-supported": "HTMLとMarkdownが利用できます", "the-changes-have-been-saved": "変更を保存しました",
"enable-more-features-at": "より多くの機能を有効に", "enable-more-features-at": "より多くの機能を有効に",
"username-already-exists": "ユーザー名は存在しています",
"username-field-is-empty": "ユーザー名が空です",
"the-password-and-confirmation-password-do-not-match":"パスワードが一致しません",
"user-has-been-added-successfully": "ユーザーは追加されました",
"you-do-not-have-sufficient-permissions": "このページにアクセスするための権限がありません。管理者に連絡をしてください。",
"settings-advanced-writting-settings": "設定->詳細->編集設定", "settings-advanced-writting-settings": "設定->詳細->編集設定",
"new-posts-and-pages-synchronized": "新規投稿とページを同期しました", "new-posts-and-pages-synchronized": "新規投稿とページを同期しました",
"you-can-choose-the-users-privilege": "ユーザーの権限を設定します。編集者は記事とページの投稿編集のみできます", "you-can-choose-the-users-privilege": "ユーザー権限の選択ができます編集者は、記事とページの作成のみおこなえます。",
"email-will-not-be-publicly-displayed": "メールアドレスは公開されません。パスワードの復旧や通知に利用されます", "email-will-not-be-publicly-displayed": "メールアドレスは公開されません。通知とパスワードの復に利用されます",
"use-this-field-to-name-your-site": "サイト名を入力します。サイト名は各ページ上部に表示されます", "use-this-field-to-name-your-site": "サイト名を入力します。サイト名は各ページ上部に表示されます",
"use-this-field-to-add-a-catchy-prhase": "サイトのキャッチフレーズを入力します", "use-this-field-to-add-a-catchy-phrase": "サイトのキャッチフレーズを入力します",
"you-can-add-a-site-description-to-provide": "サイトの説明や紹介に利用する概要を入力します", "you-can-add-a-site-description-to-provide": "サイトの説明や紹介に利用する概要を入力します",
"you-can-add-a-small-text-on-the-bottom": "各ページ下部に追加する短いテキストを入力します。使用例: 著作権表示、所有者名表示、日付など", "you-can-add-a-small-text-on-the-bottom": "各ページ下部に追加する短いテキストを入力します。例: 著作権や所有者名、日付など。",
"number-of-posts-to-show-per-page": "1ページに表示する投稿数を設定します", "number-of-posts-to-show-per-page": "ページあたりの投稿数を設定します。",
"the-url-of-your-site": "サイトURLを設定します", "the-url-of-your-site": "サイトURLを設定します",
"add-or-edit-description-tags-or": "コンテンツ概要やタグの追加と編集、フレンドリーURLの変更オプションを利用します", "add-or-edit-description-tags-or": "コンテンツ概要やタグの追加と編集、フレンドリーURLの変更オプションを利用します",
"select-your-sites-language": "サイトで利用する言語を選択します", "select-your-sites-language": "サイトで利用する言語を選択します",
"select-a-timezone-for-a-correct": "正しい日付/時刻を表示するためのタイムゾーンを選択します", "select-a-timezone-for-a-correct": "サイト上で正しく日付・時間が表示されるタイムゾーンを選択します。",
"you-can-use-this-field-to-define-a-set-of": "言語や国、固有の設定に関する設定を変更する場合に利用します", "you-can-use-this-field-to-define-a-set-of": "言語や国、固有の設定について変更する場合に利用します",
"email": "Eメール", "you-can-modify-the-url-which-identifies":"ページの区別や投稿に関連したわかりやすいキーワードを用いたURLに変更できます。150文字程度が目安です。",
"email": "Eメール", "this-field-can-help-describe-the-content": "このフィールドにはコンテンツの概要を記述します。150文字程度が目安です。",
"email": "Eメール",
"email": "Eメール", "delete-the-user-and-all-its-posts":"ユーザーとそのユーザーの投稿もすべて削除",
"email": "Eメール" "delete-the-user-and-associate-its-posts-to-admin-user": "ユーザーを削除し、ユーザーの投稿を管理者に引き継ぐ",
"read-more": "続きを読む",
"show-blog": "ブログを表示",
"default-home-page": "規定のホームページ",
"version": "バージョン",
"there-are-no-drafts": "下書きはありません。",
"create-a-new-article-for-your-blog":"ブログの新規記事を作成します。",
"create-a-new-page-for-your-website":"Webサイトの新規ページを作成します。",
"invite-a-friend-to-collaborate-on-your-website":"Webサイトで共同作業をおこなう人を招待します。",
"change-your-language-and-region-settings":"言語や地域の設定を変更します。",
"language-and-timezone":"言語とタイムゾーン",
"author": "作者",
"start-here": "ここからスタート",
"install-theme": "テーマをインストール",
"first-post": "最初の投稿",
"congratulations-you-have-successfully-installed-your-bludit": "おめでとうございます。 **Bludit**は正常にインストールされました",
"whats-next": "この次は",
"follow-bludit-on": "Bluditをフォローする",
"visit-the-support-forum": "サポート[フォーラム](http:\/\/forum.bludit.com)(英語)に参加する",
"read-the-documentation-for-more-information": "詳細について[文書](http:\/\/docs.bludit.com)を読む",
"share-with-your-friends-and-enjoy": "友人と共有して楽しむ",
"the-page-has-not-been-found": "ページが見つかりません。",
"error": "エラー",
"bludit-installer": "Bluditインストーラー",
"welcome-to-the-bludit-installer": "Bluditインストーラーへようこそ",
"complete-the-form-choose-a-password-for-the-username-admin": "admin(管理者)ユーザーのパスワードとメールアドレスを入力してください",
"password-visible-field": "パスワード表示中!",
"install": "インストール",
"choose-your-language": "言語を選択してください",
"next": "次へ",
"the-password-field-is-empty": "パスワードが空です",
"your-email-address-is-invalid":"Eメールアドレスが無効です",
"proceed-anyway": "このまま続行する!",
"drafts":"下書き",
"ip-address-has-been-blocked": "IPアドレスはブロックされています。",
"try-again-in-a-few-minutes": "しばらくしてからもう一度お試しください。",
"date": "日付",
"scheduled": "予約済み",
"publish": "公開済み",
"please-check-your-theme-configuration": "テーマの設定を確認してください。",
"plugin-label": "プラグインラベル",
"enabled": "有効",
"disabled": "無効",
"cli-mode": "CLIモード",
"command-line-mode": "コマンドライン・モード",
"enable-the-command-line-mode-if-you-add-edit": "コマンドライン・モードを有効にすると、ファイルシステム上から投稿やページの追加、編集、削除がおこなえます。",
"configure": "設定",
"uninstall": "アンインストール",
"change-password": "パスワードを変更",
"to-schedule-the-post-just-select-the-date-and-time": "投稿を予約するには日付と時間を選択します。",
"write-the-tags-separated-by-commas": "タグはカンマで区切って書きます。",
"status": "状態",
"published": "公開",
"scheduled-posts": "予約投稿",
"statistics": "統計",
"name": "名前",
"email-account-settings":"Eメールアカウント設定",
"sender-email": "送信者メールアドレス",
"emails-will-be-sent-from-this-address":"Eメールはこのアドレスから送信されます。",
"bludit-login-access-code": "BLUDIT - ログインアクセスコード",
"check-your-inbox-for-your-login-access-code":"受信トレイに届いたログインアクセスコードを確認してください",
"there-was-a-problem-sending-the-email":"メール送信について問題が発生しました",
"back-to-login-form": "ログインフォームへ戻る",
"send-me-a-login-access-code": "ログインのためのアクセスコードを送信",
"get-login-access-code": "ログインアクセスコードを送信",
"email-notification-login-access-code": "<p>これは、あなたのWebサイト「 {{WEBSITE_NAME}} 」からの通知です。<\/p><p>ご依頼のログインアクセスコードにアクセスするには、次のリンクをクリックしてください: <\/p><p>{{LINK}}<\/p>",
"there-are-no-scheduled-posts": "予約された投稿はありません。",
"show-password": "パスワードを表示",
"edit-or-remove-your=pages": "ページの編集または削除します。",
"edit-or-remove-your-blogs-posts": "ブログ記事の編集または削除します。",
"general-settings": "全般設定",
"advanced-settings": "詳細設定",
"manage-users": "ユーザー管理",
"view-and-edit-your-profile": "プロフィールの確認と編集。",
"password-must-be-at-least-6-characters-long": "パスワードは6文字以上必要です",
"images": "画像",
"upload-image": "画像をアップロード",
"drag-and-drop-or-click-here": "ドラッグ・アンド・ドロップもしくはクリックします",
"insert-image": "画像を挿入",
"supported-image-file-types": "サポートする画像ファイルタイプ",
"date-format": "日付の書式",
"time-format": "時間の書式",
"chat-with-developers-and-users-on-gitter":"[Gitter](https:\/\/gitter.im\/dignajar\/bludit)で開発者やユーザーとチャットする",
"this-is-a-brief-description-of-yourself-our-your-site":"ここには、あなた自身やサイトについての説明文を書きます。文章を変更するには、管理パネルから設定→プラグインと進み、aboutプラグインの設定から変更します。",
"profile-picture": "プロフィール画像",
"the-about-page-is-very-important": "aboutページは、潜在的なクライアントやパートナーにとって重要かつ強力なツールです。検索でたどり着いた人にとってAboutページは、Webサイトについて最初の情報源となります。\n",
"change-this-pages-content-on-the-admin-panel": "このページを編集するには、管理パネルから管理→ページと進み、aboutページをクリックします。",
"about-your-site-or-yourself": "このサイトやあなた自身について",
"welcome-to-bludit": "Bluditへようこそ",
"site-information": "サイト情報",
"date-and-time-formats": "日付と時間の書式",
"activate": "有効化",
"deactivate": "無効化",
"cover-image": "カバー画像",
"blog": "ブログ",
"more-images": "その他の画像",
"double-click-on-the-image-to-add-it": "ダブルクリックで画像を挿入します。",
"click-here-to-cancel": "ここをクリックしてキャンセル。",
"type-the-tag-and-press-enter": "タグを入力してEnterを押します。",
"manage-your-bludit-from-the-admin-panel": "[管理パネル]({{ADMIN_AREA_LINK}})からBluditを管理する",
"there-are-no-images":"画像はありません。"
} }

View File

@ -1,159 +0,0 @@
{
"language-data":
{
"native": "Português (Brasil)",
"english-name": "Portuguese",
"last-update": "2015-09-21",
"author": "Hackdorte",
"email": "hackdorte@sapo.pt",
"website": "https://twitter.com/hackdorte"
},
"username": "Nome de usuário",
"password": "Senha",
"confirm-password": "Confirmar senha",
"editor": "Editor",
"dashboard": "Painel",
"role": "Cargo",
"post": "Postagem",
"posts": "Postagens",
"users": "Usuários",
"administrator": "Administrador",
"add": "Adicionar",
"cancel": "Cancelar",
"content": "Conteúdo",
"title": "Título",
"no-parent": "Sem parente",
"edit-page": "Editar página",
"edit-post": "Editar postagem",
"add-a-new-user": "Adicionar novo usuário",
"parent": "Parente",
"friendly-url": "URL amigável",
"description": "Descrição",
"posted-by": "Publicado por",
"tags": "Tags",
"position": "Posição",
"save": "Salvar",
"draft": "Rascunho",
"delete": "Deletar",
"registered": "Registrado",
"Notifications": "Notificações",
"profile": "Perfil",
"email": "Email",
"settings": "Configurações",
"general": "Geral",
"advanced": "Avançado",
"regional": "Regional",
"about": "Sobre",
"login": "Entrar",
"logout": "Sair",
"manage": "Administrar",
"themes": "Temas",
"prev-page": "Pág. anterior",
"next-page": "Pág. seguinte",
"configure-plugin": "Configurar plugin",
"confirm-delete-this-action-cannot-be-undone": "Confirmar exclusão. Esta operação não poderá ser desfeita.",
"site-title": "Título do site",
"site-slogan": "Slogan do site",
"site-description": "Descrição do site",
"footer-text": "Texto do rodapé",
"posts-per-page": "Postagens por páginas",
"site-url": "URL do site",
"writting-settings": "Configurações de escrita",
"url-filters": "Filtros para URL",
"page": "página",
"pages": "páginas",
"home": "Início",
"welcome-back": "Bem vindo(a)",
"language": "Idioma",
"website": "Website",
"timezone": "Zona horária",
"locale": "Codificação",
"new-post": "Nova postagem",
"new-page": "Nova página",
"html-and-markdown-code-supported": "Códigos HTML e Markdown são aceitos",
"manage-posts": "Gerenciar postagens",
"published-date": "Data de publicação",
"modified-date": "Data de modificação",
"empty-title": "Título vazio",
"plugins": "Plugins",
"install-plugin": "Instalar plugin",
"uninstall-plugin": "Desinstalar plugin",
"new-password": "Nova senha",
"edit-user": "Editar usuário",
"publish-now": "Publicar",
"first-name": "Nome",
"last-name": "Sobrenome",
"bludit-version": "Bludit versão",
"powered-by": "Feito com",
"recent-posts": "Postagens recentes",
"manage-pages": "Gerenciar páginas",
"advanced-options": "Opções avançadas",
"user-deleted": "Usuário Deletado",
"page-added-successfully": "Página criada com sucesso",
"post-added-successfully": "Postagem criada com sucesso ",
"the-post-has-been-deleted-successfully": "Postagem eliminada com sucesso",
"the-page-has-been-deleted-successfully": "Página deletada com sucesso",
"username-or-password-incorrect": "Nome ou senha incorretos",
"database-regenerated": "Base de dados regenerada",
"the-changes-have-been-saved": "As alterações foram salvas!",
"enable-more-features-at": "Habilitar mais funções em",
"username-already-exists": "Usuário não existe",
"username-field-is-empty": "O campo **Nome** não pode ficar vazio.",
"the-password-and-confirmation-password-do-not-match": "Ops! As senhas são diferentes.",
"user-has-been-added-successfully": "Usuário criado com sucesso",
"you-do-not-have-sufficient-permissions": "Você não tem permissão. Por favor entre em contato com o administrador do site",
"settings-advanced-writting-settings": "Configurações->Avançado->Configurações de escrita",
"new-posts-and-pages-synchronized": "Novas postagens e páginas sincronizadas.",
"you-can-choose-the-users-privilege": "Pode alterar os previlégios dos usuários. O editor só poderá gerenciar páginas e postagens.",
"email-will-not-be-publicly-displayed": "O endereço de email não é visível. Recomendado para recuperar sua senha e receber notificações.",
"use-this-field-to-name-your-site": "Utilize este campo para adicionar um título para seu site, ele aparecerá na parte superior das páginas.",
"use-this-field-to-add-a-catchy-phrase": "Utilize este campo se desejar adicionar um slogan ao nome do seu site.",
"you-can-add-a-site-description-to-provide": "Pode adicionar um descrição para promover uma biografia do seu site.",
"you-can-add-a-small-text-on-the-bottom": "Pode adicionar um pequeno texto no final da página. ex: copyright, autor, etc.",
"number-of-posts-to-show-per-page": "Número de postagens para mostrar por página.",
"the-url-of-your-site": "URL do seu site.",
"add-or-edit-description-tags-or": "Adicionar ou editar a descrição, tags e alterar URL amigável.",
"select-your-sites-language": "Selecione o idioma padrão do seu site.",
"select-a-timezone-for-a-correct": "Selecione a zona horária correta do seu país.",
"you-can-use-this-field-to-define-a-set-of": "Use este campo para o correto conjunto de idioma, país e preferências especiais.",
"you-can-modify-the-url-which-identifies": "Pode alterar a URL para facilitar a sua localização de forma legível. Em 150 caractéres.",
"this-field-can-help-describe-the-content": "Resumo do conteúdo da postagem. Em 150 caractéres.",
"write-the-tags-separated-by-comma": "Criar tags separadas por vírgulas. ex: tag1, tag2, tag3",
"delete-the-user-and-all-its-posts": "Eliminar usuário e suas postagens",
"delete-the-user-and-associate-its-posts-to-admin-user": "Eliminar usuário e associar postagens ao administrador",
"read-more": "Ler mais",
"show-blog": "Ver blog",
"default-home-page": "página de início padrão",
"version": "Versão",
"there-are-no-drafts": "Não há rascunhos",
"create-a-new-article-for-your-blog":"Criar um novo artigo para seu blog.",
"create-a-new-page-for-your-website":"Criar nova página para seu site.",
"invite-a-friend-to-collaborate-on-your-website":"Convidar amigos para colaborar com seu site.",
"change-your-language-and-region-settings":"Modificar as configurações de idioma e região.",
"language-and-timezone":"Idioma e zona horária",
"author": "Autor",
"start-here": "Começe aqui",
"install-theme": "Instalar tema",
"first-post": "Primeira postagem",
"congratulations-you-have-successfully-installed-your-bludit": "Parabéns, você instalou **Bludit** com sucesso",
"whats-next": "Siguientes pasos",
"manage-your-bludit-from-the-admin-panel": "Gerencie seu Bludit em [painel de administração](./admin/)",
"follow-bludit-on": "Siga Bludit em",
"visit-the-support-forum": "Visite o [fórum](http://forum.bludit.com) para obter ajuda",
"read-the-documentation-for-more-information": "Leia a [documentación](http://docs.bludit.com) para mais informações",
"share-with-your-friends-and-enjoy": "Compartilhe com os seus amigos para que desfrutem também",
"the-page-has-not-been-found": "A página não foi localizada.",
"error": "Erro",
"bludit-installer": "Instalador do Bludit",
"welcome-to-the-bludit-installer": "Bem vindo(a) ao instalador do Bludit",
"complete-the-form-choose-a-password-for-the-username-admin": "Crie uma senha e informe um endereço de email para o usuário « admin »",
"password-visible-field": "Senha, este campo é visível.",
"install": "Instalar",
"the-password-field-is-empty": "Preencha o campo da senha",
"your-email-address-is-invalid":"O endereço do email é inválido",
"proceed-anyway": "Continuar assim mesmo!",
"drafts":"Rascunhos",
"ip-address-has-been-blocked":"O endereço de IP foi bloqueado.",
"try-again-in-a-few-minutes": "Volte e tente daqui uns minutinhos!"
}

View File

@ -0,0 +1,7 @@
{
"plugin-data":
{
"name": "About",
"description": "サイトやあなた自身についての概要を表示します。"
}
}

View File

@ -2,9 +2,9 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://github.com/dignajar/bludit-plugins", "website": "https://github.com/dignajar/bludit-plugins",
"version": "1.0", "version": "1.1",
"releaseDate": "2016-01-15", "releaseDate": "2016-02-15",
"license": "MIT", "license": "MIT",
"requires": "Bludit v1.0", "requires": "Bludit v1.1",
"notes": "" "notes": ""
} }

View File

@ -0,0 +1,12 @@
{
"plugin-data":
{
"name": "Disqus comment system",
"description": "Disqusはブログにコメント機能を提供するWebサイトです。プラグインを使用するにはDisqus.comに登録する必要があります。"
},
"disqus-shortname": "Disqusサイト名(ショートネーム)",
"enable-disqus-on-pages": "ページのDisqusを有効",
"enable-disqus-on-posts": "記事ページのDisqusを有効",
"enable-disqus-on-default-home-page": "規定のホームページのDisqusを有効"
}

View File

@ -2,9 +2,9 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://github.com/dignajar/bludit-plugins", "website": "https://github.com/dignajar/bludit-plugins",
"version": "1.0", "version": "1.1",
"releaseDate": "2016-01-15", "releaseDate": "2016-02-13",
"license": "MIT", "license": "MIT",
"requires": "Bludit v1.0", "requires": "Bludit v1.1",
"notes": "" "notes": ""
} }

View File

@ -2,14 +2,14 @@
class pluginDisqus extends Plugin { class pluginDisqus extends Plugin {
private $disable; private $enable;
public function init() public function init()
{ {
$this->dbFields = array( $this->dbFields = array(
'shortname'=>'', 'shortname'=>'',
'enablePages'=>false, 'enablePages'=>false,
'enablePosts'=>true, 'enablePosts'=>false,
'enableDefaultHomePage'=>false 'enableDefaultHomePage'=>false
); );
} }
@ -20,25 +20,17 @@ class pluginDisqus extends Plugin {
global $Url; global $Url;
// Disable the plugin IF ... $this->enable = false;
$this->disable = false;
if( (!$this->getDbField('enablePosts')) && ($Url->whereAmI()=='post') ) { if( $this->getDbField('enablePosts') && ($Url->whereAmI()=='post') ) {
$this->disable = true; $this->enable = true;
} }
elseif( (!$this->getDbField('enablePages')) && ($Url->whereAmI()=='page') ) { elseif( $this->getDbField('enablePages') && ($Url->whereAmI()=='page') ) {
$this->disable = true; $this->enable = true;
} }
elseif( !$this->getDbField('enableDefaultHomePage') && ($Url->whereAmI()=='page') ) elseif( $this->getDbField('enableDefaultHomePage') && ($Url->whereAmI()=='home') )
{ {
global $Site; $this->enable = true;
if( Text::isNotEmpty($Site->homePage()) ) {
$this->disable = true;
}
}
elseif( ($Url->whereAmI()!='post') && ($Url->whereAmI()!='page') ) {
$this->disable = true;
} }
} }
@ -71,39 +63,39 @@ class pluginDisqus extends Plugin {
public function postEnd() public function postEnd()
{ {
if( $this->disable ) { if( $this->enable ) {
return false; return '<div id="disqus_thread"></div>';
} }
$html = '<div id="disqus_thread"></div>'; return false;
return $html;
} }
public function pageEnd() public function pageEnd()
{ {
if( $this->disable ) { global $Url;
return false;
// Bludit check not-found page after the plugin method construct.
// It's necesary check here the page not-found.
if( $this->enable && !$Url->notFound()) {
return '<div id="disqus_thread"></div>';
} }
$html = '<div id="disqus_thread"></div>'; return false;
return $html;
} }
public function siteHead() public function siteHead()
{ {
if( $this->disable ) { if( $this->enable ) {
return false; return '<style>#disqus_thread { margin: 20px 0 }</style>';
} }
$html = '<style>#disqus_thread { margin: 20px 0 }</style>'; return false;
return $html;
} }
public function siteBodyEnd() public function siteBodyEnd()
{ {
if( $this->disable ) { if( $this->enable ) {
return false;
}
$html = ' $html = '
<script type="text/javascript"> <script type="text/javascript">
@ -121,4 +113,7 @@ class pluginDisqus extends Plugin {
return $html; return $html;
} }
return false;
}
} }

View File

@ -0,0 +1,12 @@
{
"plugin-data":
{
"name": "Google Tools",
"description": "Google Search Consoleでサイトを検証するためのメタタグとGoogle AnalyticsでトラッキングするためのJavaScriptコードを生成します。"
},
"google-webmasters-tools": "Google Search Console",
"google-analytics-tracking-id": "Google Analytics トラッキングID",
"complete-this-field-with-the-google-site-verification": "Google Seach Consoleがサイト所有権を確認するためのメタタグを入力します。",
"complete-this-field-with-the-tracking-id": "Google Analyticsがトラッキングをするために生成したトラッキングIDを入力します。"
}

View File

@ -2,9 +2,9 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://github.com/dignajar/bludit-plugins", "website": "https://github.com/dignajar/bludit-plugins",
"version": "1.0", "version": "1.1",
"releaseDate": "2016-01-15", "releaseDate": "2016-02-13",
"license": "MIT", "license": "MIT",
"requires": "Bludit v1.0", "requires": "Bludit v1.1",
"notes": "" "notes": ""
} }

View File

@ -0,0 +1,10 @@
{
"plugin-data":
{
"name": "Latest posts",
"description": "公開された最近の投稿を表示します。"
},
"amount-of-posts": "投稿表示数",
"show-home-link": "ホーム・リンクを表示"
}

View File

@ -2,9 +2,9 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://github.com/dignajar/bludit-plugins", "website": "https://github.com/dignajar/bludit-plugins",
"version": "1.0", "version": "1.1",
"releaseDate": "2016-01-15", "releaseDate": "2016-02-13",
"license": "MIT", "license": "MIT",
"requires": "Bludit v1.0", "requires": "Bludit v1.1",
"notes": "" "notes": ""
} }

View File

@ -0,0 +1,10 @@
{
"plugin-data":
{
"name": "Maintenance mode",
"description": "メンテンナンス・モードに設定します。管理エリアにはアクセスできます。"
},
"enable-maintence-mode": "メンテンナンス・モードを有効にする",
"message": "メッセージ"
}

View File

@ -2,9 +2,9 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://github.com/dignajar/bludit-plugins", "website": "https://github.com/dignajar/bludit-plugins",
"version": "1.0", "version": "1.1",
"releaseDate": "2016-01-15", "releaseDate": "2016-02-13",
"license": "MIT", "license": "MIT",
"requires": "Bludit v1.0", "requires": "Bludit v1.1",
"notes": "" "notes": ""
} }

View File

@ -0,0 +1,7 @@
{
"plugin-data":
{
"name": "Open Graph",
"description": "Open Graph protocol(OGP)を有効にすると、Webページがソーシャルグラフ上のリッチなオブジェクトになります。"
}
}

View File

@ -2,9 +2,9 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://github.com/dignajar/bludit-plugins", "website": "https://github.com/dignajar/bludit-plugins",
"version": "1.0", "version": "1.1",
"releaseDate": "2016-01-15", "releaseDate": "2016-02-13",
"license": "MIT", "license": "MIT",
"requires": "Bludit v1.0", "requires": "Bludit v1.1",
"notes": "" "notes": ""
} }

View File

@ -0,0 +1,10 @@
{
"plugin-data":
{
"name": "Page list",
"description": "ページをリストにして表示します。"
},
"home": "ホーム",
"show-home-link": "ホーム・リンクを表示"
}

View File

@ -2,9 +2,9 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://github.com/dignajar/bludit-plugins", "website": "https://github.com/dignajar/bludit-plugins",
"version": "1.0", "version": "1.1",
"releaseDate": "2016-01-15", "releaseDate": "2016-02-13",
"license": "MIT", "license": "MIT",
"requires": "Bludit v1.0", "requires": "Bludit v1.1",
"notes": "" "notes": ""
} }

View File

@ -0,0 +1,7 @@
{
"plugin-data":
{
"name": "RSS Feed",
"description": "サイトのRSSフィードを生成します。"
}
}

View File

@ -2,9 +2,9 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://github.com/dignajar/bludit-plugins", "website": "https://github.com/dignajar/bludit-plugins",
"version": "1.0", "version": "1.1",
"releaseDate": "2016-01-15", "releaseDate": "2016-02-13",
"license": "MIT", "license": "MIT",
"requires": "Bludit v1.0", "requires": "Bludit v1.1",
"notes": "" "notes": ""
} }

View File

@ -0,0 +1,10 @@
{
"plugin-data":
{
"name": "SimpleMDE",
"description": "シンプルで美しく埋め込み可能なJavaScript製Markdownエディタ(@WesCossick作)Bludit用にDiego Najarにより移植されました。"
},
"toolbar": "ツールバー",
"tab-size": "タブのサイズ",
"autosave": "自動保存"
}

View File

@ -5,6 +5,6 @@
"version": "1.10.0", "version": "1.10.0",
"releaseDate": "2015-01-22", "releaseDate": "2015-01-22",
"license": "MIT", "license": "MIT",
"requires": "Bludit v1.0", "requires": "Bludit v1.1",
"notes": "" "notes": ""
} }

View File

@ -77,6 +77,7 @@ class pluginsimpleMDE extends Plugin {
public function adminBodyEnd() public function adminBodyEnd()
{ {
global $layout; global $layout;
global $Language;
$html = ''; $html = '';
@ -105,6 +106,11 @@ class pluginsimpleMDE extends Plugin {
simplemde.value(text + content + "\n"); simplemde.value(text + content + "\n");
}'.PHP_EOL; }'.PHP_EOL;
// This function is necesary on each Editor, it is used by Bludit Images v8.
$html .= 'function editorAddImage(filename) {
addContentSimpleMDE("!['.$Language->get('Image description').']("+filename+")");
}'.PHP_EOL;
$html .= '$(document).ready(function() { '.PHP_EOL; $html .= '$(document).ready(function() { '.PHP_EOL;
$html .= 'simplemde = new SimpleMDE({ $html .= 'simplemde = new SimpleMDE({
element: document.getElementById("jscontent"), element: document.getElementById("jscontent"),
@ -125,12 +131,6 @@ class pluginsimpleMDE extends Plugin {
toolbar: ['.Sanitize::htmlDecode($this->getDbField('toolbar')).'] toolbar: ['.Sanitize::htmlDecode($this->getDbField('toolbar')).']
});'; });';
// This is the event for Bludit images
$html .= '$("body").on("dblclick", "img.bludit-thumbnail", function() {
var filename = $(this).data("filename");
addContentSimpleMDE("![alt text]("+filename+")");
});';
$html .= '}); </script>'; $html .= '}); </script>';
} }

View File

@ -0,0 +1,7 @@
{
"plugin-data":
{
"name": "Sitemap",
"description": "Webページをリスト化し、検索エンジンにサイトコンテンツの構造を伝えるためのsitemap.xmlファイルを生成します。"
}
}

View File

@ -2,9 +2,9 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://github.com/dignajar/bludit-plugins", "website": "https://github.com/dignajar/bludit-plugins",
"version": "1.0.2", "version": "1.1",
"releaseDate": "2016-01-30", "releaseDate": "2016-01-30",
"license": "MIT", "license": "MIT",
"requires": "Bludit v1.0", "requires": "Bludit v1.1",
"notes": "" "notes": ""
} }

View File

@ -0,0 +1,11 @@
{
"plugin-data":
{
"name": "Tags list",
"description": "すべてのタグを表示します。"
},
"tag-sort-order": "タグ・リストの順番",
"tag-sort-alphabetical": "アルファベット順",
"tag-sort-count": "タグの利用回数順",
"tag-sort-date": "最初に利用されたタグ順"
}

View File

@ -2,9 +2,9 @@
"author": "Bludit", "author": "Bludit",
"email": "", "email": "",
"website": "https://github.com/dignajar/bludit-plugins", "website": "https://github.com/dignajar/bludit-plugins",
"version": "1.0", "version": "1.1",
"releaseDate": "2016-01-15", "releaseDate": "2016-02-13",
"license": "MIT", "license": "MIT",
"requires": "Bludit v1.0", "requires": "Bludit v1.1",
"notes": "" "notes": ""
} }

View File

@ -1,4 +1,4 @@
@import url("http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700|Raleway:400,800,900"); @import url("//fonts.googleapis.com/css?family=Source+Sans+Pro:400,700|Raleway:400,800,900");
/* /*
Future Imperfect by HTML5 UP Future Imperfect by HTML5 UP

View File

@ -1,4 +1,4 @@
@import url("http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700|Raleway:400,800,900"); @import url("//fonts.googleapis.com/css?family=Source+Sans+Pro:400,700|Raleway:400,800,900");
/* /*
Future Imperfect by HTML5 UP Future Imperfect by HTML5 UP

View File

@ -107,24 +107,32 @@ include(PATH_HELPERS.'log.class.php');
include(PATH_HELPERS.'date.class.php'); include(PATH_HELPERS.'date.class.php');
include(PATH_KERNEL.'dblanguage.class.php'); include(PATH_KERNEL.'dblanguage.class.php');
// --- LANGUAGE --- // --- LANGUAGE and LOCALE ---
// Try to detect language from HTTP
$explode = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
$localeFromHTTP = empty($explode[0])?'en_US':str_replace('-', '_', $explode[0]);
// Language from the URI
if(isset($_GET['language'])) { if(isset($_GET['language'])) {
$localeFromHTTP = Sanitize::html($_GET['language']); $localeFromHTTP = Sanitize::html($_GET['language']);
} }
else {
// Try to detect the locale
if( function_exists('locale_accept_from_http') ) {
$localeFromHTTP = locale_accept_from_http($_SERVER['HTTP_ACCEPT_LANGUAGE']);
}
else {
$explodeLocale = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
$localeFromHTTP = empty($explodeLocale[0])?'en_US':str_replace('-', '_', $explodeLocale[0]);
}
}
if( !Sanitize::pathFile(PATH_LANGUAGES.$localeFromHTTP.'.json') ) { // Check if the dictionary exists, otherwise the default language is English.
if( !file_exists(PATH_LANGUAGES.$localeFromHTTP.'.json') ) {
$localeFromHTTP = 'en_US'; $localeFromHTTP = 'en_US';
} }
// Get language file
$Language = new dbLanguage($localeFromHTTP); $Language = new dbLanguage($localeFromHTTP);
// --- LOCALE --- // Set locale
setlocale(LC_ALL, $localeFromHTTP); setlocale(LC_ALL, $localeFromHTTP);
// --- TIMEZONE --- // --- TIMEZONE ---
@ -132,7 +140,7 @@ setlocale(LC_ALL, $localeFromHTTP);
// Check if timezone is defined in php.ini // Check if timezone is defined in php.ini
$iniDate = ini_get('date.timezone'); $iniDate = ini_get('date.timezone');
if(empty($iniDate)) { if(empty($iniDate)) {
// Timezone not defined in php.ini, then UTC as default. // Timezone not defined in php.ini, then set UTC as default.
date_default_timezone_set('UTC'); date_default_timezone_set('UTC');
} }
@ -229,15 +237,15 @@ function checkSystem()
} }
// Finish with the installation. // Finish with the installation.
function install($adminPassword, $email, $timezoneOffset) function install($adminPassword, $email, $timezone)
{ {
global $Language; global $Language;
$stdOut = array(); $stdOut = array();
$timezone = timezone_name_from_abbr('', $timezoneOffset, 0); if( date_default_timezone_set($timezone) ) {
if($timezone === false) { $timezone = timezone_name_from_abbr('', $timezoneOffset, 0); } // Workaround bug #44780 date_default_timezone_set('UTC');
date_default_timezone_set($timezone); }
$currentDate = Date::current(DB_DATE_FORMAT); $currentDate = Date::current(DB_DATE_FORMAT);
@ -361,7 +369,7 @@ function install($adminPassword, $email, $timezoneOffset)
'uriPage'=>'/', 'uriPage'=>'/',
'uriTag'=>'/tag/', 'uriTag'=>'/tag/',
'url'=>PROTOCOL.DOMAIN.HTML_PATH_ROOT, 'url'=>PROTOCOL.DOMAIN.HTML_PATH_ROOT,
'cliMode'=>'true', 'cliMode'=>false,
'emailFrom'=>'no-reply@'.DOMAIN 'emailFrom'=>'no-reply@'.DOMAIN
); );
@ -580,6 +588,7 @@ if( $_SERVER['REQUEST_METHOD'] == 'POST' )
<!-- Javascript --> <!-- Javascript -->
<script charset="utf-8" src="./js/jquery.min.js?version=<?php echo time() ?>"></script> <script charset="utf-8" src="./js/jquery.min.js?version=<?php echo time() ?>"></script>
<script charset="utf-8" src="./js/uikit/uikit.min.js?version=<?php echo time() ?>"></script> <script charset="utf-8" src="./js/uikit/uikit.min.js?version=<?php echo time() ?>"></script>
<script charset="utf-8" src="./js/jstz.min.js?version=<?php echo time() ?>"></script>
</head> </head>
<body class="uk-height-1-1"> <body class="uk-height-1-1">
@ -673,15 +682,14 @@ if( $_SERVER['REQUEST_METHOD'] == 'POST' )
<script> <script>
$(document).ready(function() $(document).ready(function()
{ {
// Set timezone
var timezoneOffset = -(new Date().getTimezoneOffset() * 60); // Timezone
$("#jstimezone").val(timezoneOffset); var timezone = jstz.determine();
$("#jstimezone").val( timezone.name() );
// Proceed without email field. // Proceed without email field.
$("#jscompleteEmail").on("click", function() { $("#jscompleteEmail").on("click", function() {
console.log("Click proceed anyway");
$("#jsnoCheckEmail").val("1"); $("#jsnoCheckEmail").val("1");
$("#jsformInstaller").submit(); $("#jsformInstaller").submit();