2
0
mirror of https://github.com/frappe/books.git synced 2025-02-02 12:08:27 +00:00

fix: minor fixes to tstrings

This commit is contained in:
18alantom 2022-02-16 11:57:10 +05:30 committed by Alan
parent c52b7f54ad
commit ddda0d38c7
4 changed files with 6 additions and 4 deletions

View File

@ -1,4 +1,5 @@
import { partyWithAvatar } from '@/utils';
import { t } from 'frappe';
import getCommonExportActions from '../commonExporter';
let title = 'General Ledger';

View File

@ -224,8 +224,9 @@ export default {
}
const title = this.t`DB Connection Error`;
let content = this
.t`Please select an existing database or create a new one. reason: ${reason}, filePath: ${filePath}`;
let content =
this.t`Please select an existing database or create a new one.` +
` reason: ${reason}, filePath: ${filePath}`;
if (reason === DB_CONN_FAILURE.CANT_OPEN) {
content = this
.t`Can't open database file: ${filePath}, please create a new file.`;

View File

@ -165,7 +165,7 @@ export default {
this.$emit('setup-complete');
} else {
const title = this.t`DB Connection Error`;
const content = this.t`reason: ${reason}, filePath: ${filePath}`;
const content = `reason: ${reason}, filePath: ${filePath}`;
await showErrorDialog(title, content);
}
},

View File

@ -34,7 +34,7 @@ export async function showMessageDialog({
export function deleteDocWithPrompt(doc) {
return new Promise((resolve) => {
showMessageDialog({
message: t`Are you sure you want to delete ${doc.doctype} "${doc.name}"?`,
message: t`Are you sure you want to delete ${doc.doctype} ${doc.name}?`,
description: t`This action is permanent`,
buttons: [
{