langs updated, right click in profile fixed

This commit is contained in:
John Preston 2015-03-26 12:32:57 +03:00
parent 8c7a35c973
commit 75bfc6b893
10 changed files with 48 additions and 29 deletions

View File

@ -492,7 +492,6 @@ Copyright (c) 2014 John Preston, https://desktop.telegram.org
"lng_new_version_wrap" = "Telegram Desktop was updated to version {version}\n\n{changes}\n\nFull version history is available here:\n{link}";
"lng_new_version_minor" = "— Bug fixes and other minor improvements";
"lng_new_version7026" = "— Add a comment before forwarded messages\n— Hashtags suggestions in new message and search fields (based on recent searches)\n— Button to jump back to a reply after viewing the original message\n— Add people to groups by username";
"lng_new_version7026_appstore" = "— Add a comment before forwarded messages\n— Hashtags suggestions in new message and search fields (based on recent searches)\n— Button to jump back to a reply after viewing the original message\n— Add people to groups by username";
"lng_menu_insert_unicode" = "Insert Unicode control character";

View File

@ -392,7 +392,7 @@ void AddParticipantInner::peopleReceived(const QString &query, const QVector<MTP
for (QVector<MTPContactFound>::const_iterator i = people.cbegin(), e = people.cend(); i != e; ++i) {
int32 uid = i->c_contactFound().vuser_id.v, j = 0;
for (; j < already; ++j) {
if (_byUsernameFiltered[j]->id == uid) break;
if (_byUsernameFiltered[j]->id == App::peerFromUser(uid)) break;
}
if (j == already) {
UserData *u = App::user(uid);

View File

@ -379,7 +379,7 @@ void NewGroupInner::peopleReceived(const QString &query, const QVector<MTPContac
for (QVector<MTPContactFound>::const_iterator i = people.cbegin(), e = people.cend(); i != e; ++i) {
int32 uid = i->c_contactFound().vuser_id.v, j = 0;
for (; j < already; ++j) {
if (_byUsernameFiltered[j]->id == uid) break;
if (_byUsernameFiltered[j]->id == App::peerFromUser(uid)) break;
}
if (j == already) {
UserData *u = App::user(uid);

View File

@ -313,6 +313,8 @@ Copyright (c) 2014 John Preston, https://desktop.telegram.org
"lng_create_group_next" = "Weiter";
"lng_create_group_title" = "Neue Gruppe erstellen";
"lng_failed_add_participant" = "Kann Teilnehmer nicht hinzufügen. Später erneut versuchen.";
"lng_sure_delete_contact" = "Bist du sicher, dass du {contact} von deinen Kontakten löschen willst?";
"lng_sure_delete_history" = "Sicher, dass du den kompletten Verlauf mit {contact} löschen willst?\n\nDas kann man nicht rückgängig machen.";
@ -431,6 +433,8 @@ Copyright (c) 2014 John Preston, https://desktop.telegram.org
"lng_forward" = "Weiterleiten";
"lng_forward_send" = "Senden";
"lng_forward_messages" = "{count:_not_used_|Nachrichtenanhang|# Nachrichtenanhänge}";
"lng_forwarding_from" = "{user} und {count:_not_used_|# anderer|# andere}";
"lng_forwarding_from_two" = "{user} und {second_user}";
"lng_contact_phone" = "Telefonnummer";
"lng_enter_contact_data" = "Neuer Kontakt";
@ -487,8 +491,7 @@ Copyright (c) 2014 John Preston, https://desktop.telegram.org
"lng_new_version_wrap" = "Telegram Desktop wurde aktualisiert auf Version {version}\n\n{changes}\n\nGesamter Versionsverlauf:\n{link}";
"lng_new_version_minor" = "— Fehlerbehebungen und Softwareoptimierungen";
"lng_new_version7022" = "— Beantworte bestimmte Gruppennachrichten\n— Erwähne @benutzernamen in Gruppen um Nutzer zu benachrichtigen";
"lng_new_version7022_appstore" = "— Beantworte bestimmte Gruppennachrichten\n— Erwähne @benutzernamen in Gruppen um Nutzer zu benachrichtigen";
"lng_new_version7026" = "— Kommentar vor weitergeleiteten Nachrichten hinzufügen\n— Hashtags Vorschläge in neuen Nachrichten und Suchfeldern (vorherige Suche wird berücksichtigt)\n— Knopf hinzugefügt, um schnell zurück zur Antwort zu gelangen, nachdem man die Originalnachricht angeklickt hat\n— Gruppenteilnehmer über Benutzernamen hinzufügen";
"lng_menu_insert_unicode" = "Unicode-Steuerzeichen einfügen";

View File

@ -313,6 +313,8 @@ Copyright (c) 2014 John Preston, https://desktop.telegram.org
"lng_create_group_next" = "Siguiente";
"lng_create_group_title" = "Nuevo grupo";
"lng_failed_add_participant" = "No se pudo añadir el usuario. Por favor, inténtalo más tarde.";
"lng_sure_delete_contact" = "¿Quieres eliminar a {contact} de tu lista de contactos?";
"lng_sure_delete_history" = "¿Quieres eliminar todo el historial de mensajes con {contact}?\n\nEsta acción no se puede deshacer.";
@ -431,6 +433,8 @@ Copyright (c) 2014 John Preston, https://desktop.telegram.org
"lng_forward" = "Reenviar";
"lng_forward_send" = "Enviar";
"lng_forward_messages" = "{count:_not_used_|Mensaje adjunto|# mensajes adjuntos}";
"lng_forwarding_from" = "{user} y {count:_not_used_|# otro|# otros}";
"lng_forwarding_from_two" = "{user} y {second_user}";
"lng_contact_phone" = "Número de teléfono";
"lng_enter_contact_data" = "Nuevo contacto";
@ -487,8 +491,7 @@ Copyright (c) 2014 John Preston, https://desktop.telegram.org
"lng_new_version_wrap" = "Telegram Desktop fue actualizada a la versión {version}\n\n{changes}\n\nEl historial completo está disponible aquí:\n{link}";
"lng_new_version_minor" = "— Corrección de errores y otras mejoras menores";
"lng_new_version7022" = "- Responde a mensajes específicos en grupos\n- Menciona @apodos en grupos para notificar a múltiples usuarios";
"lng_new_version7022_appstore" = "- Responde a mensajes específicos en grupos\n- Menciona @apodos en grupos para notificar a múltiples usuarios";
"lng_new_version7026" = "— Añade un comentario antes de los mensajes reenviados\n— Sugerencias de hashtags en un mensaje nuevo o en las barras de búsqueda (basado en las búsquedas recientes)\n— Botón para volver a una respuesta después de ver el mensaje original\n— Añade personas a grupos a través de sus apodos";
"lng_menu_insert_unicode" = "Insertar caracteres de control Unicode";

View File

@ -189,9 +189,9 @@ Copyright (c) 2014 John Preston, https://desktop.telegram.org
"lng_settings_replace_emojis" = "Riconosci emoji";
"lng_settings_view_emojis" = "Vedi la lista";
"lng_settings_emoji_list" = "Lista delle emoji supportate";
"lng_settings_send_enter" = "Invia con Invio";
"lng_settings_send_ctrlenter" = "Invia con Ctrl+Invio";
"lng_settings_send_cmdenter" = "Invia con Cmd+Invio";
"lng_settings_send_enter" = "Spedisci con Invio";
"lng_settings_send_ctrlenter" = "Spedisci con Ctrl+Invio";
"lng_settings_send_cmdenter" = "Spedisci con Cmd+Invio";
"lng_settings_section_background" = "Sfondo chat";
"lng_settings_bg_from_gallery" = "Scegli dalla galleria";
@ -313,6 +313,8 @@ Copyright (c) 2014 John Preston, https://desktop.telegram.org
"lng_create_group_next" = "Avanti";
"lng_create_group_title" = "Nuovo gruppo";
"lng_failed_add_participant" = "Impossibile aggiungere l'utente. Riprova più tardi.";
"lng_sure_delete_contact" = "Sicuro di volere eliminare {contact} dalla tua lista dei contatti?";
"lng_sure_delete_history" = "Sicuro di voler eliminare tutta la cronologia dei messaggi con {contact}?\n\nQuesta azione non può essere annullata.";
@ -431,6 +433,8 @@ Copyright (c) 2014 John Preston, https://desktop.telegram.org
"lng_forward" = "Inoltra";
"lng_forward_send" = "Invia";
"lng_forward_messages" = "{count:_not_used_|messaggio inoltrato|# messaggi inoltrati}";
"lng_forwarding_from" = "{user} e {count:_not_used_|# altro|altri #}";
"lng_forwarding_from_two" = "{user} e {second_user}";
"lng_contact_phone" = "Numero di telefono";
"lng_enter_contact_data" = "Nuovo contatto";
@ -483,12 +487,11 @@ Copyright (c) 2014 John Preston, https://desktop.telegram.org
"lng_mediaview_saved" = "L'immagine è stata salvata nella tua cartella [c]Download[/c]";
"lng_new_authorization" = "{name},\nAbbiamo rilevato un accesso al tuo account da un nuovo dispositivo {day}, {date} alle {time}\n\nDispositivo: {device}\nPosizione: {location}\n\nSe non sei tu, puoi andare su Impostazioni Termina tutte le sessioni. \n\nGrazie, \nIl Team di Telegram";
"lng_new_authorization" = "{name},\nAbbiamo rilevato un accesso al tuo account da un nuovo dispositivo {day}, {date} alle {time}\n\nDispositivo: {device}\nPosizione: {location}\n\nSe non sei tu, puoi andare su Impostazioni Termina le altre sessioni. \n\nGrazie, \nIl Team di Telegram";
"lng_new_version_wrap" = "Telegram Desktop si è aggiornato alla versione {version}\n\n{changes}\n\nLa cronologia degli update è disponibile qui:\n{link}";
"lng_new_version_minor" = "— Bug fix e altri miglioramenti minori";
"lng_new_version7022" = "— Rispondi a messaggi specifici nei gruppi\n— Menziona @usernames nei gruppi per notificare più utenti";
"lng_new_version7022_appstore" = "— Rispondi a messaggi specifici nei gruppi\n— Menziona @usernames nei gruppi per notificare più utenti";
"lng_new_version7026" = "— Aggiungi un commento prima di inoltrare messaggi\n— Suggerimenti per gli hashtag in un nuovo messaggio e nella ricerca (basato sulle ricerche recenti)\n— Pulsante per tornare alla risposta dopo aver visualizzato il messaggio originale.\n— Aggiungi persone ai gruppi tramite username";
"lng_menu_insert_unicode" = "Inserisci carattere di controllo Unicode";

View File

@ -313,6 +313,8 @@ Copyright (c) 2014 John Preston, https://desktop.telegram.org
"lng_create_group_next" = "다음";
"lng_create_group_title" = "새로운 그룹";
"lng_failed_add_participant" = "사용자를 초대할 수 없습니다. 나중에 다시 시도해주세요.";
"lng_sure_delete_contact" = "{contact} 님을 주소록에서 \n삭제하시겠습니까?";
"lng_sure_delete_history" = "{contact} 님과 관련된 모든 메시지를 \n삭제하시겠습니까?\n\n삭제 하실 경우 취소가 불가능합니다.";
@ -431,6 +433,8 @@ Copyright (c) 2014 John Preston, https://desktop.telegram.org
"lng_forward" = "전달";
"lng_forward_send" = "보낵";
"lng_forward_messages" = "{count:_not_used_|전달받은 메시지|# 개의 전달받은 메시지}";
"lng_forwarding_from" = "{user} 님과 {count:_not_used_|# 명|# 명}";
"lng_forwarding_from_two" = "{user} 님과 {second_user}";
"lng_contact_phone" = "전화번호";
"lng_enter_contact_data" = "새로운 연락처";
@ -487,8 +491,7 @@ Copyright (c) 2014 John Preston, https://desktop.telegram.org
"lng_new_version_wrap" = "텔레그램 데스크탑은 {version} 버전으로 업데이트 되었습니다.\n\n{changes}\n\n전체 버전 히스토리는 아래에서 확인 가능합니다:\n{link}";
"lng_new_version_minor" = "— 버그 수정 및 일부 기능 향상";
"lng_new_version7022" = "— 그룹내 특정 메시지에 답글기능\n— 그룹내 @usernames 를 멘션하여 여러유저 알림기능";
"lng_new_version7022_appstore" = "— 그룹내 특정 메시지에 답글기능\n— 그룹내 @usernames 를 멘션하여 여러유저 알림기능";
"lng_new_version7026" = "— 메시지 전달시 코멘트 추가 기능\n— 신규 메시지 및 검색시 기존 사용한 해시태그 제안 기능\n— 원본 메시지 확인 후 기존 답글로 돌아오기 기능\n— 아이디로 그룹 초대 기능";
"lng_menu_insert_unicode" = "유니코드 문자를 입력하세요.";

View File

@ -313,6 +313,8 @@ Copyright (c) 2014 John Preston, https://desktop.telegram.org
"lng_create_group_next" = "Volgende";
"lng_create_group_title" = "Nieuwe groep";
"lng_failed_add_participant" = "Gebruiker toevoegen mislukt. Probeer het later nog eens.";
"lng_sure_delete_contact" = "{contact} echt verwijderen uit contacten?";
"lng_sure_delete_history" = "Geschiedenis met {contact} echt wissen? \n\nDeze actie kan niet ongedaan worden gemaakt.";
@ -431,6 +433,8 @@ Copyright (c) 2014 John Preston, https://desktop.telegram.org
"lng_forward" = "Doorsturen";
"lng_forward_send" = "Stuur";
"lng_forward_messages" = "{count:_not_used_|Doorgestuurd bericht|# doorgestuurde berichten}";
"lng_forwarding_from" = "{user} en {count:_not_used_|# andere|# anderen}";
"lng_forwarding_from_two" = "{user} en {second_user}";
"lng_contact_phone" = "Telefoonnummer";
"lng_enter_contact_data" = "Nieuw contact";
@ -487,8 +491,7 @@ Copyright (c) 2014 John Preston, https://desktop.telegram.org
"lng_new_version_wrap" = "Telegram is bijgewerkt naar versie {version}\n\n{changes} \n\nVolledige versiegeschiedenis is hier te vinden:\n{link}";
"lng_new_version_minor" = "— Probleemoplossing en andere kleine verbeteringen";
"lng_new_version7022" = "— Antwoorden op specifieke berichten in groepen. \n— @gebruikersnaam vermelden in groepen om gebruikers te informeren.";
"lng_new_version7022_appstore" = "— Antwoorden op specifieke berichten in groepen. \n— @gebruikersnaam vermelden in groepen om gebruikers te informeren. ";
"lng_new_version7026" = "— Voeg commentaar toe alvorens berichten door te sturen.\n— Hashtag suggesties in nieuwe berichten en zoekvelden (op basis van recente zoekacties).\n— Knop om terug te gaan naar een antwoord na het bekijken van het originele bericht.\n— Voeg mensen toe aan groepen op basis van de gebruikersnaam.";
"lng_menu_insert_unicode" = "Unicode-besturingsteken invoegen";

View File

@ -313,6 +313,8 @@ Copyright (c) 2014 John Preston, https://desktop.telegram.org
"lng_create_group_next" = "Próximo";
"lng_create_group_title" = "Novo Grupo";
"lng_failed_add_participant" = "Não foi possível adicionar o usuário. Tente novamente mais tarde.";
"lng_sure_delete_contact" = "Você tem certeza que deseja deletar {contact} da sua lista de contatos?";
"lng_sure_delete_history" = "Você tem certeza que deseja deletar todo o seu histórico de mensagens com {contact}?\n\nEssa ação não pode ser desfeita.";
@ -431,6 +433,8 @@ Copyright (c) 2014 John Preston, https://desktop.telegram.org
"lng_forward" = "Encaminhar";
"lng_forward_send" = "Enviar";
"lng_forward_messages" = "{count:_not_used_|Mensagem encaminhada|# mensagens encaminhadas}";
"lng_forwarding_from" = "{user} e {count:_not_used_|# outro|# outros}";
"lng_forwarding_from_two" = "{user} e {second_user}";
"lng_contact_phone" = "Número de telefone";
"lng_enter_contact_data" = "Novo Contato";
@ -487,8 +491,7 @@ Copyright (c) 2014 John Preston, https://desktop.telegram.org
"lng_new_version_wrap" = "Telegram Desktop foi atualizado para a versão {version}\n\n{changes}\n\nHistórico completo de mudanças disponível aqui:\n{link}";
"lng_new_version_minor" = "— Resolução de bugs e outras menores melhorias";
"lng_new_version7022" = "— Responder usuários específicos em grupos\n— Mencionar @nomesdeusuario em grupos para notificar múltiplos usuários";
"lng_new_version7022_appstore" = "— Responder usuários específicos em grupos\n— Mencionar @nomesdeusuario em grupos para notificar múltiplos usuários";
"lng_new_version7026" = "— Adicione um comentário antes das mensagens encaminhadas\n— Sugestões de hashtags na nova mensagem e campos de busca (baseados nas buscas recentes)\n— Botão para voltar para a resposta depois de visualizar a mensagem original\n— Adicione pessoas em grupos pelo nome de usuário";
"lng_menu_insert_unicode" = "Inserir caractere de controle Unicode";

View File

@ -600,16 +600,18 @@ void ProfileInner::updateSelected() {
void ProfileInner::mousePressEvent(QMouseEvent *e) {
_lastPos = e->globalPos();
updateSelected();
if (_kickOver) {
_kickDown = _kickOver;
update();
} else if (_selectedRow >= 0 && _selectedRow < _participants.size()) {
App::main()->showPeerProfile(_participants[_selectedRow]);
} else if (QRect(_left, st::profilePadding.top(), st::setPhotoSize, st::setPhotoSize).contains(e->pos())) {
if (_photoLink) {
_photoLink->onClick(e->button());
} else if (_peerChat && !_peerChat->forbidden) {
onUpdatePhoto();
if (e->button() == Qt::LeftButton) {
if (_kickOver) {
_kickDown = _kickOver;
update();
} else if (_selectedRow >= 0 && _selectedRow < _participants.size()) {
App::main()->showPeerProfile(_participants[_selectedRow]);
} else if (QRect(_left, st::profilePadding.top(), st::setPhotoSize, st::setPhotoSize).contains(e->pos())) {
if (_photoLink) {
_photoLink->onClick(e->button());
} else if (_peerChat && !_peerChat->forbidden) {
onUpdatePhoto();
}
}
}
}