updated chat i18n strings to use new modules.json file, added said files to language dirs

v1.18.x
Julian Lam 11 years ago
parent b61614f87b
commit 6d300e1110

@ -1,7 +1,4 @@
{ {
"chat.chatting_with": "Chatten mit <span id='chat-with-name'></span>",
"chat.placeholder": "schreibe hier etwas, und drücke Enter zum absenden",
"chat.send": "Senden",
"stats.online": "Online", "stats.online": "Online",
"stats.users": "Benutzer", "stats.users": "Benutzer",
"stats.topics": "Themen", "stats.topics": "Themen",

@ -1,7 +1,4 @@
{ {
"chat.chatting_with": "Chat with <span id=\"chat-with-name\"></span>",
"chat.placeholder": "type chat message here, press enter to send",
"chat.send": "Send",
"stats.online": "Online", "stats.online": "Online",
"stats.users": "Users", "stats.users": "Users",
"stats.topics": "Topics", "stats.topics": "Topics",

@ -1,7 +1,4 @@
{ {
"chat.chatting_with": "Chatear con <span id='chat-with-name'></span>",
"chat.placeholder": "ingresa tu mensaje aqui, y presiona enter para enviar",
"chat.send": "Enviar",
"stats.online": "Online", "stats.online": "Online",
"stats.users": "Usuarios", "stats.users": "Usuarios",
"stats.topics": "Temas", "stats.topics": "Temas",

@ -1,7 +1,4 @@
{ {
"chat.chatting_with": "Chat avec <span id=\"chat-with-name\"></span>",
"chat.placeholder": "taper le message ici, presser entrer pour envoyer",
"chat.send": "Envoyer",
"stats.online": "Online", "stats.online": "Online",
"stats.users": "Utilisateurs", "stats.users": "Utilisateurs",
"stats.topics": "Sujets", "stats.topics": "Sujets",

@ -1,7 +1,4 @@
{ {
"chat.chatting_with": "Chatta con <span id=\"chat-with-name\"></span>",
"chat.placeholder": "scrivi un messaggio qui e premi Invio",
"chat.send": "Invia",
"stats.online": "Online", "stats.online": "Online",
"stats.users": "Utenti", "stats.users": "Utenti",
"stats.topics": "Discussioni", "stats.topics": "Discussioni",

@ -151,13 +151,18 @@
chatsFrag.appendChild(chatEl.cloneNode(true)); chatsFrag.appendChild(chatEl.cloneNode(true));
} }
chatsListEl.empty();
chatsListEl.html(chatsFrag);
} else { } else {
chatEl.innerHTML = '<a href="#">No Recent Chats</a>'; translator.get('modules:chat.no_active', function(str) {
chatsFrag.appendChild(chatEl.cloneNode(true)); chatEl.innerHTML = '<a href="#">' + str + '</a>';
} chatsFrag.appendChild(chatEl.cloneNode(true));
chatsListEl.empty(); chatsListEl.empty();
chatsListEl.html(chatsFrag); chatsListEl.html(chatsFrag);
});
}
}); });
}); });

@ -4,14 +4,14 @@
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4>[[footer:chat.chatting_with]]</h4> <h4>[[modules:chat.chatting_with]]</h4>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<textarea class="form-control" id="chat-content" cols="40" rows="10" readonly></textarea><br/> <textarea class="form-control" id="chat-content" cols="40" rows="10" readonly></textarea><br/>
<input id="chat-message-input" type="text" class="form-control" name="chat-message" placeholder="[[footer:chat.placeholder]]"/> <input id="chat-message-input" type="text" class="form-control" name="chat-message" placeholder="[[modules:chat.placeholder]]"/>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button type="button" id="chat-message-send-btn" href="#" class="btn btn-primary btn-lg btn-block">[[footer:chat.send]]</button> <button type="button" id="chat-message-send-btn" href="#" class="btn btn-primary btn-lg btn-block">[[modules:chat.send]]</button>
</div> </div>
</div> </div>
</div> </div>

Loading…
Cancel
Save