Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #8525 - Rename "Mail" to "Email" in user preferences #2010

Closed
wants to merge 1 commit into from

Conversation

ShimShtein
Copy link
Member

No description provided.

@orrabin
Copy link
Member

orrabin commented Dec 11, 2014

[test]

@dLobatog
Copy link
Member

Thanks! A few comments:

  • .po files shouldn't be modified, they are auto generated. You can override the label in app/views/users/_form:42
  • More instances that should be changed:
    • ../cleanforeman/app/models/setting/general.rb:18
    • ../cleanforeman/app/controllers/application_controller.rb:83
    • mail notifications code, API params and so on.

@ohadlevy @domcleal I think we're almost consistent on the use of 'mail' across the whole UI, and most of the code uses Mail, so I can't say I understand the usefulness of this issue. Your thoughts?

@ShimShtein please hold off making further changes until more people comment on this, at first glance it seems like a non-issue and we should actually turn the few 'email' to 'mail', but it might just be me!

@domcleal
Copy link
Contributor

I don't think the code versus the UI is particularly important, but it should be consistent within the UI, either way. I suppose I'd have preferred to stick with "email" as that was already in use before 3a36bdf introduced a second term, but perhaps "mail" would be simpler at this stage.

Editing the en .po file is fine in order to override the default attribute labels in the UI, or add a :label to app/views/users/_form.html.erb.

@ShimShtein
Copy link
Member Author

I didn't want to break translations, so I changed the .po file.
The code is pretty consistent with "mail" as a field name - wouldn't try to change that, besides that there's no reasons for confusion - we are not referring to different types of mail anywhere.
I am not an English expert, but personally I prefer the "Email" consistency in the UI, as @domcleal has noted.
About two more files that @elobato has pointed:

  • /app/controllers/application_controller.rb:83, should be fixed the same way - I will add it in the moment we agree on a proper way to change it.
  • /app/models/setting/general.rb:18, needs to be changed inline - didn't find any mentioning of this string in other files.

@dLobatog
Copy link
Member

@ShimShtein @domcleal @stbenjam ping.

At this point I guess if this goes in we'll have to change all the UI for mail notifications to email notifications right? Otherwise this PR is not really keeping it consistent. I do prefer 'email' too but 'mail' would take way less effort.

@ShimShtein
Copy link
Member Author

@elobato @domcleal What do you say about this version? Looks pretty consistent to me...

@ohadlevy
Copy link
Member

ohadlevy commented May 7, 2015

@elobato ping?

@@ -34,7 +34,7 @@
<%= text_f f, :attr_login, :help_inline => _("e.g. uid") %>
<%= text_f f, :attr_firstname, :help_inline => _("e.g. givenName") %>
<%= text_f f, :attr_lastname, :help_inline => _("e.g. sn") %>
<%= text_f f, :attr_mail, :help_inline => _("e.g. mail") %>
<%= text_f f, :attr_mail, :help_inline => _("e.g. email") %>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't change this, it's the name of a standard LDAP attribute

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @domcleal, reverted the change in the latest commit.

@domcleal
Copy link
Contributor

So I think this is okay by me, the only inconsistencies that remain are a) internal stuff, or b) the API. Hopefully when somebody gets around to implementing this in Hammer they can paper over the latter.

@elobato did you have any further concerns?

@dLobatog
Copy link
Member

Merged as 416a0ae, thanks @ShimShtein!

@dLobatog dLobatog closed this May 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants