Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Babel - Persistent Language Hint for non-primary language #1324

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fixup previous
Co-Authored-By: jonpas <jonpas33@gmail.com>
mrschick and jonpas committed Jul 3, 2024
commit 3a11ebeee5ada8f2a9034d6fb955f1d2047c1113
2 changes: 1 addition & 1 deletion addons/sys_core/fnc_cycleLanguage.sqf
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ if (_numSpokenLanguages > 1) then {

// Set hint duration to infinite when you're not speaking your first language (setting dependent)
private _hintTime = 1;
if (EGVAR(sys_list,LanguageHintPersistence) && {_nextId > 0}) then {
if (EGVAR(sys_list,LanguageHintPersist) && {_nextId > 0}) then {
_hintTime = -1;
};

2 changes: 1 addition & 1 deletion addons/sys_list/initSettings.inc.sqf
Original file line number Diff line number Diff line change
@@ -70,7 +70,7 @@ private _fonts = ["EtelkaMonospacePro", "EtelkaMonospaceProBold", "LCD14", "Puri
[
QGVAR(LanguageHintPersist),
"CHECKBOX",
[localize LSTRING(LanguageHintPersistence_DisplayName), localize LSTRING(LanguageHintPersistence_Description)],
[localize LSTRING(LanguageHintPersist_DisplayName), localize LSTRING(LanguageHintPersist_Description)],
ELSTRING(sys_core,CategoryUI),
true
] call CBA_fnc_addSetting;
6 changes: 3 additions & 3 deletions addons/sys_list/stringtable.xml
Original file line number Diff line number Diff line change
@@ -96,12 +96,12 @@
<Portuguese>Cor: Alternar Idiomas do Babel</Portuguese>
<Turkish>Babel Dil Değiştirme Rengi</Turkish>
</Key>
<Key ID="STR_ACRE_sys_list_LanguageHintPersistence_DisplayName">
<English>Persistent Babel Language Indicator</English>
<Key ID="STR_ACRE_sys_list_LanguageHintPersist_DisplayName">
<English>Persist Babel Language Indicator</English>
<German>Babel Sprachanzeige bleibt sichtbar</German>
<Italian>Indicatore di lingua persistente</Italian>
</Key>
<Key ID="STR_ACRE_sys_list_LanguageHintPersistence_Description">
<Key ID="STR_ACRE_sys_list_LanguageHintPersist_Description">
<English>Prevent the Babel Language Indicator in the bottom right from fading out if a language other than the "main language" (the first assigned spoken language) is selected.</English>
<German>Verhindert, wenn eingeschaltet, dass die Babel Sprachanzeige unten-rechts verschwindet während eine andere Sprache als die "Muttersprache" (die erste zugewiesene Sprache) gesprochen wird.</German>
<Italian>Se attivato, l'indicatore della lingua selezionata in basso a destra non scomparirà mentre si parla una lingua diversa da quella "madre" (la prima lingua assegnata).</Italian>