Enchantments: say which callers have no language
full_name reads the process's language, which the server thread shares with its window; only a process with no language loaded (a dedicated server, the probes) keeps the English names. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -337,8 +337,8 @@ impl Enchantments {
|
|||||||
let language = crate::lang::current();
|
let language = crate::lang::current();
|
||||||
self.full_name_in(language.as_deref(), id, level)
|
self.full_name_in(language.as_deref(), id, level)
|
||||||
}
|
}
|
||||||
/// `full_name` against `language`; `None` keeps the English names loaded
|
/// `full_name` against `language`; `None` (no language loaded: a
|
||||||
/// above, which is what the server thread and the probes see.
|
/// dedicated server, the probes) keeps the English names loaded above.
|
||||||
pub fn full_name_in(
|
pub fn full_name_in(
|
||||||
&self,
|
&self,
|
||||||
language: Option<&crate::lang::Language>,
|
language: Option<&crate::lang::Language>,
|
||||||
|
|||||||
Reference in New Issue
Block a user