Check if term is available in l10n
This commit is contained in:
parent
642324ad25
commit
d6e26417bc
1 changed files with 4 additions and 1 deletions
|
@ -97,4 +97,7 @@
|
|||
KEY: The key to look up the localization for.
|
||||
|
||||
LANG: The language to get the localized string for."
|
||||
(cadr (member lang (cadr (assoc key alist :test #'string=)) :test #'string=)))
|
||||
(let ((term (cadr (assoc key alist :test #'string=))))
|
||||
(if term
|
||||
(cadr (member lang term :test #'string=))
|
||||
"Translation not found")))
|
||||
|
|
Loading…
Add table
Reference in a new issue