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

[UX] Change Front page to Home page in core #2162

Closed
6 of 8 tasks
jenlampton opened this issue Sep 12, 2016 · 32 comments · Fixed by backdrop/backdrop#2729
Closed
6 of 8 tasks

[UX] Change Front page to Home page in core #2162

jenlampton opened this issue Sep 12, 2016 · 32 comments · Fixed by backdrop/backdrop#2729

Comments

@jenlampton
Copy link
Member

jenlampton commented Sep 12, 2016

We have a lot of places in core that refer to the home page of the site as a Front page. This is a bit of a drupalism and I would love to see us move to calling it the Home page consistently. That, however, will be a lot of work. Here are some of the places we need to update:

  • [UX] Update "Front page" to "Home page" on the Site information page #3855 | [UX] Update "Front page" to "Home page" on the Site information page
  • The silly <front> placeholder
  • After running update.php link
  • Layout "Is this the front page." condition
  • Redirect module validation
  • Token for [site:url] description
  • The API-level config variable config_get('system.core', 'site_frontpage');
  • more TBD

Spun off from #1042 (comment)


PR by @jenlampton: backdrop/backdrop#1544
PR by @klonos: backdrop/backdrop#2729 (excludes system.admin.inc, which is done in #3855 / backdrop/backdrop#2728)

@jenlampton
Copy link
Member Author

jenlampton commented Sep 12, 2016

Initial PR changes only the Site information form. (saving here so it won't get lost)

@klonos
Copy link
Member

klonos commented Jun 6, 2019

That, however, will be a lot of work.

Oooor... some search & replace 😄 ...lets see what the test bot things about that.

PS: I didn't touch <front> in the PR, so it is mostly strings like descriptions and labels etc. + inline comments. Baby steps 😉

@klonos
Copy link
Member

klonos commented Jun 6, 2019

...lets see what the test bot things about that.

Only 1 test failure is not bad for a 46-file PR 😅 ...but as I said, it was mostly string changes.

The remaining failure seems to be because of #3794 (although not 100% sure).

@klonos klonos removed this from the 1.x-future milestone Jun 6, 2019
@klonos
Copy link
Member

klonos commented Jun 8, 2019

...I have closed and reopened the PR, and this time all tests passed.

So by this search/replace, we sort this issue for most of the places, and tick most of the checkboxes in the issue summary:

Screen Shot 2019-06-08 at 12 45 16 pm

Screen Shot 2019-06-08 at 12 46 31 pm

I think that we should leave <front> placeholder and 'site_frontpage' in system.core config for separate PRs.

@herbdool
Copy link

herbdool commented Jun 9, 2019

I think that we should leave <front> placeholder and 'site_frontpage' in system.core config for separate PRs.

I don't think we can change those at all without potentially breaking lots of sites.

@jenlampton
Copy link
Member Author

jenlampton commented Jun 9, 2019 via email

@ghost
Copy link

ghost commented Aug 6, 2020

I tested the PR via the sandbox site, and all looks good. I marked off the checkboxes above that were covered by this PR. I crossed off the site_frontpage config one since that's not possible, and left the <front> one unchecked as I believe that deserves its own issue.

Browsed the code in the PR and that looks good too.
RTBC from me.

@jenlampton
Copy link
Member Author

jenlampton commented Aug 6, 2020 via email

@klonos
Copy link
Member

klonos commented Aug 6, 2020

@jenlampton this may be used in contrib and custom code. Perhaps if they used backdrop_is_front_page() instead, then this wouldn't be an issue. Can we do a grep across all config contrib, to get an idea? That should give us more confidence.

@ghost ghost added this to the 1.16.3 milestone Sep 2, 2020
@quicksketch
Copy link
Member

Well I haven't heard any opposition to the proposal, but I feel like it should probably be rationalized regardless:

  • Is Home page more common than Front page?
  • What popular platforms or sites use which terminology?
  • Is it worth the incurred cost/debt of having mixed terminology where our API uses "front" but the UI uses "home"?

@jenlampton jenlampton modified the milestones: 1.17.4, 1.17.5 Nov 19, 2020
@stpaultim
Copy link
Member

stpaultim commented Dec 28, 2020

I understand the concern about translations, but isn't a bit late to be holding this up because of that?

Seems like people are re-litigating what was already decided

I don't feel very strongly about this change. However, I agree with @herbdool and the observation that this decision seems to have been made. We already use the term "home" in most places in the UI. This PR seems to be mostly updating code comments and code to reflect this (although it does make some user facing changes).

Are those objecting to this PR suggesting

  1. That we should change much of the UI BACK to using "Front" instead of "Home"
    or
  2. That we should stick with the current mix of "front" and "home."
    or
  3. Something else?

It seems to me that at this point, it is probably best to follow through and complete a change that seems like it has been happening for a while.

home-vs-front-3
home-vs-front-2
home-vs-front-1

@olafgrabienski
Copy link

I understand the concern about translations, but isn't a bit late to be holding this up because of that?

Added the needs - translation update label now (might not have been available at issue opening). I see this label as a reminder to put the question if changing a language string is important enough to trigger the need of translation updates. In my opinion, this one is important enough.

@stpaultim
Copy link
Member

I see this label as a reminder to put the question if changing a language string is important enough to trigger the need of translation updates. In my opinion, this one is important enough.

Thanks, I think this is helpful. But, what does this mean practically for this issue?

Has there been any changes from "front" to "home" already that have effected translations OR is this the first PR that requires a change to translations. I suppose I understand the very real concerns about translations, but what I don't yet understand is the implication for this issue (which seems like it is part of a larger change that has been happening for a while).

Does this just mean that we need to make sure that all translations are updated before we make this change to core? Would moving back to "front" be less work on the translation front?

@jenlampton
Copy link
Member Author

Has there been any changes from "front" to "home" already that have effected translations

Since we already have instances of both "Front" and "Home" in core, there should already be translations for both those words. The real issue would be for the supportive text, where the word appears in the middle of a sentence. In those cases the whole sentence would not translate anymore, since we changed the string it was matching against.

is this the first PR that requires a change to translations.

When we added the home page layout, it was necessary to add new translations for "Home page".

Does this just mean that we need to make sure that all translations are updated before we make this change to core?

It happens the other way around, after we update core, we will need to update translations to match the new string included in core (we don't want to do it before the change is in, in case the string changes again)

Would moving back to "front" be less work on the translation front?

Probably not, since we've already started making this change.

@olafgrabienski
Copy link

Thanks for answering the questions, @jenlampton!

where the word appears in (...) a sentence. In those cases the whole sentence would not translate anymore, since we changed the string it was matching against.

FYI a few examples (for a more complete list search on the translation server):

  • Is this the front page.
  • The front page
  • Any page except the front page
  • Is not the front page
  • Is the front page

@stpaultim
Copy link
Member

stpaultim commented Jan 3, 2021

This issue was RTBC, but some people have raised concerns, which seem to be blocking this issue right now. It seems to me that there are three paths forward (as I described before).

  1. Leave things as they are with inconsistent use of of the terminology for front / home page
  2. Reverse previous changes to the UI and consistently use the term front page (instead of home page)
  3. Proceed with this PR to consistently use the term home page (instead of front page).

It seems to me that current concerns about option #3 risk leaving us with option #1, which I think is the worst possible choice. While, I support this change to home page, I would rather revert to using front page over the status quo.

Currently, every time I comment on a front/home page issue - I'm not sure which is the commonly accepted term and/or which one I should be using.

I think it would be helpful if those who have raised objections to this PR are clear about their preferred path forward. @indigoxela and @BWPanda have both expressed concerns, but it's not clear to me if the intend is to simply encourage us to be cautious about these kinds of changes in the future with translation implications, stick with the status quo, or to revert previous changes from front page to home page?

@olafgrabienski - Your comments seem to suggest that you are ok with this change as long as we do our best to make the necessary updates to translations, do I have this correct?

@ghost
Copy link

ghost commented Jan 3, 2021

I've never opposed this PR/issue. I re-read my comments above, and the point I was making was that I prefer consistency (i.e. everything being the same) over the current situation where we use both words in different places.

So I'm ok with this moving forward as 'home page' (option 3 from @stpaultim's comment above) (since that seems to be the most popular term, based on the Google Trends screenshot above). Failing that, I'm happy to move everything to 'front page' (option 2 from @stpaultim's comment). What I don't want is the current situation to remain (option 1).

@indigoxela
Copy link
Member

@stpaultim I never understood the need for the renaming, but silently accepted that it will happen anyway. My concerns were about all the required translation changes, but I also accepted that these will happen. So I'm not blocking this issue in any way, I just don't put any effort in getting it done - which isn't quite the same as blocking. 😉

@stpaultim
Copy link
Member

stpaultim commented Jan 7, 2021

Sorry for the misunderstanding @BWPanda, glad to clear that up. Thanks for the clarification @indigoxela, your position is very reasonable.

This issue has never been a priority for me, but I don't like the state we are in now and think it's a good idea to finish what we have started (to the extent that we are able). I am also interested in this issue, because we have other technical and/or documentation issues that would benefit from resolving this issue.

I very much understand the concern about translations and encourage us to be careful about making text changes that effect translations (certainly to keep the issue of translations in mind). Unfortunately, I don't work with translations enough that I think about this issue as much as I should. I'll try to pay more attention to how changes in core terminology effect translations in the future.

It seems to me that we have pretty good consensus that the current state is the least optimal option (between going back to front page, status quo, or moving forward with home page). While not everyone is convinced of the need for this change, I am not aware of anyone that outright objects to this change at this point after additional discussion.

We discussed this issue at the DEV meeting today. It was suggested that if this issue is really stuck, we might need to elevate it to the PMC. However, I'm not really sure that we have sufficient disagreement to require that.

Since this had the RTBC label and it was removed due to a lack of consensus AND because it seems to me that we have at least some consensus that moving forward is better than doing nothing, I'm going to give it the RTBC label again and see if we can get this issue moving and resolved.

If anyone wants to object, now is the time.

@ghost
Copy link

ghost commented Jan 8, 2021

As a core committer, if I see an issue with a label 'RTBC' then I think, "Ooh, I can merge something!" But in September I came here and saw the back-and-forth comments and so decided to remove the RTBC label just to give people a chance to discuss and come to a decision before a core committer went ahead a merged it.

Based on the discussion/comments since then, I feel @stpaultim has done the right thing by adding RTBC back and that we can commit this and standardise the terminology we use for the home/front page. I'll merge this PR next week unless someone else beats me to it.

@stpaultim
Copy link
Member

@BWPanda - For the record, I think you made the right call to remove the RTBC label at the time. Hopefully we've moved on since then. If not, we'll find out in the next few days. ;-)

@philsward
Copy link

+1 to get it done.

backdrop-ci referenced this issue in backdrop/backdrop Jan 11, 2021
backdrop-ci referenced this issue in backdrop/backdrop Jan 11, 2021
@ghost
Copy link

ghost commented Jan 12, 2021

Thanks @klonos for the PR, and @jenlampton for opening this issue originally. Thanks also to everyone who participated in the discussion. I've merged backdrop/backdrop#2729 into 1.x and 1.17.x.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment