forked from mastodon/mastodon
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
66 changed files
with
1,308 additions
and
323 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
web: bundle exec puma -C config/puma.rb | ||
worker: bundle exec sidekiq -q default -q mailers -q push | ||
worker: bundle exec sidekiq -q default -q push -q pull -q mailers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
const eo = { | ||
"column_back_button.label": "Reveni", | ||
"lightbox.close": "Fermi", | ||
"loading_indicator.label": "Ŝarĝanta...", | ||
"status.mention": "Mencii @{name}", | ||
"status.delete": "Forigi", | ||
"status.reply": "Respondi", | ||
"status.reblog": "Diskonigi", | ||
"status.favourite": "Favori", | ||
"status.reblogged_by": "{name} diskonigita", | ||
"status.sensitive_warning": "Tikla enhavo", | ||
"status.sensitive_toggle": "Alklaki por vidi", | ||
"video_player.toggle_sound": "Aktivigi sonojn", | ||
"account.mention": "Mencii @{name}", | ||
"account.edit_profile": "Redakti la profilon", | ||
"account.unblock": "Malbloki @{name}", | ||
"account.unfollow": "Malsekvi", | ||
"account.block": "Bloki @{name}", | ||
"account.follow": "Sekvi", | ||
"account.posts": "Mesaĝoj", | ||
"account.follows": "Sekvatoj", | ||
"account.followers": "Sekvantoj", | ||
"account.follows_you": "Sekvas vin", | ||
"account.requested": "Atendas aprobon", | ||
"getting_started.heading": "Por komenci", | ||
"getting_started.about_addressing": "Vi povas sekvi homojn se vi konas la uzantnomon kaj domajnon tajpinte retpoŝtecan adreson en la serĉilon.", | ||
"getting_started.about_shortcuts": "Se la celita uzanto troviĝas en la sama domajno de vi, uzi nur la uzantnomon sufiĉos. La sama regulo validas por mencii aliajn uzantojn en mesaĝo.", | ||
"getting_started.open_source_notice": "Mastodon estas malfermitkoda programo. Vi povas kontribui aŭ raporti problemojn en github je {github}. {apps}.", | ||
"column.home": "Hejmo", | ||
"column.community": "Loka tempolinio", | ||
"column.public": "Fratara tempolinio", | ||
"column.notifications": "Sciigoj", | ||
"tabs_bar.compose": "Ekskribi", | ||
"tabs_bar.home": "Hejmo", | ||
"tabs_bar.mentions": "Sciigoj", | ||
"tabs_bar.public": "Fratara tempolinio", | ||
"tabs_bar.notifications": "Sciigoj", | ||
"compose_form.placeholder": "Pri kio vi pensas?", | ||
"compose_form.publish": "Hup", | ||
"compose_form.sensitive": "Marki ke la enhavo estas tikla", | ||
"compose_form.spoiler": "Kaŝi la tekston malantaŭ averto", | ||
"compose_form.private": "Marki ke la enhavo estas privata", | ||
"compose_form.privacy_disclaimer": "Via privata mesaĝo estos sendita nur al menciitaj uzantoj en {domains}. Ĉu vi fidas {domainsCount, plural, one {tiun servilon} other {tiujn servilojn}}? Mesaĝa privateco funkcias nur en aperaĵoj de Mastodon. Se {domains} {domainsCount, plural, one {ne estas aperaĵo de Mastodon} other {ne estas aperaĵoj de Mastodon}}, estos neniu indiko ke via mesaĝo estas privata, kaj ĝi povus esti diskonigita aŭ videbligita al necelitaj ricevantoj.", | ||
"compose_form.unlisted": "Ne afiŝi en publikaj tempolinioj", | ||
"navigation_bar.edit_profile": "Redakti la profilon", | ||
"navigation_bar.preferences": "Preferoj", | ||
"navigation_bar.community_timeline": "Loka tempolinio", | ||
"navigation_bar.public_timeline": "Fratara tempolinio", | ||
"navigation_bar.logout": "Elsaluti", | ||
"reply_indicator.cancel": "Rezigni", | ||
"search.placeholder": "Serĉi", | ||
"search.account": "Konto", | ||
"search.hashtag": "Kradvorto", | ||
"upload_button.label": "Aldoni enhavaĵon", | ||
"upload_form.undo": "Malfari", | ||
"notification.follow": "{name} sekvis vin", | ||
"notification.favourite": "{name} favoris vian mesaĝon", | ||
"notification.reblog": "{name} diskonigis vian mesaĝon", | ||
"notification.mention": "{name} menciis vin", | ||
"notifications.column_settings.alert": "Retumilaj atentigoj", | ||
"notifications.column_settings.show": "Montri en kolono", | ||
"notifications.column_settings.follow": "Novaj sekvantoj:", | ||
"notifications.column_settings.favourite": "Favoroj:", | ||
"notifications.column_settings.mention": "Mencioj:", | ||
"notifications.column_settings.reblog": "Diskonigoj:", | ||
}; | ||
|
||
export default eo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# frozen_string_literal: true | ||
|
||
module Localized | ||
extend ActiveSupport::Concern | ||
|
||
included do | ||
before_action :set_locale | ||
end | ||
|
||
def set_locale | ||
I18n.locale = current_user.try(:locale) || default_locale | ||
rescue I18n::InvalidLocale | ||
I18n.locale = default_locale | ||
end | ||
|
||
def default_locale | ||
ENV.fetch('DEFAULT_LOCALE') { I18n.default_locale } | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
app/controllers/oauth/authorized_applications_controller.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# frozen_string_literal: true | ||
|
||
class Oauth::AuthorizedApplicationsController < Doorkeeper::AuthorizedApplicationsController | ||
include Localized | ||
|
||
skip_before_action :authenticate_resource_owner! | ||
|
||
before_action :store_current_location | ||
before_action :authenticate_resource_owner! | ||
|
||
private | ||
|
||
def store_current_location | ||
store_location_for(:user, request.url) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.