Init l10n-hash
This commit is contained in:
parent
d919dcc85a
commit
390948b572
1 changed files with 3 additions and 2 deletions
|
@ -70,8 +70,9 @@
|
||||||
(loop for (lang translation) on translations by #'cddr
|
(loop for (lang translation) on translations by #'cddr
|
||||||
do (setf (gethash lang (gethash key *l10n-hash*)) translation)))
|
do (setf (gethash lang (gethash key *l10n-hash*)) translation)))
|
||||||
|
|
||||||
(dolist (entry *l10n*)
|
(when (zerop (hash-table-count *l10n-hash*))
|
||||||
(add-translation (first entry) (rest entry)))
|
(dolist (entry *l10n*)
|
||||||
|
(add-translation (first entry) (first (rest entry)))))
|
||||||
|
|
||||||
(defun get-translation (key lang)
|
(defun get-translation (key lang)
|
||||||
"Fetch a translation for KEY in the language LANG."
|
"Fetch a translation for KEY in the language LANG."
|
||||||
|
|
Loading…
Add table
Reference in a new issue