Add a bunch of missed localization strings, update english and finnish to match.
This commit is contained in:
parent
5dca57cc05
commit
191bbe76a8
10 changed files with 71 additions and 25 deletions
|
@ -8,7 +8,7 @@
|
||||||
<div class='item right'>
|
<div class='item right'>
|
||||||
<user-finder></user-finder>
|
<user-finder></user-finder>
|
||||||
<router-link :to="{ name: 'settings'}"><i class="icon-cog"></i></router-link>
|
<router-link :to="{ name: 'settings'}"><i class="icon-cog"></i></router-link>
|
||||||
<a href="#" v-if="currentUser" @click.prevent="logout"><i class="icon-logout" title="Logout" ></i></a>
|
<a href="#" v-if="currentUser" @click.prevent="logout"><i class="icon-logout" :title="$t('login.logout')" ></i></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="timeline panel panel-default base00-background">
|
<div class="timeline panel panel-default base00-background">
|
||||||
<div class="panel-heading base01-background base04 base03-border conversation-heading">
|
<div class="panel-heading base01-background base04 base03-border conversation-heading">
|
||||||
Conversation
|
{{ $t('timeline.conversation') }}
|
||||||
<span v-if="collapsable" style="float:right;">
|
<span v-if="collapsable" style="float:right;">
|
||||||
<small><a href="#" @click.prevent="$emit('toggleExpanded')">Collapse</a></small>
|
<small><a href="#" @click.prevent="$emit('toggleExpanded')">Collapse</a></small>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<Timeline :title="'Friends'" v-bind:timeline="timeline" v-bind:timeline-name="'friends'"/>
|
<Timeline :title="$t('nav.timeline')" v-bind:timeline="timeline" v-bind:timeline-name="'friends'"/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script src="./friends_timeline.js"></script>
|
<script src="./friends_timeline.js"></script>
|
||||||
|
|
|
@ -2,22 +2,22 @@
|
||||||
<div class="login panel panel-default base00-background">
|
<div class="login panel panel-default base00-background">
|
||||||
<!-- Default panel contents -->
|
<!-- Default panel contents -->
|
||||||
<div class="panel-heading base01-background base04">
|
<div class="panel-heading base01-background base04">
|
||||||
Log in
|
{{$t('login.login')}}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<form v-on:submit.prevent='submit(user)' class='login-form'>
|
<form v-on:submit.prevent='submit(user)' class='login-form'>
|
||||||
<div class='form-group'>
|
<div class='form-group'>
|
||||||
<label for='username'>Username</label>
|
<label for='username'>{{$t('login.username')}}</label>
|
||||||
<input :disabled="loggingIn" v-model='user.username' class='form-control' id='username' placeholder='e.g. lain'>
|
<input :disabled="loggingIn" v-model='user.username' class='form-control' id='username' placeholder='e.g. lain'>
|
||||||
</div>
|
</div>
|
||||||
<div class='form-group'>
|
<div class='form-group'>
|
||||||
<label for='password'>Password</label>
|
<label for='password'>{{$t('login.password')}}</label>
|
||||||
<input :disabled="loggingIn" v-model='user.password' class='form-control' id='password' type='password'>
|
<input :disabled="loggingIn" v-model='user.password' class='form-control' id='password' type='password'>
|
||||||
</div>
|
</div>
|
||||||
<div class='form-group'>
|
<div class='form-group'>
|
||||||
<div class='login-bottom'>
|
<div class='login-bottom'>
|
||||||
<div><router-link :to="{name: 'registration'}" v-if='registrationOpen' class='register'>Register</router-link></div>
|
<div><router-link :to="{name: 'registration'}" v-if='registrationOpen' class='register'>{{$t('login.register')}}</router-link></div>
|
||||||
<button :disabled="loggingIn" type='submit' class='btn btn-default base05 base01-background'>Log in</button>
|
<button :disabled="loggingIn" type='submit' class='btn btn-default base05 base01-background'>{{$t('login.login')}}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="authError" class='form-group'>
|
<div v-if="authError" class='form-group'>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<div class="post-status-form">
|
<div class="post-status-form">
|
||||||
<form @submit.prevent="postStatus(newStatus)">
|
<form @submit.prevent="postStatus(newStatus)">
|
||||||
<div class="form-group base03-border" >
|
<div class="form-group base03-border" >
|
||||||
<textarea @click="setCaret" @keyup="setCaret" v-model="newStatus.status" placeholder="Just landed in L.A." rows="1" class="form-control" @keydown.meta.enter="postStatus(newStatus)" @keyup.ctrl.enter="postStatus(newStatus)" @drop="fileDrop" @dragover.prevent="fileDrag" @input="resize"></textarea>
|
<textarea @click="setCaret" @keyup="setCaret" v-model="newStatus.status" :placeholder="$t('post_status.default')" rows="1" class="form-control" @keydown.meta.enter="postStatus(newStatus)" @keyup.ctrl.enter="postStatus(newStatus)" @drop="fileDrop" @dragover.prevent="fileDrag" @input="resize"></textarea>
|
||||||
</div>
|
</div>
|
||||||
<div style="position:relative;" v-if="candidates">
|
<div style="position:relative;" v-if="candidates">
|
||||||
<div class="autocomplete-panel base05-background">
|
<div class="autocomplete-panel base05-background">
|
||||||
|
@ -17,8 +17,8 @@
|
||||||
</div>
|
</div>
|
||||||
<div class='form-bottom'>
|
<div class='form-bottom'>
|
||||||
<media-upload @uploading="disableSubmit" @uploaded="addMediaFile" @upload-failed="enableSubmit" :drop-files="dropFiles"></media-upload>
|
<media-upload @uploading="disableSubmit" @uploaded="addMediaFile" @upload-failed="enableSubmit" :drop-files="dropFiles"></media-upload>
|
||||||
<button v-if="posting" disabled class="btn btn-default base05 base01-background">Posting</button>
|
<button v-if="posting" disabled class="btn btn-default base05 base01-background">{{$t('post_status.posting')}}</button>
|
||||||
<button v-else :disabled="submitDisabled" type="submit" class="btn btn-default base05 base01-background">Submit</button>
|
<button v-else :disabled="submitDisabled" type="submit" class="btn btn-default base05 base01-background">{{$t('general.submit')}}</button>
|
||||||
</div>
|
</div>
|
||||||
<div class='error' v-if="error">
|
<div class='error' v-if="error">
|
||||||
Error: {{ error }}
|
Error: {{ error }}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<Timeline :title="'THE WHOLE KNOWN NETWORK'"v-bind:timeline="timeline" v-bind:timeline-name="'publicAndExternal'"/>
|
<Timeline :title="$t('nav.twkn')"v-bind:timeline="timeline" v-bind:timeline-name="'publicAndExternal'"/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script src="./public_and_external_timeline.js"></script>
|
<script src="./public_and_external_timeline.js"></script>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<Timeline :title="'Public Timeline'" v-bind:timeline="timeline" v-bind:timeline-name="'public'"/>
|
<Timeline :title="$t('nav.public_tl')" v-bind:timeline="timeline" v-bind:timeline-name="'public'"/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script src="./public_timeline.js"></script>
|
<script src="./public_timeline.js"></script>
|
||||||
|
|
|
@ -1,34 +1,34 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="settings panel panel-default base00-background">
|
<div class="settings panel panel-default base00-background">
|
||||||
<div class="panel-heading base01-background base04">
|
<div class="panel-heading base01-background base04">
|
||||||
Registration
|
{{$t('registration.registration')}}
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<form v-on:submit.prevent='submit(user)' class='registration-form'>
|
<form v-on:submit.prevent='submit(user)' class='registration-form'>
|
||||||
<div class='container'>
|
<div class='container'>
|
||||||
<div class='text-fields'>
|
<div class='text-fields'>
|
||||||
<div class='form-group'>
|
<div class='form-group'>
|
||||||
<label for='username'>Username</label>
|
<label for='username'>{{$t('login.username')}}</label>
|
||||||
<input :disabled="registering" v-model='user.username' class='form-control' id='username' placeholder='e.g. lain'>
|
<input :disabled="registering" v-model='user.username' class='form-control' id='username' placeholder='e.g. lain'>
|
||||||
</div>
|
</div>
|
||||||
<div class='form-group'>
|
<div class='form-group'>
|
||||||
<label for='fullname'>Fullname</label>
|
<label for='fullname'>{{$t('registration.fullname')}}</label>
|
||||||
<input :disabled="registering" v-model='user.fullname' class='form-control' id='fullname' placeholder='e.g. Lain Iwakura'>
|
<input :disabled="registering" v-model='user.fullname' class='form-control' id='fullname' placeholder='e.g. Lain Iwakura'>
|
||||||
</div>
|
</div>
|
||||||
<div class='form-group'>
|
<div class='form-group'>
|
||||||
<label for='email'>Email</label>
|
<label for='email'>{{$t('registration.email')}}</label>
|
||||||
<input :disabled="registering" v-model='user.email' class='form-control' id='email' type="email">
|
<input :disabled="registering" v-model='user.email' class='form-control' id='email' type="email">
|
||||||
</div>
|
</div>
|
||||||
<div class='form-group'>
|
<div class='form-group'>
|
||||||
<label for='bio'>Bio</label>
|
<label for='bio'>{{$t('registration.bio')}}</label>
|
||||||
<input :disabled="registering" v-model='user.bio' class='form-control' id='bio'>
|
<input :disabled="registering" v-model='user.bio' class='form-control' id='bio'>
|
||||||
</div>
|
</div>
|
||||||
<div class='form-group'>
|
<div class='form-group'>
|
||||||
<label for='password'>Password</label>
|
<label for='password'>{{$t('login.password')}}</label>
|
||||||
<input :disabled="registering" v-model='user.password' class='form-control' id='password' type='password'>
|
<input :disabled="registering" v-model='user.password' class='form-control' id='password' type='password'>
|
||||||
</div>
|
</div>
|
||||||
<div class='form-group'>
|
<div class='form-group'>
|
||||||
<label for='password_confirmation'>Password confirmation</label>
|
<label for='password_confirmation'>{{$t('registration.password_confirm')}}</label>
|
||||||
<input :disabled="registering" v-model='user.confirm' class='form-control' id='password_confirmation' type='password'>
|
<input :disabled="registering" v-model='user.confirm' class='form-control' id='password_confirmation' type='password'>
|
||||||
</div>
|
</div>
|
||||||
<!--
|
<!--
|
||||||
|
@ -39,7 +39,7 @@
|
||||||
</div>
|
</div>
|
||||||
-->
|
-->
|
||||||
<div class='form-group'>
|
<div class='form-group'>
|
||||||
<button :disabled="registering" type='submit' class='btn btn-default base05 base01-background'>Submit</button>
|
<button :disabled="registering" type='submit' class='btn btn-default base05 base01-background'>{{$t('general.submit')}}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class='terms-of-service' v-html="termsofservice">
|
<div class='terms-of-service' v-html="termsofservice">
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
<span>
|
<span>
|
||||||
<span class="finder-error base05" v-if="error">
|
<span class="finder-error base05" v-if="error">
|
||||||
<i class="icon-cancel user-finder-icon" @click="dismissError"/>
|
<i class="icon-cancel user-finder-icon" @click="dismissError"/>
|
||||||
Error fetching user
|
{{$t('finder.error_fetching_user')}}
|
||||||
</span>
|
</span>
|
||||||
<i class="icon-spin4 user-finder-icon animate-spin-slow" v-if="loading" />
|
<i class="icon-spin4 user-finder-icon animate-spin-slow" v-if="loading" />
|
||||||
<a href="#" v-if="hidden"><i class="icon-user-plus user-finder-icon" @click.prevent="toggleHidden"/></a>
|
<a href="#" v-if="hidden"><i class="icon-user-plus user-finder-icon" @click.prevent="toggleHidden"/></a>
|
||||||
<span v-else>
|
<span v-else>
|
||||||
<input class="user-finder-input base03-border" @keyup.enter="findUser(username)" v-model="username" placeholder="Find user" id="user-finder-input" type="text"/>
|
<input class="user-finder-input base03-border" @keyup.enter="findUser(username)" v-model="username" :placeholder="$t('finder.find_user')" id="user-finder-input" type="text"/>
|
||||||
<i class="icon-cancel user-finder-icon" @click="toggleHidden"/>
|
<i class="icon-cancel user-finder-icon" @click="toggleHidden"/>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -78,7 +78,8 @@ const fi = {
|
||||||
show_new: 'Näytä uudet',
|
show_new: 'Näytä uudet',
|
||||||
error_fetching: 'Virhe ladatessa viestejä',
|
error_fetching: 'Virhe ladatessa viestejä',
|
||||||
up_to_date: 'Ajantasalla',
|
up_to_date: 'Ajantasalla',
|
||||||
load_older: 'Lataa vanhempia viestejä'
|
load_older: 'Lataa vanhempia viestejä',
|
||||||
|
conversation: 'Keskustelu'
|
||||||
},
|
},
|
||||||
settings: {
|
settings: {
|
||||||
user_settings: 'Käyttäjän asetukset',
|
user_settings: 'Käyttäjän asetukset',
|
||||||
|
@ -109,6 +110,28 @@ const fi = {
|
||||||
read: 'Lue!',
|
read: 'Lue!',
|
||||||
followed_you: 'seuraa sinua'
|
followed_you: 'seuraa sinua'
|
||||||
},
|
},
|
||||||
|
login: {
|
||||||
|
login: 'Kirjaudu sisään',
|
||||||
|
username: 'Käyttäjänimi',
|
||||||
|
password: 'Salasana',
|
||||||
|
register: 'Rekisteröidy',
|
||||||
|
logout: 'Kirjaudu ulos'
|
||||||
|
},
|
||||||
|
registration: {
|
||||||
|
registration: 'Rekisteröityminen',
|
||||||
|
fullname: 'Koko nimi',
|
||||||
|
email: 'Sähköposti',
|
||||||
|
bio: 'Kuvaus',
|
||||||
|
password_confirm: 'Salasanan vahvistaminen'
|
||||||
|
},
|
||||||
|
post_status: {
|
||||||
|
posting: 'Lähetetään',
|
||||||
|
default: 'Tulin juuri saunasta.'
|
||||||
|
},
|
||||||
|
finder: {
|
||||||
|
find_user: 'Hae käyttäjä',
|
||||||
|
error_fetching_user: 'Virhe hakiessa käyttäjää'
|
||||||
|
},
|
||||||
general: {
|
general: {
|
||||||
submit: 'Lähetä'
|
submit: 'Lähetä'
|
||||||
}
|
}
|
||||||
|
@ -138,7 +161,8 @@ const en = {
|
||||||
show_new: 'Show new',
|
show_new: 'Show new',
|
||||||
error_fetching: 'Error fetching updates',
|
error_fetching: 'Error fetching updates',
|
||||||
up_to_date: 'Up-to-date',
|
up_to_date: 'Up-to-date',
|
||||||
load_older: 'Load older statuses'
|
load_older: 'Load older statuses',
|
||||||
|
conversation: 'Conversation'
|
||||||
},
|
},
|
||||||
settings: {
|
settings: {
|
||||||
user_settings: 'User Settings',
|
user_settings: 'User Settings',
|
||||||
|
@ -169,6 +193,28 @@ const en = {
|
||||||
read: 'Read!',
|
read: 'Read!',
|
||||||
followed_you: 'followed you'
|
followed_you: 'followed you'
|
||||||
},
|
},
|
||||||
|
login: {
|
||||||
|
login: 'Log in',
|
||||||
|
username: 'Username',
|
||||||
|
password: 'Password',
|
||||||
|
register: 'Register',
|
||||||
|
logout: 'Log out'
|
||||||
|
},
|
||||||
|
registration: {
|
||||||
|
registration: 'Registration',
|
||||||
|
fullname: 'Display name',
|
||||||
|
email: 'Email',
|
||||||
|
bio: 'Bio',
|
||||||
|
password_confirm: 'Password confirmation'
|
||||||
|
},
|
||||||
|
post_status: {
|
||||||
|
posting: 'Posting',
|
||||||
|
default: 'Just landed in L.A.'
|
||||||
|
},
|
||||||
|
finder: {
|
||||||
|
find_user: 'Find user',
|
||||||
|
error_fetching_user: 'Error fetching user'
|
||||||
|
},
|
||||||
general: {
|
general: {
|
||||||
submit: 'Submit'
|
submit: 'Submit'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue