mirror of
https://github.com/frappe/books.git
synced 2025-02-08 15:08:29 +00:00
fix: minor fixes to tstrings
This commit is contained in:
parent
c52b7f54ad
commit
ddda0d38c7
@ -1,4 +1,5 @@
|
|||||||
import { partyWithAvatar } from '@/utils';
|
import { partyWithAvatar } from '@/utils';
|
||||||
|
import { t } from 'frappe';
|
||||||
import getCommonExportActions from '../commonExporter';
|
import getCommonExportActions from '../commonExporter';
|
||||||
|
|
||||||
let title = 'General Ledger';
|
let title = 'General Ledger';
|
||||||
|
@ -224,8 +224,9 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const title = this.t`DB Connection Error`;
|
const title = this.t`DB Connection Error`;
|
||||||
let content = this
|
let content =
|
||||||
.t`Please select an existing database or create a new one. reason: ${reason}, filePath: ${filePath}`;
|
this.t`Please select an existing database or create a new one.` +
|
||||||
|
` reason: ${reason}, filePath: ${filePath}`;
|
||||||
if (reason === DB_CONN_FAILURE.CANT_OPEN) {
|
if (reason === DB_CONN_FAILURE.CANT_OPEN) {
|
||||||
content = this
|
content = this
|
||||||
.t`Can't open database file: ${filePath}, please create a new file.`;
|
.t`Can't open database file: ${filePath}, please create a new file.`;
|
||||||
|
@ -165,7 +165,7 @@ export default {
|
|||||||
this.$emit('setup-complete');
|
this.$emit('setup-complete');
|
||||||
} else {
|
} else {
|
||||||
const title = this.t`DB Connection Error`;
|
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);
|
await showErrorDialog(title, content);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -34,7 +34,7 @@ export async function showMessageDialog({
|
|||||||
export function deleteDocWithPrompt(doc) {
|
export function deleteDocWithPrompt(doc) {
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
showMessageDialog({
|
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`,
|
description: t`This action is permanent`,
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user