@@ -22,7 +22,7 @@ abstract class LLMClientService<T : LLMClientConfiguration>(private val cs: Coro
2222
2323 fun generateCommitMessage (client : T , prompt : String , project : Project , commitMessage : CommitMessage ) {
2424 cs.launch(Dispatchers .Default ) {
25- withBackgroundProgress(project, " Generating commit " ) {
25+ withBackgroundProgress(project, message( " action.background " ) ) {
2626 sendRequest(client, prompt, onSuccess = {
2727 withContext(Dispatchers .EDT ) {
2828 commitMessage.setCommitMessage(it)
@@ -39,7 +39,7 @@ abstract class LLMClientService<T : LLMClientConfiguration>(private val cs: Coro
3939
4040 fun verifyConfiguration (client : T , label : JBLabel ) {
4141 // TODO @Blarc: Can you make this better? with notifications?
42- label.text = " Verifying configuration... "
42+ label.text = message( " settings.verify.running " )
4343 cs.launch(Dispatchers .Default ) {
4444 sendRequest(client, " test" , onSuccess = {
4545 // This can't be called from EDT thread, because dialog blocks the EDT thread
@@ -68,9 +68,9 @@ abstract class LLMClientService<T : LLMClientConfiguration>(private val cs: Coro
6868 }
6969 onSuccess(response)
7070 } catch (e: IllegalArgumentException ) {
71- onError(" Invalid configuration: ${ e.message ? : " unknown" } . " )
71+ onError(message( " settings.verify.invalid " , e.message ? : message( " unknown-error " )) )
7272 } catch (e: Exception ) {
73- onError(e.message ? : " Unknown error. " )
73+ onError(e.message ? : message( " unknown- error" ) )
7474 }
7575 }
7676}
0 commit comments