Skip to content

Commit 01bb34d

Browse files
committed
imp - Localize the generic progress text
--- The default progress bar text should be localized. --- Type: imp Breaking: No Doc Required: No Backport Required: No AI Assisted: No Part: 1/1
1 parent 4cb68eb commit 01bb34d

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

public/Terminaux/Writer/CyclicWriters/Simple/ProgressBar.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
using Terminaux.Writer.CyclicWriters.Renderer.Markup;
2828
using Terminaux.Writer.CyclicWriters.Renderer.Tools;
2929
using Textify.General;
30+
using Terminaux.Base;
3031

3132
namespace Terminaux.Writer.CyclicWriters.Simple
3233
{
@@ -287,8 +288,10 @@ public override string Render()
287288
progressMarquee.UseColors = UseColors;
288289
progressMarquee.ForegroundColor = ProgressTextColor;
289290
progressMarquee.BackgroundColor = ProgressBackgroundColor;
290-
if (string.IsNullOrEmpty(progressMarquee.text))
291-
progressMarquee.text = "Please wait while the current operation is being processed...";
291+
292+
// TODO: T_WRITER_CYCLICWRITERS_SIMPLE_PROGRESSBAR_GENERIC -> Please wait while the current operation is being processed...
293+
if (string.IsNullOrEmpty(Text))
294+
progressMarquee.text = LanguageTools.GetLocalized("T_WRITER_CYCLICWRITERS_SIMPLE_PROGRESSBAR_GENERIC");
292295
string marqueeText = progressMarquee.Render();
293296
int marqueeWidth = ConsoleChar.EstimateCellWidth(marqueeText);
294297
int spaces = Width - (spinnerWidth + progressWidth + percentageWidth + marqueeWidth);

0 commit comments

Comments
 (0)