Fix issue with type of argument passed, simplify some code
This commit is contained in:
parent
c1ee222337
commit
02d8717f18
@ -268,9 +268,9 @@ second is the Runic equivalent.")
|
||||
|
||||
(defun conlanging--translate (text table)
|
||||
"Translate TEXT through its correspondance TABLE."
|
||||
(dolist (elem table)
|
||||
(setq text (replace-regexp-in-string (car elem) (cdr elem) text)))
|
||||
text)
|
||||
(let ((rune-table (cdr (assoc table conlanging-language-list))))
|
||||
(dolist (elem rune-table text)
|
||||
(setq text (replace-regexp-in-string (car elem) (cdr elem) text)))))
|
||||
|
||||
(defun conlanging--replace-region-by-translation (table)
|
||||
"Replace region with its translation through TABLE.
|
||||
|
Loading…
Reference in New Issue
Block a user