Skip to content

Instantly share code, notes, and snippets.

@gnarf
Created August 20, 2013 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gnarf/6283396 to your computer and use it in GitHub Desktop.
Save gnarf/6283396 to your computer and use it in GitHub Desktop.
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