[PR #1792] [MERGED] Plurality for non-Qt messages #704

Closed
opened 2026-01-29 19:09:12 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/stenzek/duckstation/pull/1792
Author: @CookiePLMonster
Created: 3/12/2021
Status: Merged
Merged: 3/13/2021
Merged by: @stenzek

Base: masterHead: plurality-pass


📝 Commits (4)

  • 787ab5d String: Add a new constructor
  • 948a6b5 Make TranslateString and TranslateStdString support numbers
  • 6350bb0 Hook up plurality to OSD messages
  • 5515a58 Update PL localization

📊 Changes

9 files changed (+497 additions, -390 deletions)

View changed files

📝 src/common/string.cpp (+5 -0)
📝 src/common/string.h (+9 -0)
📝 src/core/host_interface.cpp (+41 -4)
📝 src/core/host_interface.h (+4 -2)
📝 src/duckstation-qt/qthostinterface.cpp (+10 -16)
📝 src/duckstation-qt/qthostinterface.h (+4 -4)
📝 src/duckstation-qt/translations/duckstation-qt_en.ts (+45 -0)
📝 src/duckstation-qt/translations/duckstation-qt_pl.ts (+368 -355)
📝 src/frontend-common/common_host_interface.cpp (+11 -9)

📄 Description

Extends TranslateString and TranslateStdString to support disambiguation and n parameters, and hooks them up to cheat OSD messages.

English and Polish translations are updated accordingly.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/stenzek/duckstation/pull/1792 **Author:** [@CookiePLMonster](https://github.com/CookiePLMonster) **Created:** 3/12/2021 **Status:** ✅ Merged **Merged:** 3/13/2021 **Merged by:** [@stenzek](https://github.com/stenzek) **Base:** `master` ← **Head:** `plurality-pass` --- ### 📝 Commits (4) - [`787ab5d`](https://github.com/stenzek/duckstation/commit/787ab5dbd0a685b364205897d3572415ff56d4a1) String: Add a new constructor - [`948a6b5`](https://github.com/stenzek/duckstation/commit/948a6b530b1ec547e4fc66f99fb348b6abe96132) Make TranslateString and TranslateStdString support numbers - [`6350bb0`](https://github.com/stenzek/duckstation/commit/6350bb0e362b070ae70ea927ab58b6e9c0754182) Hook up plurality to OSD messages - [`5515a58`](https://github.com/stenzek/duckstation/commit/5515a581e04ddd103d699b7b3e4083166cb92284) Update PL localization ### 📊 Changes **9 files changed** (+497 additions, -390 deletions) <details> <summary>View changed files</summary> 📝 `src/common/string.cpp` (+5 -0) 📝 `src/common/string.h` (+9 -0) 📝 `src/core/host_interface.cpp` (+41 -4) 📝 `src/core/host_interface.h` (+4 -2) 📝 `src/duckstation-qt/qthostinterface.cpp` (+10 -16) 📝 `src/duckstation-qt/qthostinterface.h` (+4 -4) 📝 `src/duckstation-qt/translations/duckstation-qt_en.ts` (+45 -0) 📝 `src/duckstation-qt/translations/duckstation-qt_pl.ts` (+368 -355) 📝 `src/frontend-common/common_host_interface.cpp` (+11 -9) </details> ### 📄 Description Extends `TranslateString` and `TranslateStdString` to support `disambiguation` and `n` parameters, and hooks them up to cheat OSD messages. English and Polish translations are updated accordingly. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 19:09:12 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/duckstation#704