commit: 90e3ab45d4aee7b693b8e404321adfe8339595e1
parent: cd3bf461dba72ddb04c4b1c3a4b736009b968cbe
Author: lambda <pleromagit@rogerbraun.net>
Date: Mon, 12 Mar 2018 09:31:34 +0000
Merge branch 'feature/i18n-for-user-timeline' into 'develop'
i18n for User Timeline
Closes #61
See merge request pleroma/pleroma-fe!212
Diffstat:
3 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
@@ -6,7 +6,7 @@
# For Translators
-To translate Pleroma, add your language to i18n/messages.js. Pleroma will set your language by your browser locale, but you can temporarily force it in the code by changing the locale in main.js.
+To translate Pleroma, add your language to [src/i18n/messages.js](https://git.pleroma.social/pleroma/pleroma-fe/blob/develop/src/i18n/messages.js). Pleroma will set your language by your browser locale, but you can temporarily force it in the code by changing the locale in main.js.
# FOR ADMINS
diff --git a/src/components/user_profile/user_profile.vue b/src/components/user_profile/user_profile.vue
@@ -3,7 +3,7 @@
<div v-if="user" class="user-profile panel panel-default base00-background">
<user-card-content :user="user" :switcher="true"></user-card-content>
</div>
- <Timeline :title="'User Timeline'" v-bind:timeline="timeline" v-bind:timeline-name="'user'" :user-id="userId"/>
+ <Timeline :title="$t('user_profile.timeline_title')" :timeline="timeline" :timeline-name="'user'" :user-id="userId"/>
</div>
</template>
diff --git a/src/i18n/messages.js b/src/i18n/messages.js
@@ -283,6 +283,9 @@ const en = {
general: {
submit: 'Submit',
apply: 'Apply'
+ },
+ user_profile: {
+ timeline_title: 'User Timeline'
}
}
@@ -1135,6 +1138,9 @@ const ru = {
general: {
submit: 'Отправить',
apply: 'Применить'
+ },
+ user_profile: {
+ timeline_title: 'Лента пользователя'
}
}