Skip to content
Snippets Groups Projects
Unverified Commit f9a4ddb0 authored by Maz Ameli's avatar Maz Ameli Committed by GitHub
Browse files

Merge pull request #8227 from metabase/dupe-strings

Consolidate some strings
parents a355411b 98c4b7b9
Branches
Tags
No related merge requests found
......@@ -23,7 +23,7 @@ const UserCollectionList = () => (
<BrowserCrumbs
crumbs={[
{ title: t`Our analytics`, to: Urls.collection() },
{ title: t`Everyone elses personal collections` },
{ title: t`Everyone else's personal collections` },
]}
/>
</Box>
......
......@@ -632,9 +632,9 @@
;; You also can't archive a Personal Collection
(when (api/column-will-change? :archived collection-before-updates collection-updates)
(throw
(ex-info (tru "You cannot archive a Personal Collection!")
(ex-info (tru "You cannot archive a Personal Collection.")
{:status-code 400
:errors {:archived (tru "You cannot archive a Personal Collection!")}}))))
:errors {:archived (tru "You cannot archive a Personal Collection.")}}))))
(s/defn ^:private maybe-archive-or-unarchive!
"If `:archived` specified in the updates map, archive/unarchive as needed."
......
......@@ -147,7 +147,7 @@
(db/simple-insert! Setting :key settings-last-updated-key, :value current-timestamp-as-string-honeysql)
(catch java.sql.SQLException e
;; go ahead and log the Exception anyway on the off chance that it *wasn't* just a race condition issue
(log/error (tru "Error inserting new Setting:") (with-out-str (jdbc/print-sql-exception-chain e)))))))
(log/error (tru "Error inserting a new Setting:") (with-out-str (jdbc/print-sql-exception-chain e)))))))
;; Now that we updated the value in the DB, go ahead and update our cached value as well, because we know about the
;; changes
(swap! cache assoc settings-last-updated-key (db/select-one-field :value Setting :key settings-last-updated-key)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment