more i18n

This commit is contained in:
Martin Zimmermann 2013-10-03 13:48:38 +02:00
parent 57a16acff4
commit 80e8ce7e25
4 changed files with 21 additions and 11 deletions

View File

@ -2,7 +2,7 @@ define({
"postbox-text" : "Kommentar hier eintippen (mindestens 3 Zeichen)",
"postbox-author" : "Name (optional)",
"postbox-email" : "Email (optional)",
"postbox-submit": "Abschicken.",
"postbox-submit": "Abschicken",
"num-comments": "1 Kommentar\n{{ n }} Kommentare",
"no-comments": "Keine Kommentare bis jetzt",
@ -11,6 +11,9 @@ define({
"comment-delete": "Löschen",
"comment-confirm": "Bestätigen",
"comment-close": "Schließen",
"comment-deleted": "Kommentar gelöscht.",
"comment-queued": "Kommentar muss noch freigeschaltet werden.",
"comment-anonymous": "Anonym",
"date-now": "eben jetzt",
"date-minute": "vor einer Minute\nvor {{ n }} Minuten",

View File

@ -2,7 +2,7 @@ define({
"postbox-text": "Type Comment Here (at least 3 chars)",
"postbox-author": "Name (optional)",
"postbox-email": "E-mail (optional)",
"postbox-submit": "Post Comment.",
"postbox-submit": "Submit",
"num-comments": "One Comment\n{{ n }} Comments",
"no-comments": "No Comments Yet",
@ -11,8 +11,11 @@ define({
"comment-delete": "Delete",
"comment-confirm": "Confirm",
"comment-close": "Close",
"comment-deleted": "Comment deleted.",
"comment-queued": "Comment in queue for moderation.",
"comment-anonymous": "Anonymous",
"date-now": "now",
"date-now": "right now",
"date-minute": "a minute ago\n{{ n }} minutes ago",
"date-hour": "an hour ago\n{{ n }} hours ago",
"date-day": "Yesterday\n{{ n }} days ago",

View File

@ -127,7 +127,8 @@ define(["behave", "app/text/html", "app/dom", "app/utils", "app/api", "app/marku
}
var footer = $("#isso-" + comment.id + " > .text-wrapper > footer"),
header = $("#isso-" + comment.id + " > .text-wrapper > header");
header = $("#isso-" + comment.id + " > .text-wrapper > header"),
text = $("#isso-" + comment.id + " > .text-wrapper > div.text");
var form = new Postbox(comment.id);
$("a.reply", footer).on("click", function() {
@ -135,6 +136,7 @@ define(["behave", "app/text/html", "app/dom", "app/utils", "app/api", "app/marku
$("a.reply", footer),
function(reply) {
footer.insertAfter(form);
$("textarea", form).focus();
reply.textContent = msgs["comment-close"];
},
function(reply) {
@ -195,8 +197,8 @@ define(["behave", "app/text/html", "app/dom", "app/utils", "app/api", "app/marku
if (rv) {
el.remove();
} else {
$("span.note", el).textContent = "Kommentar gelöscht.";
$(".text", el).innerHTML = "<p>&nbsp;</p>";
$("span.note", header).textContent = msgs["comment-deleted"];
text.innerHTML = "<p>&nbsp;</p>";
}
});
} else {

View File

@ -6,17 +6,19 @@
<header>
{{ if bool(website) }}
<a class="author" href="{{ website }}" rel="nofollow">
{{ author | blank : Anonymous }}
{{ author | blank : `i18n-comment-anonymous` }}
</a>
{{ else }}
<span class="author">
{{ author | blank : Anonymous }}
{{ author | blank : `i18n-comment-anonymous` }}
</span>
{{ /if }}
{{ if parent }}
<span class="spacer"></span>
<a class="parent" href="#isso-{{ parent }}"><i>{{ svg-forward }}</i>{{ replyto }}</a>
<a class="parent" href="#isso-{{ parent }}">
<i>{{ svg-forward }}</i>{{ replyto | blank: `i18n-comment-anonymous` }}
</a>
{{ /if }}
<span class="spacer"></span>
@ -27,10 +29,10 @@
<span class="note">
{{ if mode | equals : 2 }}
Kommentar muss noch freigeschaltet werden.
{{ i18n-comment-queued }}
{{ /if }}
{{ if mode | equals : 4 }}
Kommentar gelöscht.
{{ i18n-comment-deleted }}
{{ /if }}
</span>