diff --git a/_locales/en/messages.json b/_locales/en/messages.json index b4b5c55a..aa6776c5 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -488,5 +488,17 @@ "themeAndroidDark": { "message": "Android (dark)", "description": "Label text for dark Android theme" + }, + "newContact": { + "message": "Click to create new contact", + "description": "" + }, + "newPhoneNumber": { + "message": "Enter a phone number to add a contact.", + "description": "Placeholder for adding a new number to a contact" + }, + "invalidNumberError": { + "message": "Invalid number", + "description": "When a person inputs a number that is invalid" } } diff --git a/js/views/conversation_search_view.js b/js/views/conversation_search_view.js index 84e4d988..6bf0fc4b 100644 --- a/js/views/conversation_search_view.js +++ b/js/views/conversation_search_view.js @@ -16,7 +16,7 @@ }, render_attributes: function() { return { - number: 'Click to create new contact', + number: i18n('newContact'), title: this.model.getNumber(), avatar: this.model.getAvatar(), }; @@ -105,7 +105,7 @@ this.resetTypeahead(); }.bind(this)); } else { - this.new_contact_view.$('.number').text("Invalid number"); + this.new_contact_view.$('.number').text(i18n('invalidNumberError')); this.$input.focus(); } }, @@ -144,7 +144,7 @@ if (!this.hintView) { this.hintView = new Whisper.HintView({ className: 'contact placeholder', - content: "Enter a phone number to add a contact." + content: i18n('newPhoneNumber') }).render(); this.hintView.$el.insertAfter(this.$input); }