Skip to content

Commit 28ffb2a

Browse files
authored
Fix localization for eye gain logs
Correct locale key usage and replace hardcoded eye gain log messages.
1 parent 7464473 commit 28ffb2a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

VRCFTPicoModule/VRCFTPicoModule.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ private void LoadEyeGain()
169169
{
170170
if (!File.Exists(GainFilePath))
171171
{
172-
Logger.LogDebug("eye_gain.txt not found, using default values");
172+
Logger.LogInformation(T("eye-gain-not-found"));
173173
return;
174174
}
175175

@@ -183,16 +183,16 @@ private void LoadEyeGain()
183183
_eyeGainX = x;
184184
_eyeGainY = y;
185185

186-
Logger.LogInformation($"Eye gain loaded: X={_eyeGainX}, Y={_eyeGainY}");
186+
Logger.LogInformation(T("eye-gain-loaded"),_eyeGainX,_eyeGainY);
187187
}
188188
else
189189
{
190-
Logger.LogWarning($"Invalid eye_gain.txt format: \"{text}\"");
190+
Logger.LogWarning(T("eye-gain-invalid"),text);
191191
}
192192
}
193193
catch (Exception ex)
194194
{
195-
Logger.LogError(ex, "Failed to read eye_gain.txt");
195+
Logger.LogError(ex, T("eye-gain-failed"));
196196
}
197197
}
198198
}

0 commit comments

Comments
 (0)