From 271aaa34f148f0e83e2c04a63d71bee429dd5cd8 Mon Sep 17 00:00:00 2001 From: Gabriel Engel Date: Sat, 5 Sep 2015 23:45:32 -0300 Subject: [PATCH] add more i18n --- packages/rocketchat-lib/server/methods/setUsername.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/rocketchat-lib/server/methods/setUsername.coffee b/packages/rocketchat-lib/server/methods/setUsername.coffee index eb209354045..d61cb560f2b 100644 --- a/packages/rocketchat-lib/server/methods/setUsername.coffee +++ b/packages/rocketchat-lib/server/methods/setUsername.coffee @@ -11,12 +11,12 @@ Meteor.methods return username if not /^[0-9a-zA-Z-_.]+$/.test username - throw new Meteor.Error 'username-invalid', TAPi18next.t('project:Username_invalid', username) + throw new Meteor.Error 'username-invalid', t('Username_invalid', username) if not RocketChat.checkUsernameAvailability username - throw new Meteor.Error 'username-unavailable' + throw new Meteor.Error 'username-unavailable', t('Username_unavaliable') unless RocketChat.setUsername user, username throw new Meteor.Error 'could-not-change-username', t('Could_not_change_username') - return username \ No newline at end of file + return username