ianmartorell / meteor-accounts-ui-bootstrap-3

accounts-ui package with Bootstrap 3 and localization support
150 stars 109 forks source link

Override login buttons text #89

Closed jesseflorig closed 9 years ago

jesseflorig commented 9 years ago

Is it possible to override login dropdown/button text?

ianmartorell commented 9 years ago

You could override the language you're using as explained in the Readme. I haven't tested this though. Just copy the file from the i18n folder of this package and change the function call to match the following:

accountsUIBootstrap3.map('es', {
    _resetPasswordDialog: {
      title: 'Restablece tu contraseña',
      cancel: 'Cancelar',
      submit: 'Guardar'
    },
    _enrollAccountDialog: {
      title: 'Escribe una contraseña',
      cancel: 'Cerrar',
      submit: 'Guardar contraseña'
    },
    // ...
})
jesseflorig commented 9 years ago

This makes sense. I guess the only problem with this specific to my issue is that I'd like to remove the "/ Join" from the login button.

As far as I can tell the "Sign In", "/", and "Join" values are all separated with no way to override the "/".

jesseflorig commented 9 years ago

Ok, so using the correct Accounts config takes care of this:

Accounts.config({ forbidClientAccountCreation: true });

Sorry for the non-issue!

ianmartorell commented 9 years ago

Yes, that's right! It already checks if signup is enabled and hides what doesn't apply.