mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 14:55:00 +00:00
fix: Prevent "Reply in C." instruction for C/POSIX locales
This commit is contained in:
parent
f815f0377e
commit
efde8e867e
1 changed files with 6 additions and 3 deletions
|
@ -1049,6 +1049,9 @@ class Coder:
|
||||||
if not lang_code:
|
if not lang_code:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
if lang_code.upper() in ("C", "POSIX"):
|
||||||
|
return None
|
||||||
|
|
||||||
# Probably already a language name
|
# Probably already a language name
|
||||||
if (
|
if (
|
||||||
len(lang_code) > 3
|
len(lang_code) > 3
|
||||||
|
@ -1182,10 +1185,10 @@ class Coder:
|
||||||
)
|
)
|
||||||
rename_with_shell = ""
|
rename_with_shell = ""
|
||||||
|
|
||||||
if self.chat_language:
|
if user_lang: # user_lang is the result of self.get_user_language()
|
||||||
language = self.chat_language
|
language = user_lang
|
||||||
else:
|
else:
|
||||||
language = "the same language they are using"
|
language = "the same language they are using" # Default if no specific lang detected
|
||||||
|
|
||||||
if self.fence[0] == "`" * 4:
|
if self.fence[0] == "`" * 4:
|
||||||
quad_backtick_reminder = (
|
quad_backtick_reminder = (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue