GP-1772: Corrected spelling of the word 'language' throughout ghidra.

This commit is contained in:
ghidorahrex 2022-02-28 10:18:13 -05:00
parent e267c8b8ae
commit 5c9977bd34
8 changed files with 12 additions and 12 deletions

View file

@ -245,7 +245,7 @@ public class WatchRow {
Language newLanguage = trace.getBaseLanguage();
if (language != newLanguage) {
if (!(newLanguage instanceof SleighLanguage)) {
error = new RuntimeException("Not a sleigh-based langauge");
error = new RuntimeException("Not a sleigh-based language");
return;
}
language = (SleighLanguage) newLanguage;

View file

@ -37,7 +37,7 @@ public class DBTraceData extends AbstractDBTraceCodeUnit<DBTraceData>
implements DBTraceDefinedDataAdapter {
private static final String TABLE_NAME = "Data";
static final String LANGUAGE_COLUMN_NAME = "Langauge";
static final String LANGUAGE_COLUMN_NAME = "Language";
static final String DATATYPE_COLUMN_NAME = "DataType";
@DBAnnotatedColumn(LANGUAGE_COLUMN_NAME)
@ -75,7 +75,7 @@ public class DBTraceData extends AbstractDBTraceCodeUnit<DBTraceData>
}
language = space.manager.languageManager.getLanguageByKey(langKey);
if (language == null) {
throw new IOException("Data table is corrupt. Missing langauge: " + langKey);
throw new IOException("Data table is corrupt. Missing language: " + langKey);
}
dataType = space.dataTypeManager.getDataType(dataTypeID);
if (dataType == null) {

View file

@ -55,7 +55,7 @@ public class DBTraceLanguageManagerTest extends AbstractGhidraHeadlessIntegratio
}
@Test
public void testAddGuestLangauge() throws LanguageNotFoundException {
public void testAddGuestLanguage() throws LanguageNotFoundException {
try (UndoableTransaction tid = b.startTransaction()) {
assertEquals(0, manager.languageStore.getRecordCount());
manager.addGuestLanguage(b.getLanguage("x86:LE:32:default"));

View file

@ -21,7 +21,7 @@ import ghidra.util.Msg;
import java.io.IOException;
public class ReloadSleighLangauge extends GhidraScript {
public class ReloadSleighLanguage extends GhidraScript {
@Override
public void run() throws Exception {

View file

@ -272,7 +272,7 @@ class ProgramUserDataDB extends DomainObjectAdapterDB implements ProgramUserData
/**
* Language specified by languageName was not found. Check for
* valid language translation/migration. Old langauge version specified by
* valid language translation/migration. Old language version specified by
* languageVersion.
* @param openMode one of:
* READ_ONLY: the original database will not be modified

View file

@ -1711,10 +1711,10 @@ public class Disassembler implements DisassemblerConflictHandler {
private static class InstructionContext implements ProcessorContext {
private RegisterValue contextValue;
private Language langauge;
private Language language;
InstructionContext(Language language, RegisterValue contextValue) {
this.langauge = language;
this.language = language;
this.contextValue = contextValue;
}
@ -1729,12 +1729,12 @@ public class Disassembler implements DisassemblerConflictHandler {
@Override
public List<Register> getRegisters() {
return langauge.getRegisters();
return language.getRegisters();
}
@Override
public Register getRegister(String name) {
return langauge.getRegister(name);
return language.getRegister(name);
}
@Override

View file

@ -167,7 +167,7 @@ public class RegisterBuilder {
}
/**
* Rename a register. This allows generic register names declared within the langauge
* Rename a register. This allows generic register names declared within the language
* specification (*.slaspec) to be renamed for a processor variant specification (*.pspec).
* @param oldName original register name
* @param newName new register name

View file

@ -214,7 +214,7 @@ public class OldLanguageFactory {
LanguageService languageService = DefaultLanguageService.getLanguageService();
if (lang instanceof OldLanguage) {
throw new LanguageNotFoundException(
"Can't create an Old Langauge file from an OldLanguage");
"Can't create an Old Language file from an OldLanguage");
}
LanguageDescription languageDescription =
languageService.getLanguageDescription(lang.getLanguageID());