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-text" : "Kommentar hier eintippen (mindestens 3 Zeichen)",
"postbox-author" : "Name (optional)", "postbox-author" : "Name (optional)",
"postbox-email" : "Email (optional)", "postbox-email" : "Email (optional)",
"postbox-submit": "Abschicken.", "postbox-submit": "Abschicken",
"num-comments": "1 Kommentar\n{{ n }} Kommentare", "num-comments": "1 Kommentar\n{{ n }} Kommentare",
"no-comments": "Keine Kommentare bis jetzt", "no-comments": "Keine Kommentare bis jetzt",
@ -11,6 +11,9 @@ define({
"comment-delete": "Löschen", "comment-delete": "Löschen",
"comment-confirm": "Bestätigen", "comment-confirm": "Bestätigen",
"comment-close": "Schließen", "comment-close": "Schließen",
"comment-deleted": "Kommentar gelöscht.",
"comment-queued": "Kommentar muss noch freigeschaltet werden.",
"comment-anonymous": "Anonym",
"date-now": "eben jetzt", "date-now": "eben jetzt",
"date-minute": "vor einer Minute\nvor {{ n }} Minuten", "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-text": "Type Comment Here (at least 3 chars)",
"postbox-author": "Name (optional)", "postbox-author": "Name (optional)",
"postbox-email": "E-mail (optional)", "postbox-email": "E-mail (optional)",
"postbox-submit": "Post Comment.", "postbox-submit": "Submit",
"num-comments": "One Comment\n{{ n }} Comments", "num-comments": "One Comment\n{{ n }} Comments",
"no-comments": "No Comments Yet", "no-comments": "No Comments Yet",
@ -11,8 +11,11 @@ define({
"comment-delete": "Delete", "comment-delete": "Delete",
"comment-confirm": "Confirm", "comment-confirm": "Confirm",
"comment-close": "Close", "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-minute": "a minute ago\n{{ n }} minutes ago",
"date-hour": "an hour ago\n{{ n }} hours ago", "date-hour": "an hour ago\n{{ n }} hours ago",
"date-day": "Yesterday\n{{ n }} days 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"), 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); var form = new Postbox(comment.id);
$("a.reply", footer).on("click", function() { $("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), $("a.reply", footer),
function(reply) { function(reply) {
footer.insertAfter(form); footer.insertAfter(form);
$("textarea", form).focus();
reply.textContent = msgs["comment-close"]; reply.textContent = msgs["comment-close"];
}, },
function(reply) { function(reply) {
@ -195,8 +197,8 @@ define(["behave", "app/text/html", "app/dom", "app/utils", "app/api", "app/marku
if (rv) { if (rv) {
el.remove(); el.remove();
} else { } else {
$("span.note", el).textContent = "Kommentar gelöscht."; $("span.note", header).textContent = msgs["comment-deleted"];
$(".text", el).innerHTML = "<p>&nbsp;</p>"; text.innerHTML = "<p>&nbsp;</p>";
} }
}); });
} else { } else {

View File

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