i18n: fix embedded translated strings

This commit is contained in:
Christopher Lam 2019-03-12 15:32:20 +08:00
parent d6f4831a50
commit 4ee0c3ef46
2 changed files with 22 additions and 8 deletions

View File

@ -1009,9 +1009,16 @@
(gnc:html-document-add-object!
document
(gnc:make-html-text
(format #f
(_ "No valid ~a selected. Click on the Options button to select a company.")
(_ type-str))))) ;; FIXME because of translations: Please change this string into full sentences instead of format, because in non-english languages the "no valid" has different forms depending on the grammatical gender of the "%s".
(string-append
(cond
((eqv? type GNC-OWNER-CUSTOMER)
(_ "No valid customer selected."))
((eqv? type GNC-OWNER-VENDOR)
(_ "No valid vendor selected."))
((eqv? type GNC-OWNER-EMPLOYEE)
(_ "No valid employee selected.")))
" "
(_ "Click on the \"Options\" button to select a company.")))))
(qof-query-destroy owner-query)
(qof-query-destroy toplevel-income-query)

View File

@ -619,11 +619,18 @@
;; else....
(gnc:html-document-add-object!
document
(gnc:make-html-text
(format #f
(_ "No valid ~a selected. Click on the Options button to select a company.")
(_ type-str))))) ;; FIXME because of translations: Please change this string into full sentences instead of format, because in non-english languages the "no valid" has different forms depending on the grammatical gender of the "%s".
document
(gnc:make-html-text
(string-append
(cond
((eqv? type GNC-OWNER-CUSTOMER)
(_ "No valid customer selected."))
((eqv? type GNC-OWNER-VENDOR)
(_ "No valid vendor selected."))
((eqv? type GNC-OWNER-EMPLOYEE)
(_ "No valid employee selected.")))
" "
(_ "Click on the \"Options\" button to select a company.")))))
(qof-query-destroy query)
document))