Skip to content

Conversation

@teolemon
Copy link
Member

What

fix: Fixes for Open X Facts strings

@teolemon
Copy link
Member Author

@copilot can you address the todo I added ?

Copy link
Contributor

Copilot AI commented Oct 29, 2025

@teolemon I've opened a new pull request, #12570, to work on those changes. Once the pull request is ready, I'll request review from you.

The manifest.pl PWA manifest was using a generic `site_description`
translation key instead of flavor-specific keys, causing all flavors
(OFF, OBF, OPF, OPFF) to share the same description.

### Changes

- Updated `cgi/manifest.pl` to use `lang("site_description_$flavor")`
instead of `lang('site_description')`
- Removed TODO comment requesting this fix
- Leverages existing `$flavor` variable from `ProductOpener::Config`
module
- Aligns with pattern used in `Display.pm` for flavor-specific metadata

```perl
# Before
description => lang('site_description'),

# After  
description => lang("site_description_$flavor"),
```

Each flavor now gets its appropriate description in the PWA manifest
(e.g., "food products" for OFF, "cosmetic products" for OBF, "pet food
products" for OPFF).

<!-- START COPILOT CODING AGENT TIPS -->
---

💡 You can make Copilot smarter by setting up custom instructions,
customizing its development environment and configuring Model Context
Protocol (MCP) servers. Learn more [Copilot coding agent
tips](https://gh.io/copilot-coding-agent-tips) in the docs.

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: teolemon <[email protected]>
}

# TODO: flavor specific string
my $description = lang("search_description_opensearch");
Copy link
Member Author

Choose a reason for hiding this comment

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

Suggested change
my $description = lang("search_description_opensearch");
my $description = lang("search_description_opensearch_$flavor");

@sonarqubecloud
Copy link

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

Projects

Status: To discuss and validate
Status: In progress

Development

Successfully merging this pull request may close these issues.

2 participants