In #3338988: Completeness of l10n_community, we figured it is impossible to highlight a project in 3.0.x. We need to port this missing part.

Resources:

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

fmb created an issue. See original summary.

dydave made their first commit to this issue’s fork.

dydave’s picture

Status: Active » Needs review
StatusFileSize
new238.39 KB

OK, after looking at the code it appears the highlighted project feature has already been implemented in:
https://git.drupalcode.org/project/l10n_server/-/blob/3.0.x/l10n_communi...

So basically, the module currently uses a Controller class to display the section about the highlighted project, see in particular methods title and build (search for highlighted_project).
By default, the highlighted project is Drupal Core and this feature can be tested at anytime at:
Either the front page: https://localizedrupalorg.ddev.site/
Or https://localizedrupalorg.ddev.site/translate which is currently set to redirect to the front page (configured in the basic site settings).

Therefore, we assumed the real issue here was the ability to control the project currently highlighted in the corresponding section and page.
So we added a back-end configuration form accessible at: /admin/config/l10n-community/settings, which should allow changing the highlighted project.

See the result locally with the Admin Toolbar module being highlighted:

Moving issue to Needs review as an attempt to get more testing feedback and reviews.

Feel free to let us know if you encounter any issues while testing or would have any questions or concerns on any of the suggested changes, we would surely be glad to reply as soon as possible.
Thanks in advance!

  • fmb committed 64fb550b on 3.0.x
    Merge branch '3564295-replicate-highlight-project' into '3.0.x'
    
    Issue #...

  • dydave committed 3789a849 on 3.0.x
    Issue #3564295 by dydave: Added l10n_community settings form page to...
fmb’s picture

Status: Needs review » Fixed

Thank you!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.