Fix wording. Hide ":" if prefix does not exist

This commit is contained in:
Gustavo Maximiliano Cortez 2015-11-04 16:47:58 -03:00
commit 435e8f54ab
2 changed files with 3 additions and 3 deletions

View file

@ -94,7 +94,7 @@ angular.module('copayApp.services')
body = gettextCatalog.getString('Wallet seed is invalid');
break;
case 'MAIN_ADDRESS_GAP_REACHED':
body = gettextCatalog.getString('You cannot generate more until you register any activity');
body = gettextCatalog.getString('Empty addresses limit reached. New addresses cannot be generated.');
break;
case 'ERROR':
@ -112,7 +112,7 @@ angular.module('copayApp.services')
body = gettextCatalog.getString(err);
}
var msg = prefix + ( body ? ': ' + body : '');
var msg = prefix + ( body ? (prefix ? ': ' : '') + body : '');
return msg;
};