Display UI messages only after i18n system initialization #49

Closed
opened 2026-07-13 10:19:20 -07:00 by serrebi · 1 comment
Owner

Currently, BlindRSS displays some UI messages before the gettext internationalization system is initialized. As a result, these messages always appear in English, even when a non‑English language is configured for the interface.

This issue affects multiple UI messages in main.py that are rendered prior to gettext initialization, so although the strings are technically localized via gettext, they are shown in English due to the timing of the calls.

A concrete example is the "BlindRSS is already running." message, which should be displayed in the active locale but currently isn’t.

Preconditions

  • BlindRSS is configured to use a non‑English interface language.

Steps to Reproduce

  1. Launch BlindRSS.
  2. Attempt to launch BlindRSS again.

Actual Behavior

  • The program shows the message "BlindRSS is already running." in English.

Expected Behavior

  • The program displays the equivalent of "BlindRSS is already running." translated into the active localization language.

Proposed Fix

Move the gettext initialization logic to occur before any UI message is displayed. This ensures all user‑facing strings are rendered using the correct locale.

Currently, BlindRSS displays some UI messages before the `gettext` internationalization system is initialized. As a result, these messages always appear in English, even when a non‑English language is configured for the interface. This issue affects multiple UI messages in `main.py` that are rendered prior to `gettext` initialization, so although the strings are technically localized via `gettext`, they are shown in English due to the timing of the calls. A concrete example is the "BlindRSS is already running." message, which should be displayed in the active locale but currently isn’t. #### Preconditions * BlindRSS is configured to use a non‑English interface language. #### Steps to Reproduce 1. Launch BlindRSS. 2. Attempt to launch BlindRSS again. #### Actual Behavior * The program shows the message `"BlindRSS is already running."` in English. #### Expected Behavior * The program displays the equivalent of `"BlindRSS is already running."` translated into the active localization language. #### Proposed Fix Move the `gettext` initialization logic to occur before any UI message is displayed. This ensures all user‑facing strings are rendered using the correct locale. <!-- forgejo-github-sync: issue github=serrebidev/BlindRSS#61 -->
Author
Owner

Fixed in v1.98.0. i18n now initializes before any UI is shown, including the single-instance "BlindRSS is already running." message, so it renders in the active locale.

Fixed in v1.98.0. i18n now initializes before any UI is shown, including the single-instance "BlindRSS is already running." message, so it renders in the active locale. <!-- forgejo-github-sync: comment github=serrebidev/BlindRSS#61/4960903628 -->
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
serrebi/BlindRSS#49
No description provided.