diff --git a/evaluator/builtins.go b/evaluator/builtins.go index 33da3ad..85f9e20 100644 --- a/evaluator/builtins.go +++ b/evaluator/builtins.go @@ -90,7 +90,7 @@ var builtins = map[string]*object.Builtin{ file, err := os.ReadFile(filename) if err != nil { - return &object.Error{Message: "Tumeshinwa kusoma file"} + return &object.Error{Message: "Tumeshindwa kusoma faili"} } return &object.File{Filename: filename, Content: string(file)} }, diff --git a/main.go b/main.go index 9b162cb..7cc9064 100644 --- a/main.go +++ b/main.go @@ -38,7 +38,7 @@ func main() { case "msaada", "-msaada", "--msaada", "help", "-help", "--help", "-h": fmt.Println(styles.HelpStyle.Italic(false).Render(fmt.Sprintf(`💡 Namna ya kutumia Nuru: %s: Kuanza programu ya Nuru - %s: Kurun file la Nuru + %s: Kuendesha faili la Nuru %s: Kusoma nyaraka za Nuru %s: Kufahamu toleo la Nuru `, @@ -60,13 +60,13 @@ func main() { if strings.HasSuffix(file, "nr") || strings.HasSuffix(file, ".sw") { contents, err := ioutil.ReadFile(file) if err != nil { - fmt.Println(styles.ErrorStyle.Render("Error: Nimeshindwa kusoma file: ", args[1])) + fmt.Println(styles.ErrorStyle.Render("Error: Nuru imeshindwa kusoma faili: ", args[1])) os.Exit(0) } repl.Read(string(contents)) } else { - fmt.Println(styles.ErrorStyle.Render("'"+file+"'", "sii file sahihi. Tumia file la '.nr' au '.sw'")) + fmt.Println(styles.ErrorStyle.Render("'"+file+"'", "sii faili sahihi. Tumia faili la '.nr' au '.sw'")) os.Exit(0) } @@ -74,7 +74,7 @@ func main() { fmt.Println(styles.ErrorStyle.Render("Error: Operesheni imeshindikana boss.")) fmt.Println(styles.HelpStyle.Italic(false).Render(fmt.Sprintf(`💡 Namna ya kutumia Nuru: %s: Kuanza programu ya Nuru - %s: Kurun file la Nuru + %s: Kuendesha faili la Nuru %s: Kusoma nyaraka za Nuru %s: Kufahamu toleo la Nuru `,