mirror of
https://github.com/yuzu-emu/liftinstall.git
synced 2024-11-25 16:55:37 +01:00
feat(ui/i18n): mark most of the yuzu-specific strings as translatable
This commit is contained in:
parent
dde96db57c
commit
2d42189e5e
@ -25,7 +25,9 @@
|
|||||||
"overwriting": "Overwriting",
|
"overwriting": "Overwriting",
|
||||||
"overwriting_warning": "Directory {path} already exists.<br>Are you sure you want to <b>overwrite</b> the contents inside?",
|
"overwriting_warning": "Directory {path} already exists.<br>Are you sure you want to <b>overwrite</b> the contents inside?",
|
||||||
"nothing_picked": "Nothing selected",
|
"nothing_picked": "Nothing selected",
|
||||||
"nothing_picked_warning": "Please select at least one package to install!"
|
"nothing_picked_warning": "Please select at least one package to install!",
|
||||||
|
"options": "Install Options",
|
||||||
|
"option_shortcut": "Create Desktop Shortcut"
|
||||||
},
|
},
|
||||||
"install_packages":{
|
"install_packages":{
|
||||||
"check_for_update":"Checking for updates...",
|
"check_for_update":"Checking for updates...",
|
||||||
@ -44,7 +46,9 @@
|
|||||||
"up_to_date":"{name} is already up to date!",
|
"up_to_date":"{name} is already up to date!",
|
||||||
"updated":"{name} has been updated.",
|
"updated":"{name} has been updated.",
|
||||||
"uninstalled":"{name} has been uninstalled.",
|
"uninstalled":"{name} has been uninstalled.",
|
||||||
"where_to_find":"You can find your installed applications in your start menu."
|
"where_to_find":"You can find your installed applications in your start menu.",
|
||||||
|
"migration_where_to_find": "You can find your installed applications in your start menu - if you were in the middle of something, just reattempt.",
|
||||||
|
"migration_finished": "You have been moved to the new, single version of {name}."
|
||||||
},
|
},
|
||||||
"modify":{
|
"modify":{
|
||||||
"title":"Choose an option:",
|
"title":"Choose an option:",
|
||||||
@ -56,6 +60,14 @@
|
|||||||
"prompt":"Are you sure you want to uninstall {name}?",
|
"prompt":"Are you sure you want to uninstall {name}?",
|
||||||
"prompt_confirm":"Uninstall {name}"
|
"prompt_confirm":"Uninstall {name}"
|
||||||
},
|
},
|
||||||
|
"auth":{
|
||||||
|
"paste": "Paste",
|
||||||
|
"token": "Token",
|
||||||
|
"verify": "Verify Token",
|
||||||
|
"page_header": "The <strong>Early Access</strong> release channel lets you try out the latest experimental features and fixes, before they are merged into yuzu. This channel includes all regular yuzu daily updates, plus these exclusive features.\n\nTo be an Early Access member, you must be a Patreon Early Access Subscriber.",
|
||||||
|
"page_opened": "Page opened! Check your default browser for the page, and follow the instructions there to link your patreon account.\nWhen you are done, enter the token below.",
|
||||||
|
"login_failed": "Login failed!\n\nDouble check that your token is correct and try again"
|
||||||
|
},
|
||||||
"back":"Back",
|
"back":"Back",
|
||||||
"exit":"Exit",
|
"exit":"Exit",
|
||||||
"yes":"Yes",
|
"yes":"Yes",
|
||||||
|
@ -2,13 +2,10 @@
|
|||||||
<div class="column has-padding">
|
<div class="column has-padding">
|
||||||
<section>
|
<section>
|
||||||
<b-message type="is-info" :active.sync="browser_opened">
|
<b-message type="is-info" :active.sync="browser_opened">
|
||||||
Page opened! Check your default browser for the page, and follow the instructions there to link your patreon account.
|
{{ $t('auth.page_opened') }}
|
||||||
When you are done, enter the token below.
|
|
||||||
</b-message>
|
</b-message>
|
||||||
<b-message type="is-info" :active.sync="show_header">
|
<b-message type="is-info" :active.sync="show_header">
|
||||||
The <strong>Early Access</strong> release channel lets you try out the latest experimental features and fixes, before they are merged into yuzu. This channel includes all regular yuzu daily updates, plus these exclusive features.
|
{{ $t('auth.page_header') }}
|
||||||
|
|
||||||
To be an Early Access member, you must be a Patreon Early Access Subscriber.
|
|
||||||
</b-message>
|
</b-message>
|
||||||
<div>
|
<div>
|
||||||
If you are a subscriber, <a v-on:click="launch_browser('https://profile.yuzu-emu.org/')">click here to link your yuzu-emu.org account</a>
|
If you are a subscriber, <a v-on:click="launch_browser('https://profile.yuzu-emu.org/')">click here to link your yuzu-emu.org account</a>
|
||||||
@ -20,11 +17,11 @@
|
|||||||
<br>
|
<br>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<p>Token</p>
|
<p>{{ $t('auth.token') }}</p>
|
||||||
<b-field>
|
<b-field>
|
||||||
<b-input type="text" v-model="combined_token" placeholder="Token" id="token" style='width: 50em;'></b-input>
|
<b-input type="text" v-model="combined_token" placeholder="Token" id="token" style='width: 50em;'></b-input>
|
||||||
<p class="control">
|
<p class="control">
|
||||||
<button class="button is-info" v-on:click="paste">Paste</button>
|
<button class="button is-info" v-on:click="paste">{{ $t('auth.paste') }}</button>
|
||||||
</p>
|
</p>
|
||||||
</b-field>
|
</b-field>
|
||||||
</section>
|
</section>
|
||||||
@ -34,13 +31,11 @@
|
|||||||
<section>
|
<section>
|
||||||
|
|
||||||
<b-message type="is-danger" :active.sync="invalid_token">
|
<b-message type="is-danger" :active.sync="invalid_token">
|
||||||
Login failed!
|
{{ $t('auth.login_failed') }}
|
||||||
Double check that your token is correct and try again
|
|
||||||
</b-message>
|
</b-message>
|
||||||
|
|
||||||
<b-message type="is-danger" :active.sync="invalid_login">
|
<b-message type="is-danger" :active.sync="invalid_login">
|
||||||
Login failed!
|
{{ $t('auth.login_failed') }}
|
||||||
Double check that your token is correct and try again
|
|
||||||
</b-message>
|
</b-message>
|
||||||
|
|
||||||
<b-message type="is-danger" :active.sync="unlinked_patreon">
|
<b-message type="is-danger" :active.sync="unlinked_patreon">
|
||||||
@ -61,13 +56,13 @@
|
|||||||
|
|
||||||
<div class="is-left-floating is-bottom-floating">
|
<div class="is-left-floating is-bottom-floating">
|
||||||
<p class="control">
|
<p class="control">
|
||||||
<a class="button is-medium" v-on:click="go_back">Back</a>
|
<a class="button is-medium" v-on:click="go_back">{{ $t('back') }}</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="is-right-floating is-bottom-floating">
|
<div class="is-right-floating is-bottom-floating">
|
||||||
<p class="control">
|
<p class="control">
|
||||||
<a class="button is-dark is-medium" v-on:click="verify_token">Verify Token</a>
|
<b-button type="is-link is-medium" :loading="loading" v-on:click="verify_token">{{ $t('auth.verify') }}</b-button>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -88,7 +83,8 @@ export default {
|
|||||||
return {
|
return {
|
||||||
browser_opened: false,
|
browser_opened: false,
|
||||||
verification_opened: false,
|
verification_opened: false,
|
||||||
invalid_token: false
|
invalid_token: false,
|
||||||
|
loading: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -148,6 +144,7 @@ export default {
|
|||||||
}).catch(function () {})
|
}).catch(function () {})
|
||||||
},
|
},
|
||||||
verify_token: function () {
|
verify_token: function () {
|
||||||
|
this.loading = true
|
||||||
this.browser_opened = false
|
this.browser_opened = false
|
||||||
this.$root.check_authentication(this.success, this.error)
|
this.$root.check_authentication(this.success, this.error)
|
||||||
},
|
},
|
||||||
@ -159,8 +156,10 @@ export default {
|
|||||||
}
|
}
|
||||||
// They aren't currently eligible for the release, so display the error message
|
// They aren't currently eligible for the release, so display the error message
|
||||||
this.verification_opened = true
|
this.verification_opened = true
|
||||||
|
this.loading = false
|
||||||
},
|
},
|
||||||
error: function () {
|
error: function () {
|
||||||
|
this.loading = false
|
||||||
this.verification_opened = true
|
this.verification_opened = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="column has-padding">
|
<div class="column has-padding">
|
||||||
<div v-if="was_migrate">
|
<div v-if="was_migrate">
|
||||||
<h4 class="subtitle">You have been moved to the new, single version of {{ $root.$data.attrs.name }}.</h4>
|
<h4 class="subtitle">{{ $t('complete.migration_finished', {'name': $root.$data.attrs.name}) }}</h4>
|
||||||
|
|
||||||
<p>You can find your installed applications in your start menu - if you were in the middle of something, just reattempt.</p>
|
<p>{{ $t('complete.migration_where_to_find') }}</p>
|
||||||
|
|
||||||
<img src="../assets/how-to-open.png" alt="Where yuzu is installed"/>
|
<img src="../assets/how-to-open.png" alt="Where yuzu is installed"/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -25,33 +25,33 @@ export default {
|
|||||||
},
|
},
|
||||||
created: function () {
|
created: function () {
|
||||||
// See if we need to migrate yuzu to mainline
|
// See if we need to migrate yuzu to mainline
|
||||||
var need_migrate = false;
|
let need_migrate = false
|
||||||
for (var package_id in this.$root.metadata.database.packages) {
|
for (const package_id in this.$root.metadata.database.packages) {
|
||||||
var name = this.$root.metadata.database.packages[package_id].name
|
var name = this.$root.metadata.database.packages[package_id].name
|
||||||
if ((name.indexOf("Nightly") !== -1 || name.indexOf("Canary") !== -1)) {
|
if ((name.indexOf('Nightly') !== -1 || name.indexOf('Canary') !== -1)) {
|
||||||
console.log("Migration needed (found \"" + name + "\", move to mainline)")
|
console.log('Migration needed (found "' + name + '", move to mainline)')
|
||||||
|
|
||||||
// Migration step: deactivate this package
|
// Migration step: deactivate this package
|
||||||
if ( this.$root.config.packages[package_id] !== undefined) {
|
if (this.$root.config.packages[package_id] !== undefined) {
|
||||||
this.$root.config.packages[package_id].default = false;
|
this.$root.config.packages[package_id].default = false
|
||||||
}
|
}
|
||||||
|
|
||||||
// Migration step: enable mainline
|
// Migration step: enable mainline
|
||||||
for (var sub_package_id in this.$root.config.packages) {
|
for (const sub_package_id in this.$root.config.packages) {
|
||||||
var name = this.$root.config.packages[sub_package_id].name
|
var name = this.$root.config.packages[sub_package_id].name
|
||||||
if (name === "yuzu") {
|
if (name === 'yuzu') {
|
||||||
this.$root.config.packages[sub_package_id].default = true;
|
this.$root.config.packages[sub_package_id].default = true
|
||||||
break;
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
need_migrate = true;
|
need_migrate = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("Next stop: " + JSON.stringify(this.next_stop));
|
console.log('Next stop: ' + JSON.stringify(this.next_stop))
|
||||||
if (need_migrate) {
|
if (need_migrate) {
|
||||||
this.next_stop = "/complete/false/true/true/[]"
|
this.next_stop = '/complete/false/true/true/[]'
|
||||||
this.install()
|
this.install()
|
||||||
} else {
|
} else {
|
||||||
this.$router.replace(this.next_stop)
|
this.$router.replace(this.next_stop)
|
||||||
@ -59,37 +59,37 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
install: function () {
|
install: function () {
|
||||||
var that = this
|
const that = this
|
||||||
var app = this.$root
|
const app = this.$root
|
||||||
|
|
||||||
var results = {}
|
const results = {}
|
||||||
|
|
||||||
for (var package_index = 0; package_index < app.config.packages.length; package_index++) {
|
for (let package_index = 0; package_index < app.config.packages.length; package_index++) {
|
||||||
var current_package = app.config.packages[package_index]
|
const current_package = app.config.packages[package_index]
|
||||||
if (current_package.default != null) {
|
if (current_package.default != null) {
|
||||||
results[current_package.name] = current_package.default
|
results[current_package.name] = current_package.default
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("Install results: " + JSON.stringify(results));
|
console.log('Install results: ' + JSON.stringify(results))
|
||||||
|
|
||||||
results['path'] = app.install_location
|
results.path = app.install_location
|
||||||
|
|
||||||
var targetUrl = '/api/start-install'
|
const targetUrl = '/api/start-install'
|
||||||
|
|
||||||
this.$root.stream_ajax(targetUrl, function (line) {
|
this.$root.stream_ajax(targetUrl, function (line) {
|
||||||
// On progress line received from server
|
// On progress line received from server
|
||||||
|
|
||||||
if (line.hasOwnProperty('Status')) {
|
if (line.Status) {
|
||||||
that.progress_message = line.Status[0]
|
that.progress_message = line.Status[0]
|
||||||
that.progress = line.Status[1] * 100
|
that.progress = line.Status[1] * 100
|
||||||
}
|
}
|
||||||
|
|
||||||
if (line.hasOwnProperty('PackageInstalled')) {
|
if (line.PackageInstalled) {
|
||||||
that.packages_installed += 1
|
that.packages_installed += 1
|
||||||
}
|
}
|
||||||
|
|
||||||
if (line.hasOwnProperty('Error')) {
|
if (line.Error) {
|
||||||
that.failed_with_error = true
|
that.failed_with_error = true
|
||||||
that.$router.replace({ name: 'showerr', params: { msg: line.Error } })
|
that.$router.replace({ name: 'showerr', params: { msg: line.Error } })
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
<div class="is-left-floating is-bottom-floating">
|
<div class="is-left-floating is-bottom-floating">
|
||||||
<p class="control">
|
<p class="control">
|
||||||
<a class="button is-medium" v-on:click="go_packages">Back</a>
|
<a class="button is-medium" v-on:click="go_packages">{{ $t('back') }}</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -29,9 +29,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="tile is-child is-6 box clickable-box" v-if="!$root.$data.metadata.preexisting_install" v-on:click.capture.stop="installDesktopShortcut = !installDesktopShortcut">
|
<div class="tile is-child is-6 box clickable-box" v-if="!$root.$data.metadata.preexisting_install" v-on:click.capture.stop="installDesktopShortcut = !installDesktopShortcut">
|
||||||
<h4>Install Options</h4>
|
<h4>{{ $t('select_packages.options') }}</h4>
|
||||||
<b-checkbox v-model="installDesktopShortcut">
|
<b-checkbox v-model="installDesktopShortcut">
|
||||||
Create Desktop Shortcut
|
{{ $t('select_packages.option_shortcut') }}
|
||||||
</b-checkbox>
|
</b-checkbox>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user