New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chore (i18n): Make punctuation usage consistent in translations #9610
Changes from 12 commits
d13ba8d
135e322
3bcd6ac
0af72a8
5d696b2
4d95493
7c17f4d
3efd0ff
aacbfa4
ab8de65
236142c
516d988
cf7fd0f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -541,7 +541,7 @@ | |
db-restoring? | ||
[:div.mt-20 | ||
[:div.ls-center | ||
(ui/loading (t :loading))]] | ||
(ui/loading)]] | ||
|
||
:else | ||
[:div | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -819,7 +819,7 @@ | |
[:div.mt-3.text-center.sm:mt-0.sm:ml-4.sm:text-left | ||
[:h3#modal-headline.text-lg.leading-6.font-medium | ||
(if orphaned-pages? | ||
(str (t :remove-orphaned-pages) "?") | ||
(t :remove-orphaned-pages) | ||
(t :page/delete-confirmation))]]] | ||
|
||
[:table.table-auto.cp__all_pages_table.mt-4 | ||
|
@@ -855,7 +855,7 @@ | |
(close-fn) | ||
(doseq [page-name (map :block/name pages)] | ||
(page-handler/delete! page-name #())) | ||
(notification/show! (str (t :tips/all-done) "!") :success) | ||
(notification/show! (t :tips/all-done) :success) | ||
(js/setTimeout #(refresh-fn) 200)))]])) | ||
|
||
(rum/defc pagination | ||
|
@@ -1040,15 +1040,15 @@ | |
[:div.r.flex.items-center.justify-between | ||
[:div | ||
(ui/tippy | ||
{:html [:small (str (t :page/show-whiteboards) " ?")] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Forgot to bring in the old comments. See #8722 (comment) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agree with this change. Just thought the original was funny.
Agree with '?' and '!' but what about delimiting characters like ':' or '-'? Moving those characters into translation will likely make it easier to forget to delimit in some languages. Grep for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Forgetting to delimit could happen, but having the ability to properly translate the app should be our top priority in my opinion. RTL languages is also something that we need to take into account. I think @sawhney17 implemented a plugin, but I didn't have the chance to test it yet.
💯 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Seems reasonable. Could you remove some of the counter examples from the above grep and document the punctation guidance? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Replaced all There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks. 👍 |
||
{:html [:small (t :page/show-whiteboards)] | ||
:arrow true} | ||
[:a.button.whiteboard | ||
{:class (util/classnames [{:active (boolean @*whiteboard?)}]) | ||
:on-click #(reset! *whiteboard? (not @*whiteboard?))} | ||
(ui/icon "whiteboard" {:extension? true :style {:fontSize ui/icon-size}})])] | ||
[:div | ||
(ui/tippy | ||
{:html [:small (str (t :page/show-journals) " ?")] | ||
{:html [:small (t :page/show-journals)] | ||
:arrow true} | ||
[:a.button.journal | ||
{:class (util/classnames [{:active (boolean @*journal?)}]) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍