mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-08-04 05:24:08 +00:00
wipfeat(i18n): improve error logging for missing translation
This commit is contained in:
parent
8d360cd6be
commit
71c6efd3bb
1 changed files with 2 additions and 2 deletions
|
|
@ -760,7 +760,7 @@ window.PrivateBin = (function () {
|
|||
// for all other languages than English for which this behaviour
|
||||
// is expected as it is built-in, log error
|
||||
if (language !== null && language !== 'en') {
|
||||
console.error('Missing translation for: \'' + messageId + '\' in language ' + language);
|
||||
console.error('Missing translation for: ', messageId, 'in language', language);
|
||||
// fallback to English
|
||||
}
|
||||
|
||||
|
|
@ -944,7 +944,7 @@ window.PrivateBin = (function () {
|
|||
|
||||
/**
|
||||
* Check if string contains valid HTML code.
|
||||
*
|
||||
*
|
||||
* If it is no string at all, this always returns false for compatibility.
|
||||
*
|
||||
* @name I18n.isStringContainsHtml
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue