Fixed translations for rocketchat-hubot

pull/1012/head
Marcelo Schmidt 10 years ago
parent 46138c21f3
commit 192fa3c560
  1. 0
      packages/rocketchat-hubot/package-tap.i18n
  2. 19
      packages/rocketchat-hubot/package.js
  3. 4
      packages/rocketchat-hubot/settings.coffee

@ -14,8 +14,13 @@ Package.onUse(function(api) {
'rocketchat:lib@0.0.1'
]);
api.addFiles([
'hubot.coffee',
'settings.coffee',
], ['server']);
// TAPi18n
api.use('templating', 'client');
api.use('templating', client);
var _ = Npm.require('underscore');
var fs = Npm.require('fs');
tapi18nFiles = _.compact(_.map(fs.readdirSync('packages/rocketchat-hubot/i18n'), function(filename) {
@ -23,17 +28,9 @@ Package.onUse(function(api) {
return 'i18n/' + filename;
}
}));
api.use(["tap:i18n@1.5.1"], ["client", "server"]);
api.use('tap:i18n@1.6.1', ['client', 'server']);
api.imply('tap:i18n');
api.addFiles("package-tap.i18n", ["client", "server"]);
api.addFiles([
'hubot.coffee',
'settings.coffee',
], ['server']);
// TAPi18n -- needs to be added last
api.addFiles(tapi18nFiles, ["client", "server"]);
api.addFiles(tapi18nFiles, ['client', 'server']);
api.export('Hubot', ['server']);
api.export('HubotScripts', ['server']);

@ -1,3 +1,3 @@
RocketChat.settings.addGroup 'RocketBot'
RocketChat.settings.add 'RocketBot_Enabled', true, { type: 'boolean', group: 'RocketBot', i18nLabel: 'rocketchat-hubot:RocketBot_Enabled' }
RocketChat.settings.add 'RocketBot_Name', 'Rocket.Cat', { type: 'string', group: 'RocketBot', i18nLabel: 'rocketchat-hubot:RocketBot_Name', i18nDescription: 'rocketchat-hubot:RocketBot_Name_Description' }
RocketChat.settings.add 'RocketBot_Enabled', true, { type: 'boolean', group: 'RocketBot' }
RocketChat.settings.add 'RocketBot_Name', 'Rocket.Cat', { type: 'string', group: 'RocketBot', i18nDescription: 'RocketBot_Name_Description' }

Loading…
Cancel
Save