Skip to content

Commit

Permalink
Achievements: Fix incorrect plural string
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Sep 8, 2024
1 parent b6c4d6d commit 1d83e72
Show file tree
Hide file tree
Showing 18 changed files with 45 additions and 45 deletions.
2 changes: 1 addition & 1 deletion src/core/achievements.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2421,7 +2421,7 @@ void Achievements::DrawAchievementsWindow()
{
if (s_game_summary.num_unlocked_achievements == s_game_summary.num_core_achievements)
{
text = TRANSLATE_PLURAL_SSTR("Achievements", "You have unlocked all achievements and earned {} points!",
text = TRANSLATE_PLURAL_SSTR("Achievements", "You have unlocked all achievements and earned %n points!",
"Point count", s_game_summary.points_unlocked);
}
else
Expand Down
2 changes: 1 addition & 1 deletion src/duckstation-qt/translations/duckstation-qt_de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ Unread messages: {}</source>
</message>
<message>
<location filename="../../core/achievements.cpp" line="2199"/>
<source>You have unlocked all achievements and earned {} points!</source>
<source>You have unlocked all achievements and earned %n points!</source>
<translation type="unfinished"></translation>
</message>
<message>
Expand Down
34 changes: 17 additions & 17 deletions src/duckstation-qt/translations/duckstation-qt_en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,25 @@
<context>
<name>Achievements</name>
<message numerus="yes">
<location filename="../../core/achievements.cpp" line="1208"/>
<location filename="../../core/achievements.cpp" line="1213"/>
<source>You have unlocked {} of %n achievements</source>
<comment>Achievement popup</comment>
<translation>
<numerusform>You have unlocked {} of %n achievements</numerusform>
<numerusform>You have unlocked the %n achievement</numerusform>
<numerusform>You have unlocked {} of %n achievements</numerusform>
</translation>
</message>
<message numerus="yes">
<location filename="../../core/achievements.cpp" line="1211"/>
<location filename="../../core/achievements.cpp" line="1216"/>
<source>and earned {} of %n points</source>
<comment>Achievement popup</comment>
<translation>
<numerusform>and earned {} of %n points</numerusform>
<numerusform>and earned %n point</numerusform>
<numerusform>and earned {} of %n points</numerusform>
</translation>
</message>
<message numerus="yes">
<location filename="../../core/achievements.cpp" line="1286"/>
<location filename="../../core/achievements.cpp" line="1291"/>
<source>%n achievements</source>
<comment>Mastery popup</comment>
<translation>
Expand All @@ -43,8 +43,8 @@
</translation>
</message>
<message numerus="yes">
<location filename="../../core/achievements.cpp" line="1288"/>
<location filename="../../core/achievements.cpp" line="2587"/>
<location filename="../../core/achievements.cpp" line="1293"/>
<location filename="../../core/achievements.cpp" line="2598"/>
<source>%n points</source>
<comment>Achievement points</comment>
<translation>
Expand All @@ -53,16 +53,16 @@
</translation>
</message>
<message numerus="yes">
<location filename="../../core/achievements.cpp" line="2421"/>
<source>You have unlocked all achievements and earned {} points!</source>
<location filename="../../core/achievements.cpp" line="2424"/>
<source>You have unlocked all achievements and earned %n points!</source>
<comment>Point count</comment>
<translation>
<numerusform>You have unlocked all achievements and earned {} point!</numerusform>
<numerusform>You have unlocked all achievements and earned {} points!</numerusform>
<numerusform>You have unlocked all achievements and earned %n point!</numerusform>
<numerusform>You have unlocked all achievements and earned %n points!</numerusform>
</translation>
</message>
<message numerus="yes">
<location filename="../../core/achievements.cpp" line="2823"/>
<location filename="../../core/achievements.cpp" line="2834"/>
<source>This game has %n leaderboards.</source>
<comment>Leaderboard count</comment>
<translation>
Expand All @@ -86,7 +86,7 @@
<name>GameList</name>
<message numerus="yes">
<location filename="../gamelistmodel.cpp" line="258"/>
<location filename="../../core/game_list.cpp" line="1314"/>
<location filename="../../core/game_list.cpp" line="1327"/>
<source>%n hours</source>
<translation>
<numerusform>%n hour</numerusform>
Expand All @@ -95,7 +95,7 @@
</message>
<message numerus="yes">
<location filename="../gamelistmodel.cpp" line="260"/>
<location filename="../../core/game_list.cpp" line="1316"/>
<location filename="../../core/game_list.cpp" line="1329"/>
<source>%n minutes</source>
<translation>
<numerusform>%n minute</numerusform>
Expand Down Expand Up @@ -128,23 +128,23 @@
<context>
<name>System</name>
<message numerus="yes">
<location filename="../../core/system.cpp" line="3514"/>
<location filename="../../core/system.cpp" line="3549"/>
<source>%n cheat(s) are now active.</source>
<translation>
<numerusform>%n cheat is now active.</numerusform>
<numerusform>%n cheats are now active.</numerusform>
</translation>
</message>
<message numerus="yes">
<location filename="../../core/system.cpp" line="3515"/>
<location filename="../../core/system.cpp" line="3550"/>
<source>%n cheat(s) are now inactive.</source>
<translation>
<numerusform>%n cheat is now inactive.</numerusform>
<numerusform>%n cheats are now inactive.</numerusform>
</translation>
</message>
<message numerus="yes">
<location filename="../../core/system.cpp" line="4166"/>
<location filename="../../core/system.cpp" line="4201"/>
<source>%n cheat(s) are enabled. This may crash games.</source>
<translation>
<numerusform>%n cheat is enabled. This may crash games.</numerusform>
Expand Down
6 changes: 3 additions & 3 deletions src/duckstation-qt/translations/duckstation-qt_es-ES.ts
Original file line number Diff line number Diff line change
Expand Up @@ -612,11 +612,11 @@ Mensajes sin leer: {}</translation>
</message>
<message numerus="yes">
<location filename="../../core/achievements.cpp" line="2419"/>
<source>You have unlocked all achievements and earned {} points!</source>
<source>You have unlocked all achievements and earned %n points!</source>
<comment>Point count</comment>
<translation>
<numerusform>¡Has desbloqueado todos los logros y has ganado {} punto!</numerusform>
<numerusform>¡Has desbloqueado todos los logros y has ganado {} puntos!</numerusform>
<numerusform>¡Has desbloqueado todos los logros y has ganado %n punto!</numerusform>
<numerusform>¡Has desbloqueado todos los logros y has ganado %n puntos!</numerusform>
</translation>
</message>
<message>
Expand Down
4 changes: 2 additions & 2 deletions src/duckstation-qt/translations/duckstation-qt_es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,8 @@ Mensajes sin leer: {}</translation>
</message>
<message>
<location filename="../../core/achievements.cpp" line="2315"/>
<source>You have unlocked all achievements and earned {} points!</source>
<translation>Desbloqueaste todos los logros y conseguiste {} puntos!</translation>
<source>You have unlocked all achievements and earned %n points!</source>
<translation>Desbloqueaste todos los logros y conseguiste %n puntos!</translation>
</message>
<message>
<location filename="../../core/achievements.cpp" line="2320"/>
Expand Down
2 changes: 1 addition & 1 deletion src/duckstation-qt/translations/duckstation-qt_fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ Unread messages: {}</source>
</message>
<message>
<location filename="../../core/achievements.cpp" line="2199"/>
<source>You have unlocked all achievements and earned {} points!</source>
<source>You have unlocked all achievements and earned %n points!</source>
<translation type="unfinished"></translation>
</message>
<message>
Expand Down
2 changes: 1 addition & 1 deletion src/duckstation-qt/translations/duckstation-qt_he.ts
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ Unread messages: {}</source>
</message>
<message>
<location filename="../../core/achievements.cpp" line="2199"/>
<source>You have unlocked all achievements and earned {} points!</source>
<source>You have unlocked all achievements and earned %n points!</source>
<translation type="unfinished"></translation>
</message>
<message>
Expand Down
4 changes: 2 additions & 2 deletions src/duckstation-qt/translations/duckstation-qt_id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -547,8 +547,8 @@ Leaderboard Position: {} of {}</source>
</message>
<message>
<location filename="../../core/achievements.cpp" line="2247"/>
<source>You have unlocked all achievements and earned {} points!</source>
<translation>Anda telah membuka semua prestasi dan mendapatkan {} poin!</translation>
<source>You have unlocked all achievements and earned %n points!</source>
<translation>Anda telah membuka semua prestasi dan mendapatkan %n poin!</translation>
</message>
<message>
<location filename="../../core/achievements.cpp" line="1879"/>
Expand Down
4 changes: 2 additions & 2 deletions src/duckstation-qt/translations/duckstation-qt_it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -542,8 +542,8 @@ Messaggi non letti: {}</translation>
</message>
<message>
<location filename="../../core/achievements.cpp" line="2240"/>
<source>You have unlocked all achievements and earned {} points!</source>
<translation>Hai sbloccato tutti gli obiettivi e guadagnato {} punti!</translation>
<source>You have unlocked all achievements and earned %n points!</source>
<translation>Hai sbloccato tutti gli obiettivi e guadagnato %n punti!</translation>
</message>
<message>
<location filename="../../core/achievements.cpp" line="2245"/>
Expand Down
2 changes: 1 addition & 1 deletion src/duckstation-qt/translations/duckstation-qt_ja.ts
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ Unread messages: {}</source>
</message>
<message>
<location filename="../../core/achievements.cpp" line="2245"/>
<source>You have unlocked all achievements and earned {} points!</source>
<source>You have unlocked all achievements and earned %n points!</source>
<translation type="unfinished"></translation>
</message>
<message>
Expand Down
4 changes: 2 additions & 2 deletions src/duckstation-qt/translations/duckstation-qt_ko.ts
Original file line number Diff line number Diff line change
Expand Up @@ -541,8 +541,8 @@ Unread messages: {}</source>
</message>
<message>
<location filename="../../core/achievements.cpp" line="2199"/>
<source>You have unlocked all achievements and earned {} points!</source>
<translation>모든 도전 과제를 봉인 해제하고 {}점을 획득했습니다!</translation>
<source>You have unlocked all achievements and earned %n points!</source>
<translation>모든 도전 과제를 봉인 해제하고 %n점을 획득했습니다!</translation>
</message>
<message>
<location filename="../../core/achievements.cpp" line="2204"/>
Expand Down
2 changes: 1 addition & 1 deletion src/duckstation-qt/translations/duckstation-qt_nl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ Unread messages: {}</source>
</message>
<message>
<location filename="../../core/achievements.cpp" line="2199"/>
<source>You have unlocked all achievements and earned {} points!</source>
<source>You have unlocked all achievements and earned %n points!</source>
<translation type="unfinished"></translation>
</message>
<message>
Expand Down
4 changes: 2 additions & 2 deletions src/duckstation-qt/translations/duckstation-qt_pl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -530,8 +530,8 @@ Nieprzeczytane wiadomości: {}</translation>
</message>
<message>
<location filename="../../core/achievements.cpp" line="2245"/>
<source>You have unlocked all achievements and earned {} points!</source>
<translation>Udało ci się odblokować wszystkie osiągnięcia i zebrać {} punktów!</translation>
<source>You have unlocked all achievements and earned %n points!</source>
<translation>Udało ci się odblokować wszystkie osiągnięcia i zebrać %n punktów!</translation>
</message>
<message>
<location filename="../../core/achievements.cpp" line="2250"/>
Expand Down
4 changes: 2 additions & 2 deletions src/duckstation-qt/translations/duckstation-qt_pt-BR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -529,10 +529,10 @@ Mensagens não lidas: {}</translation>
</message>
<message numerus="yes">
<location filename="../../core/achievements.cpp" line="2424"/>
<source>You have unlocked all achievements and earned {} points!</source>
<source>You have unlocked all achievements and earned %n points!</source>
<comment>Point count</comment>
<translation>
<numerusform>Você desbloqueou todas as conquistas e ganhou {} pontos!</numerusform>
<numerusform>Você desbloqueou todas as conquistas e ganhou %n pontos!</numerusform>
<numerusform></numerusform>
</translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion src/duckstation-qt/translations/duckstation-qt_pt-PT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ Unread messages: {}</source>
</message>
<message>
<location filename="../../core/achievements.cpp" line="2199"/>
<source>You have unlocked all achievements and earned {} points!</source>
<source>You have unlocked all achievements and earned %n points!</source>
<translation type="unfinished"></translation>
</message>
<message>
Expand Down
4 changes: 2 additions & 2 deletions src/duckstation-qt/translations/duckstation-qt_ru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -554,8 +554,8 @@ Unread messages: {}</source>
<translation> (Хардкорный режим)</translation>
</message>
<message>
<source>You have unlocked all achievements and earned {} points!</source>
<translation type="obsolete">Вы открыли все достижения и заработали {} баллов!</translation>
<source>You have unlocked all achievements and earned %n points!</source>
<translation type="obsolete">Вы открыли все достижения и заработали %n баллов!</translation>
</message>
<message>
<location filename="../../core/achievements.cpp" line="2484"/>
Expand Down
4 changes: 2 additions & 2 deletions src/duckstation-qt/translations/duckstation-qt_tr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -533,8 +533,8 @@ Okunmamış Mesajlar: {}</translation>
</message>
<message>
<location filename="../../core/achievements.cpp" line="2315"/>
<source>You have unlocked all achievements and earned {} points!</source>
<translation>Tüm başarımları kazanıp {} puan aldnız!</translation>
<source>You have unlocked all achievements and earned %n points!</source>
<translation>Tüm başarımları kazanıp %n puan aldnız!</translation>
</message>
<message>
<location filename="../../core/achievements.cpp" line="2320"/>
Expand Down
4 changes: 2 additions & 2 deletions src/duckstation-qt/translations/duckstation-qt_zh-CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,8 @@ Unread messages: {}</source>
<translation> (硬核模式)</translation>
</message>
<message>
<source>You have unlocked all achievements and earned {} points!</source>
<translation type="vanished">您已经解锁了全部成就并获得了{}点数!</translation>
<source>You have unlocked all achievements and earned %n points!</source>
<translation type="vanished">您已经解锁了全部成就并获得了%n点数!</translation>
</message>
<message>
<location filename="../../core/achievements.cpp" line="2479"/>
Expand Down

0 comments on commit 1d83e72

Please sign in to comment.