2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 11:29:03 +00:00

fix: Replace 'database' with 'file'

- Simpler wording for user facing string
- Add a help text for more information
This commit is contained in:
Faris Ansari 2019-12-23 13:54:18 +05:30
parent 5614b4dca6
commit 3ce726b07a
2 changed files with 19 additions and 9 deletions

View File

@ -4,7 +4,7 @@
{{ _('Welcome to Frappe Accounting') }} {{ _('Welcome to Frappe Accounting') }}
</h1> </h1>
<p class="text-gray-600"> <p class="text-gray-600">
{{ _('Do you need to create a new database or load an existing one?') }} {{ _('Create a new file or load an existing one from your computer') }}
</p> </p>
<div class="flex mt-10 window-no-drag"> <div class="flex mt-10 window-no-drag">
<div <div
@ -16,9 +16,9 @@
<feather-icon name="plus" class="text-white w-5 h-5" /> <feather-icon name="plus" class="text-white w-5 h-5" />
</div> </div>
</div> </div>
<div class="mt-5 font-medium">{{ _('New Database') }}</div> <div class="mt-5 font-medium">{{ _('New File') }}</div>
<div class="mt-2 text-sm text-gray-600 text-center"> <div class="mt-2 text-sm text-gray-600 text-center">
{{ _('Create a new database file and store it in your computer.') }} {{ _('Create a new file and store it in your computer.') }}
</div> </div>
</div> </div>
<div <div
@ -30,12 +30,17 @@
<feather-icon name="upload" class="w-4 h-4 text-white" /> <feather-icon name="upload" class="w-4 h-4 text-white" />
</div> </div>
</div> </div>
<div class="mt-5 font-medium">{{ _('Existing Database') }}</div> <div class="mt-5 font-medium">{{ _('Existing File') }}</div>
<div class="mt-2 text-sm text-gray-600 text-center"> <div class="mt-2 text-sm text-gray-600 text-center">
{{ _('Load an existing .db file from your computer.') }} {{ _('Load an existing .db file from your computer.') }}
</div> </div>
</div> </div>
</div> </div>
<p class="mt-4 flex-center text-sm text-gray-600">
<feather-icon name="info" class="-ml-8 mr-1 w-4 h-4 inline" />
<!-- prettier-ignore -->
{{ _('This file will be used as a database to store data like Customers, Invoices and Settings.') }}
</p>
</div> </div>
</template> </template>
<script> <script>

View File

@ -13,12 +13,17 @@
<span class="text-xs text-gray-600">{{ dbPath }}</span> <span class="text-xs text-gray-600">{{ dbPath }}</span>
</div> </div>
</div> </div>
<div class="mt-4 text-sm"> <div class="mt-4 flex text-sm">
<Button @click="newDatabase">{{ _('Create New') }}</Button> <Button @click="newDatabase">{{ _('New File') }}</Button>
<Button class="ml-2" @click="existingDatabase">{{ <Button class="ml-2" @click="existingDatabase">
_('Browse File') {{ _('Change File') }}
}}</Button> </Button>
</div> </div>
<p class="-ml-3 mt-4 flex items-start text-sm text-gray-600">
<feather-icon name="info" class="mr-1 w-4 h-4 inline" />
<!-- prettier-ignore -->
{{ _('Create a new file to start accounting for a new company, or change file to open accounting for an existing company.') }}
</p>
<TwoColumnForm <TwoColumnForm
class="mt-6" class="mt-6"
v-if="doc" v-if="doc"