Skip to content

Commit

Permalink
[FIX] Disabled settings property description
Browse files Browse the repository at this point in the history
  • Loading branch information
gravit0 committed Aug 25, 2024
1 parent 35ec0c8 commit 9390077
Show file tree
Hide file tree
Showing 11 changed files with 9 additions and 25 deletions.
1 change: 0 additions & 1 deletion compat/lang/runtime_be.properties
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ runtime.scenes.settings.properties.prismvsync.name=VSync
runtime.scenes.settings.properties.prismvsync.description=Уключае вертыкальную сінхранізацыю пры паказе інтэрфейсу Лаўнчэра
runtime.scenes.settings.properties.debugallclients.name=Рэжым адладкі
runtime.scenes.settings.properties.debugallclients.description=Уключыць рэжым адладкі для ўсіх кліентаў гульні пры запуску
runtime.scenes.settings.properties.globalsettings.disabled=Для змянення гэтага параметру неабходна адключыць яго ў глабальных наладах
runtime.scenes.settings.properties.debug.name=Debug-рэжым
runtime.scenes.settings.properties.debug.description=Уключыць рэжым адладкі пры запуску гульнявога кліента
runtime.scenes.settings.properties.fullscreen.name=Поўны экран
Expand Down
1 change: 0 additions & 1 deletion compat/lang/runtime_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ runtime.scenes.settings.properties.prismvsync.name=VSync
runtime.scenes.settings.properties.prismvsync.description=Enables vertical sync when showing the Launcher interface
runtime.scenes.settings.properties.debugallclients.name=Debug Mode
runtime.scenes.settings.properties.debugallclients.description=Enable debug mode for all game clients upon startup
runtime.scenes.settings.properties.globalsettings.disabled=To modify this parameter, it must be disabled in the global settings
runtime.scenes.settings.properties.debug.name=Debug
runtime.scenes.settings.properties.debug.description=Enable debug mode when starting the game client
runtime.scenes.settings.properties.fullscreen.name=Fullscreen
Expand Down
1 change: 0 additions & 1 deletion compat/lang/runtime_pl.properties
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ runtime.scenes.settings.properties.prismvsync.name=VSync
runtime.scenes.settings.properties.prismvsync.description=Włącza synchronizację pionową podczas wyświetlania interfejsu programu uruchamiającego
runtime.scenes.settings.properties.debugallclients.name=Tryb debugowania
runtime.scenes.settings.properties.debugallclients.description=Włącz tryb debugowania dla wszystkich klientów gry podczas uruchamiania
runtime.scenes.settings.properties.globalsettings.disabled=Aby zmienić ten parametr, należy wyłączyć go w ustawieniach globalnych
runtime.scenes.settings.properties.debug.name=Tryb debugowania
runtime.scenes.settings.properties.debug.description=Włącza tryb debugowania podczas uruchamiania klienta gry
runtime.scenes.settings.properties.fullscreen.name=Pełny ekran
Expand Down
1 change: 0 additions & 1 deletion compat/lang/runtime_ru.properties
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ runtime.scenes.settings.properties.prismvsync.name=VSync
runtime.scenes.settings.properties.prismvsync.description=Включает вертикальную синхронизацию при показе интерфейса Лаунчера
runtime.scenes.settings.properties.debugallclients.name=Debug-режим
runtime.scenes.settings.properties.debugallclients.description=Включить режим отладки для всех клиентов игры при запуске
runtime.scenes.settings.properties.globalsettings.disabled=Для изменения этого параметра, необходимо выключить его в глобальных настройках
runtime.scenes.settings.properties.debug.name=Debug-режим
runtime.scenes.settings.properties.debug.description=Включить режим отладки при запуске игрового клиента
runtime.scenes.settings.properties.fullscreen.name=Полный экран
Expand Down
1 change: 0 additions & 1 deletion compat/lang/runtime_uk.properties
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ runtime.scenes.settings.properties.prismvsync.name=VSync
runtime.scenes.settings.properties.prismvsync.description=Включає вертикальну синхронізацію під час показу інтерфейсу Лаунчера
runtime.scenes.settings.properties.debugallclients.name=Режим відладки
runtime.scenes.settings.properties.debugallclients.description=Увімкнути режим відладки для всіх клієнтів гри під час запуску
runtime.scenes.settings.properties.globalsettings.disabled=Щоб змінити цей параметр, необхідно вимкнути його в глобальних налаштуваннях
runtime.scenes.settings.properties.debug.name=Debug-режим
runtime.scenes.settings.properties.debug.description=Увімкнути режим відладки при запуску ігрового клієнта
runtime.scenes.settings.properties.fullscreen.name=Повний екран
Expand Down
5 changes: 2 additions & 3 deletions runtime/runtime_be.properties
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,8 @@ runtime.scenes.settings.ram={0} \u041c\u0411
# Properties #
runtime.scenes.settings.properties.prismvsync.name=VSync
runtime.scenes.settings.properties.prismvsync.description=\u0423\u043a\u043b\u044e\u0447\u0430\u0435 \u0432\u0435\u0440\u0442\u044b\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u0441\u0456\u043d\u0445\u0440\u0430\u043d\u0456\u0437\u0430\u0446\u044b\u044e \u043f\u0440\u044b \u043f\u0430\u043a\u0430\u0437\u0435 \u0456\u043d\u0442\u044d\u0440\u0444\u0435\u0439\u0441\u0443 \u041b\u0430\u045e\u043d\u0447\u044d\u0440\u0430
runtime.scenes.settings.properties.debugallclients.name=\u0420\u044D\u0436\u044B\u043C \u0430\u0434\u043B\u0430\u0434\u043A\u0456
runtime.scenes.settings.properties.debugallclients.description=\u0423\u043A\u043B\u044E\u0447\u044B\u0446\u044C \u0440\u044D\u0436\u044B\u043C \u0430\u0434\u043B\u0430\u0434\u043A\u0456 \u0434\u043B\u044F \u045E\u0441\u0456\u0445 \u043A\u043B\u0456\u0435\u043D\u0442\u0430\u045E \u0433\u0443\u043B\u044C\u043D\u0456 \u043F\u0440\u044B \u0437\u0430\u043F\u0443\u0441\u043A\u0443
runtime.scenes.settings.properties.globalsettings.disabled=\u0414\u043B\u044F \u0437\u043C\u044F\u043D\u0435\u043D\u043D\u044F \u0433\u044D\u0442\u0430\u0433\u0430 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0443 \u043D\u0435\u0430\u0431\u0445\u043E\u0434\u043D\u0430 \u0430\u0434\u043A\u043B\u044E\u0447\u044B\u0446\u044C \u044F\u0433\u043E \u045E \u0433\u043B\u0430\u0431\u0430\u043B\u044C\u043D\u044B\u0445 \u043D\u0430\u043B\u0430\u0434\u0430\u0445
runtime.scenes.settings.properties.debugallclients.name=\u0420\u044d\u0436\u044b\u043c \u0430\u0434\u043b\u0430\u0434\u043a\u0456
runtime.scenes.settings.properties.debugallclients.description=\u0423\u043a\u043b\u044e\u0447\u044b\u0446\u044c \u0440\u044d\u0436\u044b\u043c \u0430\u0434\u043b\u0430\u0434\u043a\u0456 \u0434\u043b\u044f \u045e\u0441\u0456\u0445 \u043a\u043b\u0456\u0435\u043d\u0442\u0430\u045e \u0433\u0443\u043b\u044c\u043d\u0456 \u043f\u0440\u044b \u0437\u0430\u043f\u0443\u0441\u043a\u0443
runtime.scenes.settings.properties.debug.name=Debug-\u0440\u044d\u0436\u044b\u043c
runtime.scenes.settings.properties.debug.description=\u0423\u043a\u043b\u044e\u0447\u044b\u0446\u044c \u0440\u044d\u0436\u044b\u043c \u0430\u0434\u043b\u0430\u0434\u043a\u0456 \u043f\u0440\u044b \u0437\u0430\u043f\u0443\u0441\u043a\u0443 \u0433\u0443\u043b\u044c\u043d\u044f\u0432\u043e\u0433\u0430 \u043a\u043b\u0456\u0435\u043d\u0442\u0430
runtime.scenes.settings.properties.fullscreen.name=\u041f\u043e\u045e\u043d\u044b \u044d\u043a\u0440\u0430\u043d
Expand Down
1 change: 0 additions & 1 deletion runtime/runtime_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ runtime.scenes.settings.properties.prismvsync.name=VSync
runtime.scenes.settings.properties.prismvsync.description=Enables vertical sync when showing the Launcher interface
runtime.scenes.settings.properties.debugallclients.name=Debug Mode
runtime.scenes.settings.properties.debugallclients.description=Enable debug mode for all game clients upon startup
runtime.scenes.settings.properties.globalsettings.disabled=To modify this parameter, it must be disabled in the global settings
runtime.scenes.settings.properties.debug.name=Debug
runtime.scenes.settings.properties.debug.description=Enable debug mode when starting the game client
runtime.scenes.settings.properties.fullscreen.name=Fullscreen
Expand Down
3 changes: 1 addition & 2 deletions runtime/runtime_pl.properties
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,7 @@ runtime.scenes.settings.ram={0} MB
runtime.scenes.settings.properties.prismvsync.name=VSync
runtime.scenes.settings.properties.prismvsync.description=W\u0142\u0105cza synchronizacj\u0119 pionow\u0105 podczas wy\u015bwietlania interfejsu programu uruchamiaj\u0105cego
runtime.scenes.settings.properties.debugallclients.name=Tryb debugowania
runtime.scenes.settings.properties.debugallclients.description=W\u0142\u0105cz tryb debugowania dla wszystkich klient\u00F3w gry podczas uruchamiania
runtime.scenes.settings.properties.globalsettings.disabled=Aby zmieni\u0107 ten parametr, nale\u017Cy wy\u0142\u0105czy\u0107 go w ustawieniach globalnych
runtime.scenes.settings.properties.debugallclients.description=W\u0142\u0105cz tryb debugowania dla wszystkich klient\u00f3w gry podczas uruchamiania
runtime.scenes.settings.properties.debug.name=Tryb debugowania
runtime.scenes.settings.properties.debug.description=W\u0142\u0105cza tryb debugowania podczas uruchamiania klienta gry
runtime.scenes.settings.properties.fullscreen.name=Pe\u0142ny ekran
Expand Down
5 changes: 2 additions & 3 deletions runtime/runtime_ru.properties
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,8 @@ runtime.scenes.settings.ram={0} \u041c\u0411
# Properties #
runtime.scenes.settings.properties.prismvsync.name=VSync
runtime.scenes.settings.properties.prismvsync.description=\u0412\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044e \u043f\u0440\u0438 \u043f\u043e\u043a\u0430\u0437\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u041b\u0430\u0443\u043d\u0447\u0435\u0440\u0430
runtime.scenes.settings.properties.debugallclients.name=Debug-\u0440\u0435\u0436\u0438\u043C
runtime.scenes.settings.properties.debugallclients.description=\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u043E\u0442\u043B\u0430\u0434\u043A\u0438 \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u0432 \u0438\u0433\u0440\u044B \u043F\u0440\u0438 \u0437\u0430\u043F\u0443\u0441\u043A\u0435
runtime.scenes.settings.properties.globalsettings.disabled=\u0414\u043B\u044F \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u044D\u0442\u043E\u0433\u043E \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430, \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0435\u0433\u043E \u0432 \u0433\u043B\u043E\u0431\u0430\u043B\u044C\u043D\u044B\u0445 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430\u0445
runtime.scenes.settings.properties.debugallclients.name=Debug-\u0440\u0435\u0436\u0438\u043c
runtime.scenes.settings.properties.debugallclients.description=\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0440\u0435\u0436\u0438\u043c \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0438\u0433\u0440\u044b \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435
runtime.scenes.settings.properties.debug.name=Debug-\u0440\u0435\u0436\u0438\u043c
runtime.scenes.settings.properties.debug.description=\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0440\u0435\u0436\u0438\u043c \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0438\u0433\u0440\u043e\u0432\u043e\u0433\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0430
runtime.scenes.settings.properties.fullscreen.name=\u041f\u043e\u043b\u043d\u044b\u0439 \u044d\u043a\u0440\u0430\u043d
Expand Down
5 changes: 2 additions & 3 deletions runtime/runtime_uk.properties
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,8 @@ runtime.scenes.settings.ram={0} \u041c\u0411
# Properties #
runtime.scenes.settings.properties.prismvsync.name=VSync
runtime.scenes.settings.properties.prismvsync.description=\u0412\u043a\u043b\u044e\u0447\u0430\u0454 \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u0443 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0456\u0437\u0430\u0446\u0456\u044e \u043f\u0456\u0434 \u0447\u0430\u0441 \u043f\u043e\u043a\u0430\u0437\u0443 \u0456\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0443 \u041b\u0430\u0443\u043d\u0447\u0435\u0440\u0430
runtime.scenes.settings.properties.debugallclients.name=\u0420\u0435\u0436\u0438\u043C \u0432\u0456\u0434\u043B\u0430\u0434\u043A\u0438
runtime.scenes.settings.properties.debugallclients.description=\u0423\u0432\u0456\u043C\u043A\u043D\u0443\u0442\u0438 \u0440\u0435\u0436\u0438\u043C \u0432\u0456\u0434\u043B\u0430\u0434\u043A\u0438 \u0434\u043B\u044F \u0432\u0441\u0456\u0445 \u043A\u043B\u0456\u0454\u043D\u0442\u0456\u0432 \u0433\u0440\u0438 \u043F\u0456\u0434 \u0447\u0430\u0441 \u0437\u0430\u043F\u0443\u0441\u043A\u0443
runtime.scenes.settings.properties.globalsettings.disabled=\u0429\u043E\u0431 \u0437\u043C\u0456\u043D\u0438\u0442\u0438 \u0446\u0435\u0439 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440, \u043D\u0435\u043E\u0431\u0445\u0456\u0434\u043D\u043E \u0432\u0438\u043C\u043A\u043D\u0443\u0442\u0438 \u0439\u043E\u0433\u043E \u0432 \u0433\u043B\u043E\u0431\u0430\u043B\u044C\u043D\u0438\u0445 \u043D\u0430\u043B\u0430\u0448\u0442\u0443\u0432\u0430\u043D\u043D\u044F\u0445
runtime.scenes.settings.properties.debugallclients.name=\u0420\u0435\u0436\u0438\u043c \u0432\u0456\u0434\u043b\u0430\u0434\u043a\u0438
runtime.scenes.settings.properties.debugallclients.description=\u0423\u0432\u0456\u043c\u043a\u043d\u0443\u0442\u0438 \u0440\u0435\u0436\u0438\u043c \u0432\u0456\u0434\u043b\u0430\u0434\u043a\u0438 \u0434\u043b\u044f \u0432\u0441\u0456\u0445 \u043a\u043b\u0456\u0454\u043d\u0442\u0456\u0432 \u0433\u0440\u0438 \u043f\u0456\u0434 \u0447\u0430\u0441 \u0437\u0430\u043f\u0443\u0441\u043a\u0443
runtime.scenes.settings.properties.debug.name=Debug-\u0440\u0435\u0436\u0438\u043c
runtime.scenes.settings.properties.debug.description=\u0423\u0432\u0456\u043c\u043a\u043d\u0443\u0442\u0438 \u0440\u0435\u0436\u0438\u043c \u0432\u0456\u0434\u043b\u0430\u0434\u043a\u0438 \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0443 \u0456\u0433\u0440\u043e\u0432\u043e\u0433\u043e \u043a\u043b\u0456\u0454\u043d\u0442\u0430
runtime.scenes.settings.properties.fullscreen.name=\u041f\u043e\u0432\u043d\u0438\u0439 \u0435\u043a\u0440\u0430\u043d
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,8 @@ public void reset() {

public void add(String languageName, boolean value, Consumer<Boolean> onChanged, boolean disabled) {
String nameKey = "runtime.scenes.settings.properties.%s.name".formatted(languageName.toLowerCase());
String descriptionKey;
if(disabled) {
descriptionKey = "runtime.scenes.settings.properties.%s.disabled".formatted(
languageName.toLowerCase());
} else {
descriptionKey = "runtime.scenes.settings.properties.%s.description".formatted(
languageName.toLowerCase());
}
String descriptionKey = "runtime.scenes.settings.properties.%s.description".formatted(
languageName.toLowerCase());
add(application.getTranslation(nameKey, languageName), application.getTranslation(descriptionKey, languageName),
value, onChanged, disabled);
}
Expand Down

0 comments on commit 9390077

Please sign in to comment.