Skip to content

Commit

Permalink
moved some string consts to TooltipLabels
Browse files Browse the repository at this point in the history
  • Loading branch information
lcarrere committed Dec 25, 2024
1 parent 3f58400 commit ae0b67d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
namespace LMKit.Maestro.UI
{
internal static class TooltipLabels
internal static class TooltipLabels //todo: rename to Locales.
{
//todo: Implement support for multiple languages, including translation management and locale detection.
public const string RegenerateResponse = "Regenerate response";
public const string PreviousGeneratedResponse = "Previous generated response";
public const string NextGeneratedResponse = "Next generated response";
Expand All @@ -27,5 +28,8 @@ internal static class TooltipLabels
public const string ChatModelOptimized = "This model is optimized for conversational tasks";
public const string MathModelOptimized = "This model is optimized for solving mathematical problems";
public const string DeleteLocalModel = "Delete the model file from local storage";
public const string DisplaySlowPerformingModels = "Display slow-performing models";
public const string NoModelYetAvailable = "It looks like you don't have any model yet.";
public const string ModelFilesWillAppearHere = "Model files added to your model folder will appear here.";
}
}
8 changes: 5 additions & 3 deletions LM-Kit-Maestro/UI/Pages/ModelsPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@
VerticalOptions="Center"
HorizontalOptions="Start" />
<Label
Text="Display slow-performing models"
Text="{x:Static ui:TooltipLabels.DisplaySlowPerformingModels}"
VerticalOptions="Center"
HorizontalOptions="Start"
Margin="0,0,0,0" />
Expand All @@ -463,8 +463,10 @@
<Setter Property="EmptyView">
<Setter.Value>
<VerticalStackLayout VerticalOptions="End" HorizontalOptions="Center" Spacing="8">
<Label HorizontalTextAlignment="Center" Text="It looks like you don't have any model yet."/>
<Label HorizontalTextAlignment="Center" Text="Model files added to your model folder will appear here."/>
<Label HorizontalTextAlignment="Center"
Text="{x:Static ui:TooltipLabels.NoModelYetAvailable}"/>
<Label HorizontalTextAlignment="Center"
Text="{x:Static ui:TooltipLabels.ModelFilesWillAppearHere}"/>
</VerticalStackLayout>

</Setter.Value>
Expand Down

0 comments on commit ae0b67d

Please sign in to comment.