@@ -659,12 +659,15 @@ private async Task AmplifyPrompt()
659659 case HttpStatusCode . PaymentRequired :
660660 {
661661 var dialog = DialogHelper . CreateMarkdownDialog (
662- $ "You have no Prompt Amplifier usage left this month. Usage resets on the 1st of each month. ({ Utilities . GetNumDaysTilBeginningOfNextMonth ( ) } days left)",
663- "Rate Limit Reached"
662+ string . Format (
663+ Resources . Label_PromptAmplifierRateLimitMessage ,
664+ Utilities . GetNumDaysTilBeginningOfNextMonth ( )
665+ ) ,
666+ Resources . Label_PromptAmplifierRateLimitTitle
664667 ) ;
665- dialog . PrimaryButtonText = "Upgrade" ;
668+ dialog . PrimaryButtonText = Resources . Action_Upgrade ;
666669 dialog . PrimaryButtonCommand = new RelayCommand ( ( ) =>
667- ProcessRunner . OpenUrl ( "https://patreon.com/join/StabilityMatrix" )
670+ ProcessRunner . OpenUrl ( Assets . MembershipUrl )
668671 ) ;
669672 dialog . IsPrimaryButtonEnabled = true ;
670673 dialog . DefaultButton = ContentDialogButton . Primary ;
@@ -674,8 +677,8 @@ private async Task AmplifyPrompt()
674677 }
675678 case HttpStatusCode . BadRequest :
676679 notificationService . Show (
677- "Moderation Error" ,
678- "Your prompt was flagged by the moderation system. Please try again with a different prompt." ,
680+ Resources . Label_ModerationError ,
681+ Resources . Label_PromptFlaggedMessage ,
679682 NotificationType . Error
680683 ) ;
681684 break ;
@@ -687,16 +690,16 @@ private async Task AmplifyPrompt()
687690 else
688691 {
689692 notificationService . Show (
690- "Prompt Amplifier Error" ,
691- "You need to be logged in to use this feature." ,
693+ Resources . Label_PromptAmplifierError ,
694+ Resources . Label_LoginRequiredMessage ,
692695 NotificationType . Error
693696 ) ;
694697 }
695698 break ;
696699 default :
697700 notificationService . Show (
698- "Prompt Amplifier Error" ,
699- "There was an error processing your request." ,
701+ Resources . Label_PromptAmplifierError ,
702+ Resources . Label_RequestErrorMessage ,
700703 NotificationType . Error
701704 ) ;
702705 break ;
@@ -705,7 +708,7 @@ private async Task AmplifyPrompt()
705708 catch ( Exception e )
706709 {
707710 logger . LogError ( e , "Error amplifying prompt" ) ;
708- notificationService . Show ( "Prompt Amplifier Error" , e . Message , NotificationType . Error ) ;
711+ notificationService . Show ( Resources . Label_PromptAmplifierError , e . Message , NotificationType . Error ) ;
709712 }
710713 }
711714
0 commit comments