* Edited messages
* Removed obsolete lines from app.properties * Re-enabled setting of res.skinpath in HopObject.onRequest * Fixed images collection in Tag prototype
This commit is contained in:
parent
7ce90c739e
commit
98fbd6158b
11 changed files with 28 additions and 26 deletions
|
@ -481,7 +481,7 @@ Admin.prototype.blockPrivateSites = function() {
|
||||||
var recipient = site.email ? site.email : site.creator.email;
|
var recipient = site.email ? site.email : site.creator.email;
|
||||||
warning.addTo(recipient);
|
warning.addTo(recipient);
|
||||||
warning.setFrom(root.sys_email);
|
warning.setFrom(root.sys_email);
|
||||||
warning.setSubject(gettext("Attention! Your site {0} will soon be blocked!", site.title));
|
warning.setSubject(gettext("Warning! Your site {0} soon will be blocked!", site.title));
|
||||||
var sp = new Object();
|
var sp = new Object();
|
||||||
sp.site = site.alias;
|
sp.site = site.alias;
|
||||||
sp.url = site.href();
|
sp.url = site.href();
|
||||||
|
@ -546,7 +546,7 @@ Admin.prototype.deleteInactiveSites = function() {
|
||||||
var recipient = site.email ? site.email : site.creator.email;
|
var recipient = site.email ? site.email : site.creator.email;
|
||||||
warning.addTo(recipient);
|
warning.addTo(recipient);
|
||||||
warning.setFrom(root.sys_email);
|
warning.setFrom(root.sys_email);
|
||||||
warning.setSubject(gettext("Attention! Your site {0} will soon be deleted!", site.title));
|
warning.setSubject(gettext("Warning! Your site {0} soon will be deleted!", site.title));
|
||||||
var sp = new Object();
|
var sp = new Object();
|
||||||
sp.site = site.alias;
|
sp.site = site.alias;
|
||||||
sp.url = site.href();
|
sp.url = site.href();
|
||||||
|
|
|
@ -72,7 +72,7 @@ Comment.prototype.edit_action = function() {
|
||||||
|
|
||||||
res.handlers.parent = this.parent;
|
res.handlers.parent = this.parent;
|
||||||
res.data.action = this.href(req.action);
|
res.data.action = this.href(req.action);
|
||||||
res.data.title = gettext("Edit comment to story {0}",
|
res.data.title = gettext("Edit comment to story: {0}",
|
||||||
res.handlers.story.getTitle());
|
res.handlers.story.getTitle());
|
||||||
res.data.body = this.renderSkinAsString("Comment#edit");
|
res.data.body = this.renderSkinAsString("Comment#edit");
|
||||||
this.site.renderSkin("Site#page");
|
this.site.renderSkin("Site#page");
|
||||||
|
|
|
@ -56,7 +56,7 @@ Files.prototype.create_action = function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
res.data.action = this.href(req.action);
|
res.data.action = this.href(req.action);
|
||||||
res.data.title = gettext("Add a file to {0}", this._parent.title);
|
res.data.title = gettext("Add file to {0}", this._parent.title);
|
||||||
res.data.body = file.renderSkinAsString("File#edit");
|
res.data.body = file.renderSkinAsString("File#edit");
|
||||||
this._parent.renderSkin("Site#page");
|
this._parent.renderSkin("Site#page");
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -31,3 +31,12 @@ markgettext("Referrers");
|
||||||
markgettext("Skins");
|
markgettext("Skins");
|
||||||
markgettext("Stories");
|
markgettext("Stories");
|
||||||
markgettext("Tags");
|
markgettext("Tags");
|
||||||
|
|
||||||
|
markgettext("Edit");
|
||||||
|
markgettext("Delete");
|
||||||
|
markgettext("Show");
|
||||||
|
markgettext("Close");
|
||||||
|
markgettext("Publish");
|
||||||
|
markgettext("Hide");
|
||||||
|
|
||||||
|
markgettext('"ÄÖÜß"');
|
||||||
|
|
|
@ -74,7 +74,7 @@ HopObject.prototype.onRequest = function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
res.handlers.layout = res.handlers.site.layout || new Layout;
|
res.handlers.layout = res.handlers.site.layout || new Layout;
|
||||||
//res.skinpath = res.handlers.layout.getSkinPath();
|
res.skinpath = res.handlers.layout.getSkinPath();
|
||||||
|
|
||||||
res.meta.values = {};
|
res.meta.values = {};
|
||||||
res.handlers.site.renderSkinAsString("Site#values");
|
res.handlers.site.renderSkinAsString("Site#values");
|
||||||
|
|
|
@ -63,7 +63,7 @@ Membership.prototype.edit_action = function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
res.data.action = this.href(req.action);
|
res.data.action = this.href(req.action);
|
||||||
res.data.title = gettext("Edit membership: {0}", this.name);
|
res.data.title = gettext("Edit membership {0}", this.name);
|
||||||
res.data.body = this.renderSkinAsString("Membership#edit");
|
res.data.body = this.renderSkinAsString("Membership#edit");
|
||||||
this.site.renderSkin("Site#page");
|
this.site.renderSkin("Site#page");
|
||||||
return;
|
return;
|
||||||
|
@ -109,7 +109,7 @@ Membership.prototype.contact_action = function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
res.data.action = this.href(req.action);
|
res.data.action = this.href(req.action);
|
||||||
res.data.title = gettext('Contact user "{0}"', this.name);
|
res.data.title = gettext('Contact user {0}', this.name);
|
||||||
res.data.body = this.renderSkinAsString("Membership#contact");
|
res.data.body = this.renderSkinAsString("Membership#contact");
|
||||||
this.site.renderSkin("Site#page");
|
this.site.renderSkin("Site#page");
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -79,7 +79,7 @@ Skin.prototype.edit_action = function() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
res.data.action = this.href(req.action);
|
res.data.action = this.href(req.action);
|
||||||
res.data.title = gettext('Edit {0}.{1} skin of "{2}"', this.prototype,
|
res.data.title = gettext('Edit skin {0}.{1} of {2}', this.prototype,
|
||||||
this.name, res.handlers.site.title);
|
this.name, res.handlers.site.title);
|
||||||
res.data.body = this.renderSkinAsString("Skin#edit");
|
res.data.body = this.renderSkinAsString("Skin#edit");
|
||||||
res.handlers.skins.renderSkin("Skins#page");
|
res.handlers.skins.renderSkin("Skins#page");
|
||||||
|
@ -167,7 +167,7 @@ Skin.prototype.restore_action = function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
res.data.action = this.href(req.action);
|
res.data.action = this.href(req.action);
|
||||||
res.data.title = gettext("Confirm restore of {0}", this);
|
res.data.title = gettext("Confirm restoration of {0}", this);
|
||||||
res.data.body = this.renderSkinAsString("HopObject#confirm", {
|
res.data.body = this.renderSkinAsString("HopObject#confirm", {
|
||||||
text: gettext('You are about to restore {0}.', this)
|
text: gettext('You are about to restore {0}.', this)
|
||||||
});
|
});
|
||||||
|
@ -218,9 +218,9 @@ Skin.prototype.compare_action = function() {
|
||||||
res.data.diff = res.pop();
|
res.data.diff = res.pop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
res.data.title = gettext("Compare versions of skin {0}.{1}",
|
||||||
|
this.prototype, this.name);
|
||||||
res.data.body = this.renderSkinAsString("Skin#compare");
|
res.data.body = this.renderSkinAsString("Skin#compare");
|
||||||
res.data.title = gettext("Diffs for {0}/{1}.skin of layout {2}",
|
|
||||||
this.prototype, this.name, res.handlers.layout.title);
|
|
||||||
res.handlers.skins.renderSkin("Skins#page");
|
res.handlers.skins.renderSkin("Skins#page");
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
|
|
@ -46,8 +46,7 @@ else
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<% #compare %>
|
<% #compare %>
|
||||||
<h3>Comparing <% skin.prototype %>.<% skin.name %> of layout '<% layout.title %>'
|
<h3><% response.title %></h3>
|
||||||
with the original version:</h3>
|
|
||||||
|
|
||||||
<table class="diff" cellspacing="0" cellpadding="0">
|
<table class="diff" cellspacing="0" cellpadding="0">
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -143,10 +143,10 @@ Skins.prototype.create_action = function() {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (skin.getSource()) {
|
if (skin.getSource()) {
|
||||||
res.data.title = gettext("Edit skin {0}.{1} of layout {2}",
|
res.data.title = gettext("Edit skin {0}.{1} of {2}",
|
||||||
skin.prototype, skin.name, res.handlers.layout.name);
|
skin.prototype, skin.name, res.handlers.site.title);
|
||||||
} else {
|
} else {
|
||||||
res.data.title = gettext('Create a custom skin of "{0}"',
|
res.data.title = gettext('Create a custom skin of {0}',
|
||||||
res.handlers.site.title);
|
res.handlers.site.title);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -253,7 +253,7 @@ Skins.prototype.getCustomSkins = function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
Skins.getSummary = function(prefix, prototype, name) {
|
Skins.getSummary = function(prefix, prototype, name) {
|
||||||
return gettext("Description of skin " + prototype + "." + name);
|
return gettext("Description of skin {0}", prototype + "." + name);
|
||||||
var key = prefix + "." + prototype;
|
var key = prefix + "." + prototype;
|
||||||
name && (key += "." + name);
|
name && (key += "." + name);
|
||||||
var languages = new Array("en");
|
var languages = new Array("en");
|
||||||
|
|
|
@ -50,6 +50,6 @@ images = collection(TagHub)
|
||||||
images.local = id
|
images.local = id
|
||||||
images.foreign = tag_id
|
images.foreign = tag_id
|
||||||
images.filter.additionalTables = image
|
images.filter.additionalTables = image
|
||||||
images.filter = image.site_id = ${site_id} and tagged_type = 'Image' \
|
images.filter = image.site_id = ${site_id} and image.parent_type = 'Site' \
|
||||||
and image.id = tagged_id
|
and tagged_type = 'Image' and image.id = tagged_id
|
||||||
images.order = image.created desc
|
images.order = image.created desc
|
||||||
|
|
|
@ -29,14 +29,8 @@ charset = UTF8
|
||||||
skinCharset = UTF8
|
skinCharset = UTF8
|
||||||
requestTimeout = 300
|
requestTimeout = 300
|
||||||
|
|
||||||
## Enable this if Root should become extent of Site
|
|
||||||
#rootId = 1
|
|
||||||
|
|
||||||
## uncomment to set base for application generated URLs, if necessary.
|
## uncomment to set base for application generated URLs, if necessary.
|
||||||
baseURI = http://localhost:8080/antville
|
#baseURI = http://localhost:8080/antville
|
||||||
|
|
||||||
## description of this app (e.g. used in app manager)
|
|
||||||
_description = An easy to maintain and use weblog hosting system
|
|
||||||
|
|
||||||
## directory that contains static contents (images, files)
|
## directory that contains static contents (images, files)
|
||||||
staticPath = apps/antville/static/
|
staticPath = apps/antville/static/
|
||||||
|
|
Loading…
Add table
Reference in a new issue