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)
|
(defun conlanging--translate (text table)
|
||||||
"Translate TEXT through its correspondance TABLE."
|
"Translate TEXT through its correspondance TABLE."
|
||||||
(dolist (elem table)
|
(let ((rune-table (cdr (assoc table conlanging-language-list))))
|
||||||
(setq text (replace-regexp-in-string (car elem) (cdr elem) text)))
|
(dolist (elem rune-table text)
|
||||||
text)
|
(setq text (replace-regexp-in-string (car elem) (cdr elem) text)))))
|
||||||
|
|
||||||
(defun conlanging--replace-region-by-translation (table)
|
(defun conlanging--replace-region-by-translation (table)
|
||||||
"Replace region with its translation through TABLE.
|
"Replace region with its translation through TABLE.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user