Skip to content

po: complete update-po refresh and Italian translations - #519

Merged
mrjimenez merged 2 commits into
amule-project:masterfrom
got3nks:pr-it-translations-may2026
May 3, 2026
Merged

po: complete update-po refresh and Italian translations#519
mrjimenez merged 2 commits into
amule-project:masterfrom
got3nks:pr-it-translations-may2026

Conversation

@got3nks

@got3nks got3nks commented May 3, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR has two commits:

  1. Re-run scripts/update-po.sh + fix metadata loss in script. The previous run (commit b17c33c28) did not pick up the strings introduced in src/AppImageIntegration.cpp (PR packaging: AppImage/Flatpak/macOS/Windows + first-run launcher prompt #510), because src/AppImageIntegration.cpp had not yet been added to po/POTFILES.in when xgettext ran. This commit propagates the missing 14 user-facing strings into amule.pot and into every locale's .po. Additionally, scripts/update-po.sh is updated so future runs preserve the aMule-specific pot header:

    • Passes --copyright-holder, --package-name, --package-version, --msgid-bugs-address to xgettext so the header retains Project-Id-Version: aMule SVN, the upstream bug address, and the FSF copyright holder.
    • Adds a post-extraction sed step that substitutes the current year for xgettext's Copyright (C) YEAR placeholder.

    Without these, every regen would reset the pot header back to xgettext placeholders (PACKAGE VERSION, THE PACKAGE'S COPYRIGHT HOLDER, YEAR), erasing the aMule-specific package references.

  2. Italian (po/it.po): 34 entries addressed — 8 newly translated, 17 fuzzy translations replaced (msgmerge had collapsed several msgids onto unrelated existing translations, e.g. Friend not found.File non trovato., HTTP error strings onto random shared-files messages), 9 fuzzy entries un-fuzzied where the existing translation was still correct (typo recovery: existantexistent, succesfullysuccessfully, periodicalyperiodically).

After this PR, msgfmt --check po/it.po reports 1650 translated messages, 0 fuzzy, 0 untranslated.

Why two commits?

The pot/po refresh + script fix touches all 38 locales (~3000 lines of insertions; mostly the 14 AppImage strings being injected into each .po, plus the metadata-flag and year-substitution additions to scripts/update-po.sh). The Italian translation work is a separate concern that only touches po/it.po. Splitting makes the second commit reviewable as pure translation work.

Test plan

@got3nks
got3nks force-pushed the pr-it-translations-may2026 branch from 7ac55e2 to ee1e756 Compare May 3, 2026 08:29
got3nks added 2 commits May 3, 2026 10:33
Re-run scripts/update-po.sh to refresh po/amule.pot and merge into all
po/*.po files. The previous update-po run did not pick up the new
strings introduced in src/AppImageIntegration.cpp (PR amule-project#510), because
src/AppImageIntegration.cpp had not yet been added to po/POTFILES.in
when xgettext ran. This commit propagates the missing 14 user-facing
strings into amule.pot and into every locale's .po file (as untranslated
or fuzzy-matched entries, per msgmerge).

Also fix scripts/update-po.sh to preserve aMule package metadata in the
regenerated pot:

- Pass --copyright-holder, --package-name, --package-version, and
  --msgid-bugs-address to xgettext so the pot header retains
  'Project-Id-Version: aMule SVN' and the upstream bug address.
- Substitute the current year for xgettext's 'Copyright (C) YEAR'
  placeholder using sed.

Without these, every regen reset the pot header to xgettext placeholders
(PACKAGE VERSION, THE PACKAGE'S COPYRIGHT HOLDER, YEAR), erasing the
aMule-specific package references.
Translate the 8 untranslated entries and review the 26 fuzzy entries in
po/it.po that were introduced by the previous translation refresh
(msgmerge against the regenerated po/amule.pot).

Untranslated entries now translated:
- Connection timed out diagnostic
- EC_TAG_FRIEND_SHARED requires EC_TAG_FRIEND or EC_TAG_CLIENT
- HTTP empty response body / 401 Unauthorized errors
- GeoLite2 missing-URL hint
- Kad search reask widening (long descriptive tooltip + 2 status messages)

Fuzzy entries un-fuzzied where msgmerge's similarity match was already
correct (typo recovery for existant/successfully/periodically;
ipfilter.dat / external-connections / out-of-disk-space wording).

Fuzzy entries replaced where msgmerge guessed wrongly:
- Friend/Client not found mapped to 'File non trovato'
- HTTP error messages collapsed onto unrelated translations
- MuleTrayIcon connected-state strings lost their (HighID/LowID/firewalled)
  qualifier
- Server / Server IP strings swapped meanings
@got3nks
got3nks force-pushed the pr-it-translations-may2026 branch from ee1e756 to ee13065 Compare May 3, 2026 08:33
@mrjimenez
mrjimenez merged commit bd7e1fd into amule-project:master May 3, 2026
12 checks passed
@got3nks
got3nks deleted the pr-it-translations-may2026 branch May 3, 2026 13:08
got3nks added a commit to got3nks/amule that referenced this pull request Jul 18, 2026
…mule-project#519)

The read-only chat relay (amule-project#517) split ProcessChatMessage into a daemon
definition and a GUI definition under #ifdef AMULE_DAEMON, duplicating the
message-filter entry and the log + IncMessagesReceived + Notify_ChatProcessMsg
tail across both.

Collapse to a single definition and guard only the parts that are genuinely
GUI-only — the advanced spam filter (captcha challenge + URL heuristic), which
depends on CCaptchaGenerator (compiled only into the monolithic target, pulls
wxImage) and touches the chat window. On the daemon that block compiles out and
the function falls through to the shared notify tail: identical behaviour, one
copy of the shared logic. The captcha stubs for the daemon stay as-is.

No functional change. Built amuled + amule (monolithic) + amulegui.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants