Change the groupings of menu items in settings navigation (#10533)

* Change the groupings of menu items in settings navigation

Fix #10307

* Remove unused translations
This commit is contained in:
Eugen Rochko 2019-04-10 03:47:11 +02:00 committed by GitHub
parent 400397c0c7
commit 9b0d8f74cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
50 changed files with 43 additions and 124 deletions

View file

@ -6,6 +6,7 @@
%li= link_to t('preferences.publishing'), '#settings_publishing' %li= link_to t('preferences.publishing'), '#settings_publishing'
%li= link_to t('preferences.other'), '#settings_other' %li= link_to t('preferences.other'), '#settings_other'
%li= link_to t('preferences.web'), '#settings_web' %li= link_to t('preferences.web'), '#settings_web'
%li= link_to t('settings.notifications'), settings_notifications_path
= simple_form_for current_user, url: settings_preferences_path, html: { method: :put } do |f| = simple_form_for current_user, url: settings_preferences_path, html: { method: :put } do |f|
= render 'shared/error_messages', object: current_user = render 'shared/error_messages', object: current_user

View file

@ -812,9 +812,7 @@ ar:
migrate: تهجير الحساب migrate: تهجير الحساب
notifications: الإخطارات notifications: الإخطارات
preferences: التفضيلات preferences: التفضيلات
settings: الإعدادات
two_factor_authentication: المُصادقة بخُطوَتَيْن two_factor_authentication: المُصادقة بخُطوَتَيْن
your_apps: تطبيقاتك
statuses: statuses:
attached: attached:
description: 'مُرفَق : %{attached}' description: 'مُرفَق : %{attached}'

View file

@ -300,7 +300,6 @@ ast:
import: Importación import: Importación
notifications: Avisos notifications: Avisos
preferences: Preferencies preferences: Preferencies
settings: Axustes
two_factor_authentication: Autenticación en dos pasos two_factor_authentication: Autenticación en dos pasos
statuses: statuses:
attached: attached:

View file

@ -122,7 +122,6 @@ bg:
export: Експортиране на данни export: Експортиране на данни
import: Импортиране import: Импортиране
preferences: Предпочитания preferences: Предпочитания
settings: Настройки
two_factor_authentication: Двустепенно удостоверяване two_factor_authentication: Двустепенно удостоверяване
statuses: statuses:
open_in_web: Отвори в уеб open_in_web: Отвори в уеб

View file

@ -867,9 +867,7 @@ ca:
notifications: Notificacions notifications: Notificacions
preferences: Preferències preferences: Preferències
relationships: Seguits i seguidors relationships: Seguits i seguidors
settings: Configuració
two_factor_authentication: Autenticació de dos factors two_factor_authentication: Autenticació de dos factors
your_apps: Les teves aplicacions
statuses: statuses:
attached: attached:
description: 'Adjunt: %{attached}' description: 'Adjunt: %{attached}'

View file

@ -873,9 +873,7 @@ co:
notifications: Nutificazione notifications: Nutificazione
preferences: Priferenze preferences: Priferenze
relationships: Abbunamenti è abbunati relationships: Abbunamenti è abbunati
settings: Parametri
two_factor_authentication: Identificazione à dui fattori two_factor_authentication: Identificazione à dui fattori
your_apps: E vostre applicazione
statuses: statuses:
attached: attached:
description: 'Aghjuntu: %{attached}' description: 'Aghjuntu: %{attached}'

View file

@ -883,9 +883,7 @@ cs:
notifications: Oznámení notifications: Oznámení
preferences: Předvolby preferences: Předvolby
relationships: Sledovaní a sledující relationships: Sledovaní a sledující
settings: Nastavení
two_factor_authentication: Dvoufázové ověřování two_factor_authentication: Dvoufázové ověřování
your_apps: Vaše aplikace
statuses: statuses:
attached: attached:
description: 'Přiloženo: %{attached}' description: 'Přiloženo: %{attached}'

View file

@ -812,9 +812,7 @@ cy:
migrate: Mudo cyfrif migrate: Mudo cyfrif
notifications: Hysbysiadau notifications: Hysbysiadau
preferences: Dewisiadau preferences: Dewisiadau
settings: Gosodiadau
two_factor_authentication: Awdurdodi dau-gam two_factor_authentication: Awdurdodi dau-gam
your_apps: Eich rhaglenni
statuses: statuses:
attached: attached:
description: 'Ynghlwm: %{attached}' description: 'Ynghlwm: %{attached}'

View file

@ -700,9 +700,7 @@ da:
migrate: Konto migrering migrate: Konto migrering
notifications: Notifikationer notifications: Notifikationer
preferences: Præferencer preferences: Præferencer
settings: Indstillinger
two_factor_authentication: To-faktor godkendelse two_factor_authentication: To-faktor godkendelse
your_apps: Dine applikationer
statuses: statuses:
attached: attached:
description: 'Vedhæftede: %{attached}' description: 'Vedhæftede: %{attached}'

View file

@ -868,9 +868,7 @@ de:
notifications: Benachrichtigungen notifications: Benachrichtigungen
preferences: Einstellungen preferences: Einstellungen
relationships: Folgende und Follower relationships: Folgende und Follower
settings: Einstellungen
two_factor_authentication: Zwei-Faktor-Auth two_factor_authentication: Zwei-Faktor-Auth
your_apps: Deine Anwendungen
statuses: statuses:
attached: attached:
description: 'Angehängt: %{attached}' description: 'Angehängt: %{attached}'

View file

@ -859,9 +859,7 @@ el:
notifications: Ειδοποιήσεις notifications: Ειδοποιήσεις
preferences: Προτιμήσεις preferences: Προτιμήσεις
relationships: Ακολουθεί και ακολουθείται relationships: Ακολουθεί και ακολουθείται
settings: Ρυθμίσεις
two_factor_authentication: Πιστοποίηση 2 παραγόντων (2FA) two_factor_authentication: Πιστοποίηση 2 παραγόντων (2FA)
your_apps: Οι εφαρμογές σου
statuses: statuses:
attached: attached:
description: 'Συνημμένα: %{attached}' description: 'Συνημμένα: %{attached}'

View file

@ -860,6 +860,8 @@ en:
revoke_success: Session successfully revoked revoke_success: Session successfully revoked
title: Sessions title: Sessions
settings: settings:
account: Account
account_settings: Account settings
authorized_apps: Authorized apps authorized_apps: Authorized apps
back: Back to Mastodon back: Back to Mastodon
delete: Account deletion delete: Account deletion
@ -869,13 +871,13 @@ en:
featured_tags: Featured hashtags featured_tags: Featured hashtags
identity_proofs: Identity proofs identity_proofs: Identity proofs
import: Import import: Import
import_and_export: Import and export
migrate: Account migration migrate: Account migration
notifications: Notifications notifications: Notifications
preferences: Preferences preferences: Preferences
profile: Profile
relationships: Follows and followers relationships: Follows and followers
settings: Settings
two_factor_authentication: Two-factor Auth two_factor_authentication: Two-factor Auth
your_apps: Your applications
statuses: statuses:
attached: attached:
description: 'Attached: %{attached}' description: 'Attached: %{attached}'

View file

@ -854,9 +854,7 @@ en_GB:
notifications: Notifications notifications: Notifications
preferences: Preferences preferences: Preferences
relationships: Follows and followers relationships: Follows and followers
settings: Settings
two_factor_authentication: Two-factor Auth two_factor_authentication: Two-factor Auth
your_apps: Your applications
statuses: statuses:
attached: attached:
description: 'Attached: %{attached}' description: 'Attached: %{attached}'

View file

@ -869,9 +869,7 @@ eo:
notifications: Sciigoj notifications: Sciigoj
preferences: Preferoj preferences: Preferoj
relationships: Follows and followers relationships: Follows and followers
settings: Agordoj
two_factor_authentication: Dufaktora aŭtentigo two_factor_authentication: Dufaktora aŭtentigo
your_apps: Viaj aplikaĵoj
statuses: statuses:
attached: attached:
description: 'Ligita: %{attached}' description: 'Ligita: %{attached}'

View file

@ -705,9 +705,7 @@ es:
migrate: Migración de cuenta migrate: Migración de cuenta
notifications: Notificaciones notifications: Notificaciones
preferences: Preferencias preferences: Preferencias
settings: Ajustes
two_factor_authentication: Autenticación de dos factores two_factor_authentication: Autenticación de dos factores
your_apps: Tus aplicaciones
statuses: statuses:
attached: attached:
description: 'Adjunto: %{attached}' description: 'Adjunto: %{attached}'

View file

@ -787,9 +787,7 @@ eu:
migrate: Kontuaren migrazioa migrate: Kontuaren migrazioa
notifications: Jakinarazpenak notifications: Jakinarazpenak
preferences: Hobespenak preferences: Hobespenak
settings: Ezarpenak
two_factor_authentication: Bi faktoreetako autentifikazioa two_factor_authentication: Bi faktoreetako autentifikazioa
your_apps: Zure aplikazioak
statuses: statuses:
attached: attached:
description: 'Erantsita: %{attached}' description: 'Erantsita: %{attached}'

View file

@ -860,9 +860,7 @@ fa:
notifications: اعلان‌ها notifications: اعلان‌ها
preferences: ترجیحات preferences: ترجیحات
relationships: پیگیری‌ها و پیگیران relationships: پیگیری‌ها و پیگیران
settings: تنظیمات
two_factor_authentication: ورود دومرحله‌ای two_factor_authentication: ورود دومرحله‌ای
your_apps: برنامهٔ شما
statuses: statuses:
attached: attached:
description: 'پیوست‌شده: %{attached}' description: 'پیوست‌شده: %{attached}'

View file

@ -613,9 +613,7 @@ fi:
migrate: Tilin muutto muualle migrate: Tilin muutto muualle
notifications: Ilmoitukset notifications: Ilmoitukset
preferences: Ominaisuudet preferences: Ominaisuudet
settings: Asetukset
two_factor_authentication: Kaksivaiheinen todentaminen two_factor_authentication: Kaksivaiheinen todentaminen
your_apps: Omat sovellukset
statuses: statuses:
attached: attached:
description: 'Liitetty: %{attached}' description: 'Liitetty: %{attached}'

View file

@ -798,9 +798,7 @@ fr:
migrate: Migration de compte migrate: Migration de compte
notifications: Notifications notifications: Notifications
preferences: Préférences preferences: Préférences
settings: Réglages
two_factor_authentication: Identification à deux facteurs two_factor_authentication: Identification à deux facteurs
your_apps: Vos applications
statuses: statuses:
attached: attached:
description: 'Attaché: %{attached}' description: 'Attaché: %{attached}'

View file

@ -855,9 +855,7 @@ gl:
notifications: Notificacións notifications: Notificacións
preferences: Preferencias preferences: Preferencias
relationships: Seguindo e seguidoras relationships: Seguindo e seguidoras
settings: Axustes
two_factor_authentication: Validar Doble Factor two_factor_authentication: Validar Doble Factor
your_apps: As súas aplicacións
statuses: statuses:
attached: attached:
description: 'Axenado: %{attached}' description: 'Axenado: %{attached}'

View file

@ -310,7 +310,6 @@ he:
export: יצוא מידע export: יצוא מידע
import: יבוא import: יבוא
preferences: העדפות preferences: העדפות
settings: הגדרות
two_factor_authentication: אימות דו-שלבי two_factor_authentication: אימות דו-שלבי
statuses: statuses:
open_in_web: פתח ברשת open_in_web: פתח ברשת

View file

@ -115,7 +115,6 @@ hr:
export: Izvoz podataka export: Izvoz podataka
import: Uvezi import: Uvezi
preferences: Postavke preferences: Postavke
settings: Podešenja
two_factor_authentication: Dvo-faktorska Autentifikacija two_factor_authentication: Dvo-faktorska Autentifikacija
statuses: statuses:
open_in_web: Otvori na webu open_in_web: Otvori na webu

View file

@ -533,9 +533,7 @@ hu:
migrate: Fiók átirányítása migrate: Fiók átirányítása
notifications: Értesítések notifications: Értesítések
preferences: Általános beállítások preferences: Általános beállítások
settings: Beállítások
two_factor_authentication: Kétlépcsős azonosítás two_factor_authentication: Kétlépcsős azonosítás
your_apps: Alkalmazásaid
statuses: statuses:
open_in_web: Megnyitás a weben open_in_web: Megnyitás a weben
over_character_limit: Túllépted a maximális %{max} karakteres keretet over_character_limit: Túllépted a maximális %{max} karakteres keretet

View file

@ -334,7 +334,6 @@ id:
export: Expor data export: Expor data
import: Impor import: Impor
preferences: Pilihan preferences: Pilihan
settings: Pengaturan
two_factor_authentication: Autentikasi Two-factor two_factor_authentication: Autentikasi Two-factor
statuses: statuses:
open_in_web: Buka di web open_in_web: Buka di web

View file

@ -235,7 +235,6 @@ io:
export: Exportacar datumi export: Exportacar datumi
import: Importacar import: Importacar
preferences: Preferi preferences: Preferi
settings: Settings
two_factor_authentication: Dufaktora autentikigo two_factor_authentication: Dufaktora autentikigo
statuses: statuses:
open_in_web: Apertar retnavigile open_in_web: Apertar retnavigile

View file

@ -762,9 +762,7 @@ it:
migrate: Migrazione dell'account migrate: Migrazione dell'account
notifications: Notifiche notifications: Notifiche
preferences: Preferenze preferences: Preferenze
settings: Impostazioni
two_factor_authentication: Autenticazione a due fattori two_factor_authentication: Autenticazione a due fattori
your_apps: Le tue applicazioni
statuses: statuses:
attached: attached:
description: 'Allegato: %{attached}' description: 'Allegato: %{attached}'

View file

@ -871,9 +871,7 @@ ja:
notifications: 通知 notifications: 通知
preferences: ユーザー設定 preferences: ユーザー設定
relationships: フォロー・フォロワー relationships: フォロー・フォロワー
settings: 設定
two_factor_authentication: 二段階認証 two_factor_authentication: 二段階認証
your_apps: アプリ
statuses: statuses:
attached: attached:
description: '添付: %{attached}' description: '添付: %{attached}'

View file

@ -668,9 +668,7 @@ ka:
migrate: ანგარიშის მიგრაცია migrate: ანგარიშის მიგრაცია
notifications: შეტყობინებები notifications: შეტყობინებები
preferences: პრეფერენციები preferences: პრეფერენციები
settings: პარამეტრები
two_factor_authentication: მეორე-ფაქტორის აუტენტიფიკაცია two_factor_authentication: მეორე-ფაქტორის აუტენტიფიკაცია
your_apps: თქვენი აპლიკაციები
statuses: statuses:
attached: attached:
description: 'თან დართული: %{attached}' description: 'თან დართული: %{attached}'

View file

@ -797,9 +797,7 @@ kk:
migrate: Аккаунт көшіру migrate: Аккаунт көшіру
notifications: Ескертпелер notifications: Ескертпелер
preferences: Таңдаулар preferences: Таңдаулар
settings: Баптаулар
two_factor_authentication: Екі-факторлы авторизация two_factor_authentication: Екі-факторлы авторизация
your_apps: Қосымшалар
statuses: statuses:
attached: attached:
description: 'Жүктелді: %{attached}' description: 'Жүктелді: %{attached}'

View file

@ -874,9 +874,7 @@ ko:
notifications: 알림 notifications: 알림
preferences: 사용자 설정 preferences: 사용자 설정
relationships: 팔로잉과 팔로워 relationships: 팔로잉과 팔로워
settings: 설정
two_factor_authentication: 2단계 인증 two_factor_authentication: 2단계 인증
your_apps: 애플리케이션
statuses: statuses:
attached: attached:
description: '첨부: %{attached}' description: '첨부: %{attached}'

View file

@ -800,9 +800,7 @@ lt:
migrate: Paskyros migracija migrate: Paskyros migracija
notifications: Pranešimai notifications: Pranešimai
preferences: Preferencijos preferences: Preferencijos
settings: Nustatymai
two_factor_authentication: Dviejų veiksnių autentikacija two_factor_authentication: Dviejų veiksnių autentikacija
your_apps: Jūsų aplikacijos
statuses: statuses:
attached: attached:
description: 'Pridėta: %{attached}' description: 'Pridėta: %{attached}'

View file

@ -856,9 +856,7 @@ nl:
notifications: Meldingen notifications: Meldingen
preferences: Voorkeuren preferences: Voorkeuren
relationships: Volgers en gevolgden relationships: Volgers en gevolgden
settings: Instellingen
two_factor_authentication: Tweestapsverificatie two_factor_authentication: Tweestapsverificatie
your_apps: Jouw toepassingen
statuses: statuses:
attached: attached:
description: 'Bijlagen: %{attached}' description: 'Bijlagen: %{attached}'

View file

@ -533,9 +533,7 @@
migrate: Kontomigrering migrate: Kontomigrering
notifications: Varslinger notifications: Varslinger
preferences: Preferanser preferences: Preferanser
settings: Innstillinger
two_factor_authentication: Tofaktorautentisering two_factor_authentication: Tofaktorautentisering
your_apps: Dine applikasjoner
statuses: statuses:
open_in_web: Åpne i nettleser open_in_web: Åpne i nettleser
over_character_limit: grense på %{max} tegn overskredet over_character_limit: grense på %{max} tegn overskredet

View file

@ -890,9 +890,7 @@ oc:
notifications: Notificacions notifications: Notificacions
preferences: Preferéncias preferences: Preferéncias
relationships: Abonaments e seguidors relationships: Abonaments e seguidors
settings: Paramètres
two_factor_authentication: Autentificacion en dos temps two_factor_authentication: Autentificacion en dos temps
your_apps: Vòstras aplicacions
statuses: statuses:
attached: attached:
description: 'Ajustat: %{attached}' description: 'Ajustat: %{attached}'

View file

@ -889,9 +889,7 @@ pl:
notifications: Powiadomienia notifications: Powiadomienia
preferences: Preferencje preferences: Preferencje
relationships: Śledzeni i śledzący relationships: Śledzeni i śledzący
settings: Ustawienia
two_factor_authentication: Uwierzytelnianie dwuetapowe two_factor_authentication: Uwierzytelnianie dwuetapowe
your_apps: Twoje aplikacje
statuses: statuses:
attached: attached:
description: 'Załączono: %{attached}' description: 'Załączono: %{attached}'

View file

@ -867,9 +867,7 @@ pt-BR:
notifications: Notificações notifications: Notificações
preferences: Preferências preferences: Preferências
relationships: Seguindo e seguidores relationships: Seguindo e seguidores
settings: Configurações
two_factor_authentication: Autenticação em dois passos two_factor_authentication: Autenticação em dois passos
your_apps: Seus aplicativos
statuses: statuses:
attached: attached:
description: 'Anexado: %{attached}' description: 'Anexado: %{attached}'

View file

@ -800,9 +800,7 @@ pt:
migrate: Migração de conta migrate: Migração de conta
notifications: Notificações notifications: Notificações
preferences: Preferências preferences: Preferências
settings: Configurações
two_factor_authentication: Autenticação em dois passos two_factor_authentication: Autenticação em dois passos
your_apps: As tuas aplicações
statuses: statuses:
attached: attached:
description: 'Anexadas: %{attached}' description: 'Anexadas: %{attached}'

View file

@ -698,9 +698,7 @@ ru:
migrate: Перенос аккаунта migrate: Перенос аккаунта
notifications: Уведомления notifications: Уведомления
preferences: Настройки preferences: Настройки
settings: Опции
two_factor_authentication: Двухфакторная аутентификация two_factor_authentication: Двухфакторная аутентификация
your_apps: Ваши приложения
statuses: statuses:
attached: attached:
description: 'Вложение: %{attached}' description: 'Вложение: %{attached}'

View file

@ -831,9 +831,7 @@ sk:
migrate: Presunutie účtu migrate: Presunutie účtu
notifications: Oznámenia notifications: Oznámenia
preferences: Voľby preferences: Voľby
settings: Nastavenia
two_factor_authentication: Dvoj-faktorové overenie two_factor_authentication: Dvoj-faktorové overenie
your_apps: Tvoje aplikácie
statuses: statuses:
attached: attached:
description: 'Priložené: %{attached}' description: 'Priložené: %{attached}'

View file

@ -784,9 +784,7 @@ sq:
migrate: Migrim llogarie migrate: Migrim llogarie
notifications: Njoftime notifications: Njoftime
preferences: Parapëlqime preferences: Parapëlqime
settings: Rregullime
two_factor_authentication: Mirëfilltësim Dyfaktorësh two_factor_authentication: Mirëfilltësim Dyfaktorësh
your_apps: Aplikacionet tuaja
statuses: statuses:
attached: attached:
description: 'Bashkëngjitur: %{attached}' description: 'Bashkëngjitur: %{attached}'

View file

@ -523,9 +523,7 @@ sr-Latn:
migrate: Prebacivanje naloga migrate: Prebacivanje naloga
notifications: Obaveštenja notifications: Obaveštenja
preferences: Podešavanja preferences: Podešavanja
settings: Postavke
two_factor_authentication: Dvofaktorska identifikacija two_factor_authentication: Dvofaktorska identifikacija
your_apps: Vaše aplikacije
statuses: statuses:
open_in_web: Otvori u vebu open_in_web: Otvori u vebu
over_character_limit: ograničenje od %{max} karaktera prekoračeno over_character_limit: ograničenje od %{max} karaktera prekoračeno

View file

@ -792,9 +792,7 @@ sr:
migrate: Пребацивање налога migrate: Пребацивање налога
notifications: Обавештења notifications: Обавештења
preferences: Подешавања preferences: Подешавања
settings: Поставке
two_factor_authentication: Двофакторска идентификација two_factor_authentication: Двофакторска идентификација
your_apps: Ваше апликације
statuses: statuses:
attached: attached:
description: 'У прилогу: %{attached}' description: 'У прилогу: %{attached}'

View file

@ -600,9 +600,7 @@ sv:
migrate: Kontoflytt migrate: Kontoflytt
notifications: Meddelanden notifications: Meddelanden
preferences: Inställningar preferences: Inställningar
settings: Inställningar
two_factor_authentication: Tvåstegsautentisering two_factor_authentication: Tvåstegsautentisering
your_apps: Dina applikationer
statuses: statuses:
attached: attached:
description: 'Bifogad: %{attached}' description: 'Bifogad: %{attached}'

View file

@ -590,9 +590,7 @@ th:
notifications: การแจ้งเตือน notifications: การแจ้งเตือน
preferences: การกำหนดลักษณะ preferences: การกำหนดลักษณะ
relationships: การติดตามและผู้ติดตาม relationships: การติดตามและผู้ติดตาม
settings: การตั้งค่า
two_factor_authentication: การรับรองความถูกต้องด้วยสองปัจจัย two_factor_authentication: การรับรองความถูกต้องด้วยสองปัจจัย
your_apps: แอปพลิเคชันของคุณ
statuses: statuses:
attached: attached:
description: 'แนบ: %{attached}' description: 'แนบ: %{attached}'

View file

@ -347,7 +347,6 @@ tr:
export: Dışa aktar export: Dışa aktar
import: İçe aktar import: İçe aktar
preferences: Tercihler preferences: Tercihler
settings: Ayarlar
two_factor_authentication: İki-faktörlü doğrulama two_factor_authentication: İki-faktörlü doğrulama
statuses: statuses:
open_in_web: Web sayfasında aç open_in_web: Web sayfasında aç

View file

@ -648,9 +648,7 @@ uk:
migrate: Міграція акаунту migrate: Міграція акаунту
notifications: Сповіщення notifications: Сповіщення
preferences: Налаштування preferences: Налаштування
settings: Опції
two_factor_authentication: Двофакторна авторизація two_factor_authentication: Двофакторна авторизація
your_apps: Ваші затосунки
statuses: statuses:
attached: attached:
description: 'Прикріплено: %{attached}' description: 'Прикріплено: %{attached}'

View file

@ -670,9 +670,7 @@ zh-CN:
migrate: 帐户迁移 migrate: 帐户迁移
notifications: 通知 notifications: 通知
preferences: 首选项 preferences: 首选项
settings: 设置
two_factor_authentication: 双重认证 two_factor_authentication: 双重认证
your_apps: 你的应用
statuses: statuses:
attached: attached:
description: 附加媒体:%{attached} description: 附加媒体:%{attached}

View file

@ -597,9 +597,7 @@ zh-HK:
migrate: 帳戶遷移 migrate: 帳戶遷移
notifications: 通知 notifications: 通知
preferences: 偏好設定 preferences: 偏好設定
settings: 設定
two_factor_authentication: 雙重認證 two_factor_authentication: 雙重認證
your_apps: 你的應用程式
statuses: statuses:
attached: attached:
description: 附件: %{attached} description: 附件: %{attached}

View file

@ -666,9 +666,7 @@ zh-TW:
migrate: 帳戶搬遷 migrate: 帳戶搬遷
notifications: 通知 notifications: 通知
preferences: 偏好設定 preferences: 偏好設定
settings: 設定
two_factor_authentication: 兩階段認證 two_factor_authentication: 兩階段認證
your_apps: 你的應用程式
statuses: statuses:
attached: attached:
description: 附件: %{attached} description: 附件: %{attached}

View file

@ -1,50 +1,53 @@
# frozen_string_literal: true # frozen_string_literal: true
SimpleNavigation::Configuration.run do |navigation| SimpleNavigation::Configuration.run do |navigation|
navigation.items do |primary| navigation.items do |n|
primary.item :web, safe_join([fa_icon('chevron-left fw'), t('settings.back')]), root_url n.item :web, safe_join([fa_icon('chevron-left fw'), t('settings.back')]), root_url
primary.item :settings, safe_join([fa_icon('cog fw'), t('settings.settings')]), settings_profile_url do |settings| n.item :profile, safe_join([fa_icon('user fw'), t('settings.profile')]), settings_profile_url do |s|
settings.item :profile, safe_join([fa_icon('user fw'), t('settings.edit_profile')]), settings_profile_url, highlights_on: %r{/settings/profile|/settings/migration} s.item :profile, safe_join([fa_icon('pencil fw'), t('settings.appearance')]), settings_profile_url, highlights_on: %r{/settings/profile|/settings/migration}
settings.item :featured_tags, safe_join([fa_icon('hashtag fw'), t('settings.featured_tags')]), settings_featured_tags_url s.item :featured_tags, safe_join([fa_icon('hashtag fw'), t('settings.featured_tags')]), settings_featured_tags_url
settings.item :preferences, safe_join([fa_icon('sliders fw'), t('settings.preferences')]), settings_preferences_url s.item :identity_proofs, safe_join([fa_icon('key fw'), t('settings.identity_proofs')]), settings_identity_proofs_path, highlights_on: %r{/settings/identity_proofs*}, if: proc { current_account.identity_proofs.exists? }
settings.item :notifications, safe_join([fa_icon('bell fw'), t('settings.notifications')]), settings_notifications_url
settings.item :password, safe_join([fa_icon('lock fw'), t('auth.security')]), edit_user_registration_url, highlights_on: %r{/auth/edit|/settings/delete}
settings.item :two_factor_authentication, safe_join([fa_icon('mobile fw'), t('settings.two_factor_authentication')]), settings_two_factor_authentication_url, highlights_on: %r{/settings/two_factor_authentication}
settings.item :import, safe_join([fa_icon('cloud-upload fw'), t('settings.import')]), settings_import_url
settings.item :export, safe_join([fa_icon('cloud-download fw'), t('settings.export')]), settings_export_url
settings.item :authorized_apps, safe_join([fa_icon('list fw'), t('settings.authorized_apps')]), oauth_authorized_applications_url
settings.item :identity_proofs, safe_join([fa_icon('key fw'), t('settings.identity_proofs')]), settings_identity_proofs_path, highlights_on: %r{/settings/identity_proofs*}, if: proc { current_account.identity_proofs.exists? }
end end
primary.item :relationships, safe_join([fa_icon('users fw'), t('settings.relationships')]), relationships_url n.item :preferences, safe_join([fa_icon('cog fw'), t('settings.preferences')]), settings_preferences_url, highlights_on: %r{/settings/preferences|/settings/notifications}
primary.item :filters, safe_join([fa_icon('filter fw'), t('filters.index.title')]), filters_path, highlights_on: %r{/filters} n.item :relationships, safe_join([fa_icon('users fw'), t('settings.relationships')]), relationships_url
primary.item :invites, safe_join([fa_icon('user-plus fw'), t('invites.title')]), invites_path, if: proc { Setting.min_invite_role == 'user' } n.item :filters, safe_join([fa_icon('filter fw'), t('filters.index.title')]), filters_path, highlights_on: %r{/filters}
primary.item :development, safe_join([fa_icon('code fw'), t('settings.development')]), settings_applications_url do |development| n.item :security, safe_join([fa_icon('lock fw'), t('settings.account')]), edit_user_registration_url do |s|
development.item :your_apps, safe_join([fa_icon('list fw'), t('settings.your_apps')]), settings_applications_url, highlights_on: %r{/settings/applications} s.item :password, safe_join([fa_icon('lock fw'), t('settings.account_settings')]), edit_user_registration_url, highlights_on: %r{/auth/edit|/settings/delete}
s.item :two_factor_authentication, safe_join([fa_icon('mobile fw'), t('settings.two_factor_authentication')]), settings_two_factor_authentication_url, highlights_on: %r{/settings/two_factor_authentication}
s.item :authorized_apps, safe_join([fa_icon('list fw'), t('settings.authorized_apps')]), oauth_authorized_applications_url
end end
primary.item :moderation, safe_join([fa_icon('gavel fw'), t('moderation.title')]), admin_reports_url, if: proc { current_user.staff? } do |admin| n.item :data, safe_join([fa_icon('cloud-download fw'), t('settings.import_and_export')]), settings_export_url do |s|
admin.item :action_logs, safe_join([fa_icon('bars fw'), t('admin.action_logs.title')]), admin_action_logs_url s.item :import, safe_join([fa_icon('cloud-upload fw'), t('settings.import')]), settings_import_url
admin.item :reports, safe_join([fa_icon('flag fw'), t('admin.reports.title')]), admin_reports_url, highlights_on: %r{/admin/reports} s.item :export, safe_join([fa_icon('cloud-download fw'), t('settings.export')]), settings_export_url
admin.item :accounts, safe_join([fa_icon('users fw'), t('admin.accounts.title')]), admin_accounts_url, highlights_on: %r{/admin/accounts|/admin/pending_accounts}
admin.item :invites, safe_join([fa_icon('user-plus fw'), t('admin.invites.title')]), admin_invites_path
admin.item :tags, safe_join([fa_icon('tag fw'), t('admin.tags.title')]), admin_tags_path
admin.item :instances, safe_join([fa_icon('cloud fw'), t('admin.instances.title')]), admin_instances_url(limited: '1'), highlights_on: %r{/admin/instances|/admin/domain_blocks}, if: -> { current_user.admin? }
admin.item :email_domain_blocks, safe_join([fa_icon('envelope fw'), t('admin.email_domain_blocks.title')]), admin_email_domain_blocks_url, highlights_on: %r{/admin/email_domain_blocks}, if: -> { current_user.admin? }
end end
primary.item :admin, safe_join([fa_icon('cogs fw'), t('admin.title')]), admin_dashboard_url, if: proc { current_user.staff? } do |admin| n.item :invites, safe_join([fa_icon('user-plus fw'), t('invites.title')]), invites_path, if: proc { Setting.min_invite_role == 'user' }
admin.item :dashboard, safe_join([fa_icon('tachometer fw'), t('admin.dashboard.title')]), admin_dashboard_url n.item :development, safe_join([fa_icon('code fw'), t('settings.development')]), settings_applications_url
admin.item :settings, safe_join([fa_icon('cogs fw'), t('admin.settings.title')]), edit_admin_settings_url, if: -> { current_user.admin? }, highlights_on: %r{/admin/settings}
admin.item :custom_emojis, safe_join([fa_icon('smile-o fw'), t('admin.custom_emojis.title')]), admin_custom_emojis_url, highlights_on: %r{/admin/custom_emojis} n.item :moderation, safe_join([fa_icon('gavel fw'), t('moderation.title')]), admin_reports_url, if: proc { current_user.staff? } do |s|
admin.item :relays, safe_join([fa_icon('exchange fw'), t('admin.relays.title')]), admin_relays_url, if: -> { current_user.admin? }, highlights_on: %r{/admin/relays} s.item :action_logs, safe_join([fa_icon('bars fw'), t('admin.action_logs.title')]), admin_action_logs_url
admin.item :subscriptions, safe_join([fa_icon('paper-plane-o fw'), t('admin.subscriptions.title')]), admin_subscriptions_url, if: -> { current_user.admin? } s.item :reports, safe_join([fa_icon('flag fw'), t('admin.reports.title')]), admin_reports_url, highlights_on: %r{/admin/reports}
admin.item :sidekiq, safe_join([fa_icon('diamond fw'), 'Sidekiq']), sidekiq_url, link_html: { target: 'sidekiq' }, if: -> { current_user.admin? } s.item :accounts, safe_join([fa_icon('users fw'), t('admin.accounts.title')]), admin_accounts_url, highlights_on: %r{/admin/accounts|/admin/pending_accounts}
admin.item :pghero, safe_join([fa_icon('database fw'), 'PgHero']), pghero_url, link_html: { target: 'pghero' }, if: -> { current_user.admin? } s.item :invites, safe_join([fa_icon('user-plus fw'), t('admin.invites.title')]), admin_invites_path
s.item :tags, safe_join([fa_icon('tag fw'), t('admin.tags.title')]), admin_tags_path
s.item :instances, safe_join([fa_icon('cloud fw'), t('admin.instances.title')]), admin_instances_url(limited: '1'), highlights_on: %r{/admin/instances|/admin/domain_blocks}, if: -> { current_user.admin? }
s.item :email_domain_blocks, safe_join([fa_icon('envelope fw'), t('admin.email_domain_blocks.title')]), admin_email_domain_blocks_url, highlights_on: %r{/admin/email_domain_blocks}, if: -> { current_user.admin? }
end end
primary.item :logout, safe_join([fa_icon('sign-out fw'), t('auth.logout')]), destroy_user_session_url, link_html: { 'data-method' => 'delete' } n.item :admin, safe_join([fa_icon('cogs fw'), t('admin.title')]), admin_dashboard_url, if: proc { current_user.staff? } do |s|
s.item :dashboard, safe_join([fa_icon('tachometer fw'), t('admin.dashboard.title')]), admin_dashboard_url
s.item :settings, safe_join([fa_icon('cogs fw'), t('admin.settings.title')]), edit_admin_settings_url, if: -> { current_user.admin? }, highlights_on: %r{/admin/settings}
s.item :custom_emojis, safe_join([fa_icon('smile-o fw'), t('admin.custom_emojis.title')]), admin_custom_emojis_url, highlights_on: %r{/admin/custom_emojis}
s.item :relays, safe_join([fa_icon('exchange fw'), t('admin.relays.title')]), admin_relays_url, if: -> { current_user.admin? }, highlights_on: %r{/admin/relays}
s.item :subscriptions, safe_join([fa_icon('paper-plane-o fw'), t('admin.subscriptions.title')]), admin_subscriptions_url, if: -> { current_user.admin? }
s.item :sidekiq, safe_join([fa_icon('diamond fw'), 'Sidekiq']), sidekiq_url, link_html: { target: 'sidekiq' }, if: -> { current_user.admin? }
s.item :pghero, safe_join([fa_icon('database fw'), 'PgHero']), pghero_url, link_html: { target: 'pghero' }, if: -> { current_user.admin? }
end
n.item :logout, safe_join([fa_icon('sign-out fw'), t('auth.logout')]), destroy_user_session_url, link_html: { 'data-method' => 'delete' }
end end
end end