Skip to content

Instantly share code, notes, and snippets.

@gnarf gnarf/gist:6283396
Created Aug 20, 2013

Embed
What would you like to do?
diff --git a/apps/sms/js/recipients.js b/apps/sms/js/recipients.js
index c5803d0..5e377c8 100644
--- a/apps/sms/js/recipients.js
+++ b/apps/sms/js/recipients.js
@@ -963,7 +963,11 @@
var dialogBody = document.createDocumentFragment();
if (recipient.type) {
var typeElement = document.createElement('span');
- navigator.mozL10n.localize(typeElement, recipient.type);
+ if (!navigator.mozL10n.get(recipient.type)) {
+ typeElement.textContent = recipient.type;
+ } else {
+ navigator.mozL10n.localize(typeElement, recipient.type);
+ }
dialogBody.appendChild(typeElement);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.