[GH-ISSUE #2356] [APP BUG]: Translated Log type written to config #794

Closed
opened 2026-02-27 21:08:11 +03:00 by kerem · 18 comments
Owner

Originally created by @f1amy on GitHub (Feb 5, 2025).
Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/2356

Checklist

  • I have searched for a similar issue in this repository and did not find one.
  • I am using an official build obtained from releases or updated one of those builds using its in-app updater.

Describe the Bug

In the settings UI, Debug -> Logger -> Log Type we recently got translations for items "async" and "sync"
So it no longer works and "async" is always assumed

However it seems to save translated value to config, even though it was available for translation

See how it is saved:
github.com/shadps4-emu/shadPS4@f5d64239cb/src/qt_gui/settings_dialog.cpp (L358)

UI file:
github.com/shadps4-emu/shadPS4@f5d64239cb/src/qt_gui/settings_dialog.ui (L1791)

Solutions:

  1. Make it so on save it checks for index of a value or add as display text
    or
  2. Disable translations for these values

Reproduction Steps

  1. Use latest Nightly build
  2. Set emulator language to Ukranian or Russian
  3. Select a Log type
  4. Save settings

Expected Behavior

"sync" or "async" is written to config

Specify OS Version

Windows 11

Originally created by @f1amy on GitHub (Feb 5, 2025). Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/2356 ### Checklist - [x] I have searched for a similar issue in this repository and did not find one. - [x] I am using an official build obtained from [releases](https://github.com/shadps4-emu/shadPS4/releases) or updated one of those builds using its in-app updater. ### Describe the Bug In the settings UI, Debug -> Logger -> Log Type we recently got translations for items "async" and "sync" So it no longer works and "async" is always assumed However it seems to save translated value to config, even though it was available for translation See how it is saved: https://github.com/shadps4-emu/shadPS4/blob/f5d64239cbc5afa89addc0caa281a50558661865/src/qt_gui/settings_dialog.cpp#L358 UI file: https://github.com/shadps4-emu/shadPS4/blob/f5d64239cbc5afa89addc0caa281a50558661865/src/qt_gui/settings_dialog.ui#L1791 Solutions: 1. Make it so on save it checks for index of a value or add as display text or 2. Disable translations for these values ### Reproduction Steps 1. Use latest Nightly build 2. Set emulator language to Ukranian or Russian 3. Select a Log type 4. Save settings ### Expected Behavior "sync" or "async" is written to config ### Specify OS Version Windows 11
kerem closed this issue 2026-02-27 21:08:11 +03:00
Author
Owner

@f1amy commented on GitHub (Feb 5, 2025):

cc @DanielSvoboda

<!-- gh-comment-id:2637605909 --> @f1amy commented on GitHub (Feb 5, 2025): cc @DanielSvoboda
Author
Owner

@f1amy commented on GitHub (Feb 5, 2025):

сс @GHU7924

<!-- gh-comment-id:2637614047 --> @f1amy commented on GitHub (Feb 5, 2025): сс @GHU7924
Author
Owner

@GHU7924 commented on GitHub (Feb 5, 2025):

You can see these points in this comment - https://github.com/shadps4-emu/shadPS4/pull/2318#issuecomment-2633680243
In the video: Без полей = Borderless

<!-- gh-comment-id:2637663165 --> @GHU7924 commented on GitHub (Feb 5, 2025): You can see these points in this comment - https://github.com/shadps4-emu/shadPS4/pull/2318#issuecomment-2633680243 In the video: Без полей = Borderless
Author
Owner

@Hermiten commented on GitHub (Feb 11, 2025):

I can reproduce it easely on the last nightly, it save the word "sync" or "async" in russian so this is not used anymore by the game.
Someone available to fix it ?

<!-- gh-comment-id:2652205104 --> @Hermiten commented on GitHub (Feb 11, 2025): I can reproduce it easely on the last nightly, it save the word "sync" or "async" in russian so this is not used anymore by the game. Someone available to fix it ?
Author
Owner

@Hermiten commented on GitHub (Feb 13, 2025):

@DanielSvoboda Sorry to ping you again, but do you know if it's fixed ?

<!-- gh-comment-id:2657376365 --> @Hermiten commented on GitHub (Feb 13, 2025): @DanielSvoboda Sorry to ping you again, but do you know if it's fixed ?
Author
Owner

@DanielSvoboda commented on GitHub (Feb 13, 2025):

@DanielSvoboda Sorry to ping you again, but do you know if it's fixed ?

I don't think it has been resolved, and the same problem should affect the 'full screen' option, I'm finishing configuring Crowdin, then I'll resolve these other problems involving language.
What should happen is to get the information based on the selected index and not according to the text

<!-- gh-comment-id:2657401928 --> @DanielSvoboda commented on GitHub (Feb 13, 2025): > [@DanielSvoboda](https://github.com/DanielSvoboda) Sorry to ping you again, but do you know if it's fixed ? I don't think it has been resolved, and the same problem should affect the 'full screen' option, I'm finishing configuring Crowdin, then I'll resolve these other problems involving language. What should happen is to get the information based on the selected index and not according to the text
Author
Owner

@Hermiten commented on GitHub (Feb 14, 2025):

Can you test again ? Somes fixes have been pushed

<!-- gh-comment-id:2658615706 --> @Hermiten commented on GitHub (Feb 14, 2025): Can you test again ? Somes fixes have been pushed
Author
Owner

@GHU7924 commented on GitHub (Feb 14, 2025):

@Hermiten @DanielSvoboda As for writing the type of log, it is now written in English. Fixed.
As for the other problem, it still exists. But I noticed an important thing: along with the type of screen, the type of magazine also changes when switching the language. At least I saw this when switching between English and Russian, and it may be present in other translations if these points are translated. I do not know if it has affected anything else, but so far I have noticed only these 2 changes.

I repeat the essence of the problem: if you have the screen type "True" and the log type "async", then after switching to another emulator language, these two parameters will be reset to "Borderless" and "sync", respectively.

I don't know if it makes sense to close this issue and open a new one, or fix everything in this one so as not to create a new one.

<!-- gh-comment-id:2658904913 --> @GHU7924 commented on GitHub (Feb 14, 2025): @Hermiten @DanielSvoboda As for writing the type of log, it is now written in English. Fixed. As for the other problem, it still exists. But I noticed an important thing: along with the type of screen, the type of magazine also changes when switching the language. At least I saw this when switching between English and Russian, and it may be present in other translations if these points are translated. I do not know if it has affected anything else, but so far I have noticed only these 2 changes. I repeat the essence of the problem: if you have the screen type "True" and the log type "async", then after switching to another emulator language, these two parameters will be reset to "Borderless" and "sync", respectively. I don't know if it makes sense to close this issue and open a new one, or fix everything in this one so as not to create a new one.
Author
Owner

@DanielSvoboda commented on GitHub (Feb 14, 2025):

I recently made changes so that the interface is translated, but what is written in the settings/log is in English. But I couldn't repeat what you said, could you write a step by step? I change the options, I change the language, but the choices I left remain. The only one that is reset is this one, but I don't see a problem in this case.
Image

<!-- gh-comment-id:2659479645 --> @DanielSvoboda commented on GitHub (Feb 14, 2025): I recently made changes so that the interface is translated, but what is written in the settings/log is in English. But I couldn't repeat what you said, could you write a step by step? I change the options, I change the language, but the choices I left remain. The only one that is reset is this one, but I don't see a problem in this case. ![Image](https://github.com/user-attachments/assets/4a5570e4-2ec3-439b-b5c7-78b99edfc8df)
Author
Owner

@GHU7924 commented on GitHub (Feb 14, 2025):

@DanielSvoboda
Fullscreen Mode:
Истинный = True
Без полей = Borderless

Log Type:
асинхронный = async
синхронный = sync

English to Russia

https://github.com/user-attachments/assets/d7bd5373-b2ba-4794-a507-3b4547a43ad7

Russia to English

https://github.com/user-attachments/assets/678ae1d8-a4b8-40ce-b6c8-07eec4395809

<!-- gh-comment-id:2659578174 --> @GHU7924 commented on GitHub (Feb 14, 2025): @DanielSvoboda Fullscreen Mode: Истинный = True Без полей = Borderless Log Type: асинхронный = async синхронный = sync English to Russia https://github.com/user-attachments/assets/d7bd5373-b2ba-4794-a507-3b4547a43ad7 Russia to English https://github.com/user-attachments/assets/678ae1d8-a4b8-40ce-b6c8-07eec4395809
Author
Owner

@DanielSvoboda commented on GitHub (Feb 14, 2025):

Thanks for the video, it seems to me to be a problem specific to the Russian language, maybe it's because of the different characters. Because when I change from English to Portuguese and vice versa it works correctly. It must be a problem reading the Russian character

<!-- gh-comment-id:2659602982 --> @DanielSvoboda commented on GitHub (Feb 14, 2025): Thanks for the video, it seems to me to be a problem specific to the Russian language, maybe it's because of the different characters. Because when I change from English to Portuguese and vice versa it works correctly. It must be a problem reading the Russian character
Author
Owner

@GHU7924 commented on GitHub (Feb 14, 2025):

I have not seen before that there is also a default tab reset. After you, I checked and I can confirm that this is indeed happening. Then it turns out that the reset occurs for 3 elements. They need to be fixed.

Thanks for the video, it seems to me to be a problem specific to the Russian language, maybe it's because of the different characters. Because when I change from English to Portuguese and vice versa it works correctly. It must be a problem reading the Russian character

When these items were not translated, they worked correctly. After they were transferred, a reset began to occur.
So you think the problem is that the emulator doesn't understand (or can't read) Cyrillic? Maybe it is. There are no problems with the Latin alphabet.

<!-- gh-comment-id:2659619242 --> @GHU7924 commented on GitHub (Feb 14, 2025): I have not seen before that there is also a default tab reset. After you, I checked and I can confirm that this is indeed happening. Then it turns out that the reset occurs for 3 elements. They need to be fixed. >Thanks for the video, it seems to me to be a problem specific to the Russian language, maybe it's because of the different characters. Because when I change from English to Portuguese and vice versa it works correctly. It must be a problem reading the Russian character When these items were not translated, they worked correctly. After they were transferred, a reset began to occur. So you think the problem is that the emulator doesn't understand (or can't read) Cyrillic? Maybe it is. There are no problems with the Latin alphabet.
Author
Owner

@DanielSvoboda commented on GitHub (Feb 14, 2025):

test this, it should solve it
I didn't make the correction for the 'tab' selection, I don't think it's necessary...
https://github.com/shadps4-emu/shadPS4/actions/runs/13333382857

<!-- gh-comment-id:2659784052 --> @DanielSvoboda commented on GitHub (Feb 14, 2025): test this, it should solve it I didn't make the correction for the 'tab' selection, I don't think it's necessary... https://github.com/shadps4-emu/shadPS4/actions/runs/13333382857
Author
Owner

@GHU7924 commented on GitHub (Feb 14, 2025):

@DanielSvoboda I can check it out later.

I didn't make the correction for the 'tab' selection, I don't think it's necessary...

I think it's still worth fixing, because we know about the problem. This will also preclude re-patching in the future if someone encounters this issue. If everything is working correctly, then you won't have to fix it))

In addition, if someone undertakes the implementation of issue 2418, it is also important that there is no reset of the choice.

<!-- gh-comment-id:2659823703 --> @GHU7924 commented on GitHub (Feb 14, 2025): @DanielSvoboda I can check it out later. >I didn't make the correction for the 'tab' selection, I don't think it's necessary... I think it's still worth fixing, because we know about the problem. This will also preclude re-patching in the future if someone encounters this issue. If everything is working correctly, then you won't have to fix it)) In addition, if someone undertakes the implementation of issue 2418, it is also important that there is no reset of the choice.
Author
Owner

@DanielSvoboda commented on GitHub (Feb 14, 2025):

added the fix for tab/chooseHomeTab
https://github.com/shadps4-emu/shadPS4/actions/runs/13334453247

<!-- gh-comment-id:2659918789 --> @DanielSvoboda commented on GitHub (Feb 14, 2025): added the fix for tab/chooseHomeTab https://github.com/shadps4-emu/shadPS4/actions/runs/13334453247
Author
Owner

@GHU7924 commented on GitHub (Feb 14, 2025):

@Hermiten You can close it. Fixed in 2433.

<!-- gh-comment-id:2659965361 --> @GHU7924 commented on GitHub (Feb 14, 2025): @Hermiten You can close it. Fixed in 2433.
Author
Owner

@Hermiten commented on GitHub (Feb 14, 2025):

When it will be merged

<!-- gh-comment-id:2659967307 --> @Hermiten commented on GitHub (Feb 14, 2025): When it will be merged
Author
Owner

@f1amy commented on GitHub (Feb 15, 2025):

Fixed in #2433. Thanks!

<!-- gh-comment-id:2660729875 --> @f1amy commented on GitHub (Feb 15, 2025): Fixed in #2433. Thanks!
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
starred/shadPS4#794
No description provided.