• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

agama-project / agama / 16342134848 / 1 – rust
74%
master: 74%

Build:
DEFAULT BRANCH: master
Ran 17 Jul 2025 10:14AM UTC
Files 179
Run time 4s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 Jul 2025 10:01AM UTC coverage: 21.776%. First build
rust – 16342134848.1

push

github

web-flow
fix: better handling of missing license translations (#2571)

## Problem

* [bsc#1238364](https://bugzilla.suse.com/show_bug.cgi?id=1238364)

When displaying a product license, Agama allows to select the language
to display the license. In general, it offers the same list of languages
Agama is translated to. This has a few problems:

* In some cases, the license is no translated to that language. The
Agama falls back to English without informing the user.
* It is just another language selector, which is kind of confusing.

## Solution

Now the license is directly shown in the same language that Agama is
using. No additional language selector. If the translation is missing:

* It tries to find an alternative language (e.g., "Spanish" for
"Catalan".
* If there is no alternative, it falls back to English.

## Alternative language

To search for an alternative language, Agama choses the first language
in the same "territory". For instance, if you pick "Catalan" ("ca-ES"),
Agama uses the [langtable data](https://pypi.org/project/langtable/) to
search for the first language in the same territory, which in this case
it is "Spanish" (es).

## Testing

- Added a new unit test
- Tested manually

## Screenshots

<details>
<summary>The license is translated. No warning and no
selector.</summary>

<img width="1335" height="1009" alt="license-found-license"
src="https://github.com/user-attachments/assets/795ef340-cc38-4cf9-9841-3151c76f8b94"
/>
</details>

<details>
<summary>The license is not translated to Catalan, but to Spanish. Warn
the user.</summary>

<img width="1335" height="1009" alt="license-missing-translation"
src="https://github.com/user-attachments/assets/7bfbbd81-a05f-45d0-baaa-52f03cce856b"
/>
</details>

<details>
<summary>Fall back to English. Warn the user.</summary>

<img width="1335" height="1009" alt="license-fallback-english"
src="https://github.com/user-attachments/assets/8dcc931f-1ba3-4020-b3fa-c4f261221d9c"
/>
</details>

## Known problems... (continued)

1959 of 8996 relevant lines covered (21.78%)

0.43 hits per line

Source Files on job rust - 16342134848.1
  • Tree
  • List 179
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 16342134848
  • 5249cbc9 on github
  • Prev Job for on master (#16342134863.)
  • Next Job for on master (#16344430191.1)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc