diff --git a/config/initializers/db2fog.rb b/config/initializers/db2fog.rb index 1e05ceae1a..3e1ed96202 100644 --- a/config/initializers/db2fog.rb +++ b/config/initializers/db2fog.rb @@ -1,3 +1,5 @@ +require_relative 'spree' + # See: https://github.com/yob/db2fog DB2Fog.config = { :aws_access_key_id => Spree::Config[:s3_access_key], @@ -5,3 +7,5 @@ DB2Fog.config = { :directory => ENV['S3_BACKUPS_BUCKET'], :provider => 'AWS' } + +DB2Fog.config[:region] = ENV['S3_REGION'] if ENV['S3_REGION'] diff --git a/config/initializers/spree.rb b/config/initializers/spree.rb index e05f847f00..d578b316ea 100644 --- a/config/initializers/spree.rb +++ b/config/initializers/spree.rb @@ -25,7 +25,7 @@ Spree.config do |config| config.s3_bucket = ENV['S3_BUCKET'] if ENV['S3_BUCKET'] config.s3_access_key = ENV['S3_ACCESS_KEY'] if ENV['S3_ACCESS_KEY'] config.s3_secret = ENV['S3_SECRET'] if ENV['S3_SECRET'] - config.use_s3 = true if ENV['S3_ACCESS_KEY'] && ENV['S3_SECRET'] + config.use_s3 = true if ENV['S3_BUCKET'] config.s3_protocol = ENV.fetch('S3_PROTOCOL', 'https') end diff --git a/config/locales/ca.yml b/config/locales/ca.yml index 410c1903a7..5cac8ef852 100644 --- a/config/locales/ca.yml +++ b/config/locales/ca.yml @@ -1427,7 +1427,7 @@ ca: email_signoff: "Salut," email_signature: "Equip %{sitename}" email_confirm_customer_greeting: "Hola %{name}," - email_confirm_customer_intro_html: "Gràcies per comprar a %{distributor}." + email_confirm_customer_intro_html: "Gràcies per comprar a %{distributor}." email_confirm_customer_number_html: "Confirmació de la comanda # %{number} " email_confirm_customer_details_html: "Aquests són els detalls de la teva comanda de %{distributor} :" email_confirm_customer_signoff: "Salutacions cordials," diff --git a/config/locales/de_DE.yml b/config/locales/de_DE.yml index 3b2cc74e47..006f18c27b 100644 --- a/config/locales/de_DE.yml +++ b/config/locales/de_DE.yml @@ -1195,7 +1195,7 @@ de_DE: menu_4_title: "Gruppen" menu_4_url: "/groups" menu_5_title: "Über Uns" - menu_5_url: "http://www.openfoodnetwork.org/" + menu_5_url: "https://wp.openfoodnetwork.de" menu_6_title: "Verbinden" menu_6_url: "https://openfoodnetwork.org/au/connect/" menu_7_title: "Mehr Erfahren" @@ -1214,7 +1214,7 @@ de_DE: footer_pinterest_url: "Pinterest URL" footer_email: "E-Mail:" footer_links_md: "Links" - footer_about_url: "Über URL" + footer_about_url: "Über Uns URL" user_guide_link: "Benutzerhandbuch-Link" name: Name first_name: Vorname @@ -1973,7 +1973,7 @@ de_DE: loading_customers: "Kunden werden geladen" no_customers_found: "Keine Kunden gefunden" go: "Gehen" - hub: "Nabe" + hub: "Hub" producer: "Produzent" product: "Produkt" price: "Preis" @@ -2045,7 +2045,7 @@ de_DE: admin_share_zipcode: "Postleitzahl" admin_share_country: "Land" admin_share_state: "Bundesland" - hub_sidebar_hubs: "Naben" + hub_sidebar_hubs: "Hubs" hub_sidebar_none_available: "Keine verfügbar" hub_sidebar_manage: "Verwalten" hub_sidebar_at_least: "Mindestens ein Hub muss ausgewählt sein" @@ -2059,7 +2059,7 @@ de_DE: report_customers_csv: "Download als CSV" report_producers: "Erzeuger:" report_type: "Berichtsart:" - report_hubs: "Naben:" + report_hubs: "Hubs:" report_payment: "Zahlungsarten:" report_distributor: "Verteiler:" report_payment_by: 'Zahlungen nach Art' @@ -2083,9 +2083,9 @@ de_DE: report_header_address: Adresse report_header_billing_address: Rechnungsadresse report_header_relationship: Beziehung - report_header_hub: Nabe + report_header_hub: Hub report_header_hub_address: Hubadresse - report_header_to_hub: Zu Nabe + report_header_to_hub: Zu Hub report_header_hub_code: Hub-Code report_header_code: Code report_header_paid: Bezahlt? @@ -2307,7 +2307,7 @@ de_DE: error: Fehler unavailable: Nicht verfügbar profile: Profil - hub: Nabe + hub: Hub shop: Laden choose: Wählen resolve_errors: Bitte beheben Sie die folgenden Fehler @@ -3023,50 +3023,52 @@ de_DE: pending: steht aus ended: beendet paused: pausiert - canceled: abgebrochen + canceled: storniert user_mailer: reset_password_instructions: request_sent_text: | - Es wurde angefragt, das Passwort zurückzusetzen. Falls dies nicht der Fall ist, bitten wir dieses Email zu ignorieren. + Es wurde angefragt, das Passwort zurückzusetzen. + Sollte kein neues Passwort angefordert werden, bitte dieses E-Mail ignorieren. link_text: > - Möchtest Du das Passwort zurücksetzen? Bitte den Link unten auszuwählen. + Sollte ein neues Passwort angefordert werden, bitte den folgenden Aktivierungslink + bestätigen. issue_text: | - Falls die URL unten nicht funktionieren sollte, versuche die Adresse mit Hilfe von "copy and paste" in dein Browserfenster zu übertragen. + Falls die URL nicht funktioniert, bitte den Link kopieren und in die Adresszeile Ihres Browsers einfügen confirmation_instructions: - subject: Bitte bestätigen Sie Ihr OFN-Konto + subject: Bitte OFN-Konto bestätigen users: form: account_settings: Konto Einstellungen show: tabs: - orders: Aufträge + orders: Bestellungen cards: Kreditkarten transactions: Transaktionen settings: Konto Einstellungen unconfirmed_email: "Ausstehende E-Mail-Bestätigung für: %{unconfirmed_email}. Ihre E-Mail-Adresse wird aktualisiert, sobald die neue E-Mail bestätigt wurde." orders: open_orders: Offene Bestellungen - past_orders: Frühere Bestellungen + past_orders: Vergangene Bestellungen transactions: - transaction_history: Verlauf der Transaktionen + transaction_history: Transaktionsverlauf open_orders: order: Bestellung shop: Laden - changes_allowed_until: Änderungen erlaubt bis - items: Artikel + changes_allowed_until: Änderung möglich bis + items: Produkte total: Gesamt - edit: Bearbeite - cancel: Abrechen - closed: Geschlossen + edit: Bearbeiten + cancel: Abbrechen + closed: Abgeschlossen until: Bis past_orders: - order: Auftrag + order: Bestellung shop: Laden - completed_at: Erfolgt am + completed_at: Abgeschlossen am items: Artikel total: Gesamt paid?: Bezahlt? - view: Aussicht + view: Ansehen saved_cards: default?: Standard? delete?: Löschen? @@ -3075,7 +3077,7 @@ de_DE: authorised_shops_popover: Dies ist die Liste der Shops, die Ihre Standardkreditkarte für eventuell vorhandene Abonnements (dh wiederkehrende Bestellungen) belasten dürfen. Ihre Kartendetails werden sicher aufbewahrt und nicht an Ladenbesitzer weitergegeben. Sie werden immer benachrichtigt, wenn Sie belastet werden. saved_cards_popover: Dies ist die Liste der Karten, die Sie für spätere Verwendung gespeichert haben. Ihr "Standard" wird automatisch beim Abschließen einer Bestellung ausgewählt und kann von allen Geschäften belastet werden, die Sie dazu berechtigt haben (siehe rechts). authorised_shops: - shop_name: "Laden Name" + shop_name: "Ladenname" allow_charges?: "Gebühren erlauben?" localized_number: - invalid_format: hat ein ungültiges Format. Bitte gebe eine Nummer ein. + invalid_format: hat ein ungültiges Format. Bitte Ziffern eingeben. diff --git a/config/locales/en_GB.yml b/config/locales/en_GB.yml index 7093ade553..a22cc9adfe 100644 --- a/config/locales/en_GB.yml +++ b/config/locales/en_GB.yml @@ -178,7 +178,7 @@ en_GB: percentage_of_sales: "%{percentage} of sales" capped_at_cap: "capped at %{cap}" per_month: "per month" - free: "pay what you can" + free: "Plans starting from £1/month" free_trial: "free trial" plus_tax: "plus VAT" min_bill_turnover_desc: "once turnover exceeds %{mbt_amount}" @@ -807,7 +807,7 @@ en_GB: change_type_form: producer_profile: Producer Profile connect_ofn: Connect through OFN - always_free: Plans starting from £1/month + always_free: Free producer_description_text: Add your products to Open Food Network, allowing hubs to stock your products in their stores. producer_shop: Producer Shop sell_your_produce: Sell your own produce diff --git a/config/locales/fr_BE.yml b/config/locales/fr_BE.yml index 9a59c7b8be..bf4dc0962f 100644 --- a/config/locales/fr_BE.yml +++ b/config/locales/fr_BE.yml @@ -1228,7 +1228,7 @@ fr_BE: city_placeholder: 'ex: Nantes' postcode: Code postal postcode_placeholder: 'ex: 44000' - state: Département + state: Province country: Pays unauthorized: Non authorisé terms_of_service: "Conditions d'utilisation" @@ -1692,7 +1692,7 @@ fr_BE: password: Mot de passe remember_me: Se souvenir de moi are_you_sure: "Confirmer?" - orders_open: Boutique ouverte + orders_open: Comptoir ouvert closing: "Fermeture " going_back_to_home_page: "Retour à la page d'accueil" creating: Création @@ -1777,8 +1777,8 @@ fr_BE: postcode_field: "Code postal:" postcode_field_placeholder: "ex: 44000" postcode_field_error: "Veuillez saisir le code postal" - state_field: "Département:" - state_field_error: "Veuillez saisir un Département" + state_field: "Province:" + state_field_error: "Veuillez saisir une Province" country_field: "Pays:" country_field_error: "Veuillez saisir une Pays" contact: @@ -1925,7 +1925,7 @@ fr_BE: admin_enterprise_groups_contact_city_placeholder: "ex: Nantes" admin_enterprise_groups_contact_zipcode: "Code postal" admin_enterprise_groups_contact_zipcode_placeholder: "ex: 44000" - admin_enterprise_groups_contact_state_id: "Département" + admin_enterprise_groups_contact_state_id: "Province" admin_enterprise_groups_contact_country_id: "Pays" admin_enterprise_groups_web: "Liens web" admin_enterprise_groups_web_twitter: "ex: @OpenFoodNet_fr" @@ -2043,7 +2043,7 @@ fr_BE: admin_share_city: "Ville" admin_share_zipcode: "Code postal" admin_share_country: "Pays" - admin_share_state: "Département" + admin_share_state: "Province" hub_sidebar_hubs: "Comptoirs" hub_sidebar_none_available: "Aucun disponible" hub_sidebar_manage: "Gérer" @@ -2096,14 +2096,14 @@ fr_BE: report_header_ship_street_2: ' Rue (2) Livraison' report_header_ship_city: Ville Livraison report_header_ship_postcode: Code Postal Livraison - report_header_ship_state: Département Livraison + report_header_ship_state: Province Livraison report_header_billing_street: Rue Facturation report_header_billing_street_2: Rue (2) Facturation report_header_billing_street_3: Rue (3) Facturation report_header_billing_street_4: Rue (4) Facturation report_header_billing_city: Ville Facturation report_header_billing_postcode: Code Postal Facturation - report_header_billing_state: Département Facturation + report_header_billing_state: Province Facturation report_header_incoming_transport: Transport réception report_header_special_instructions: Note au producteur report_header_order_number: N° commande @@ -2742,7 +2742,7 @@ fr_BE: states_required: "Provinces requises" editing_country: "Pays d'édition" back_to_countries_list: "Retouner vers la liste des pays" - states: "Province" + states: "Provinces" abbreviation: "Abréviation" new_state: "Nouvelle Province" payment_methods: "Méthodes de paiement" diff --git a/config/locales/nl_BE.yml b/config/locales/nl_BE.yml index 0860e54c21..36f5f0fb4c 100644 --- a/config/locales/nl_BE.yml +++ b/config/locales/nl_BE.yml @@ -2588,7 +2588,7 @@ nl_BE: fee_placement: "invulplaats voor de commissie " fee_calculated_on_transfer_through_name: "Berekening van de commissie op verdracht door" tax_category_name: "Belastingcategorie" - total_amount: "$$ SUM" + total_amount: "€€ SUM" html: header: fee_type: "Sprookjesachtig type" @@ -2598,7 +2598,7 @@ nl_BE: fee_placement: "invulplaats van de commissie " fee_calculated_on_transfer_through_name: "Berekening van de commissie op verdracht door" tax_category_name: "Belastingcategorie" - total_amount: "$$ SUM" + total_amount: "€€ SUM" invalid_filter_parameters: "De filters voor dit verslag zijn ongeldig." order: "Bestelling" distribution: "Distributie"