Skip to content
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

Add missing translations #33035

Merged
merged 5 commits into from
Aug 9, 2023
Merged

Add missing translations #33035

merged 5 commits into from
Aug 9, 2023

Conversation

WiNloSt
Copy link
Member

@WiNloSt WiNloSt commented Aug 9, 2023

Description

Fix missing translations reported in this Slack thread

Checklist

  • Tests have been added/updated to cover changes in this PR No test has been added since this is just translating existing strings in the codebase.

@github-actions
Copy link

github-actions bot commented Aug 9, 2023

Codenotify: Notifying subscribers in CODENOTIFY files for diff 25be72c...5706afa.

Notify File(s)
@ranquild frontend/src/metabase/home/components/CustomHomePageModal/CustomHomePageModal.tsx
frontend/src/metabase/home/components/HomeLayout/HomeLayout.tsx

@WiNloSt WiNloSt requested a review from a team August 9, 2023 10:05
@WiNloSt WiNloSt added the backport Automatically create PR on current release branch on merge label Aug 9, 2023
@WiNloSt WiNloSt enabled auto-merge (squash) August 9, 2023 10:08
@@ -92,7 +92,7 @@ export const getApplicationPermissionEditor = createSelector(

return {
id: group.id,
name: group.name,
name: getGroupNameLocalized(group),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

@@ -55,7 +55,7 @@ const getEditSegmentedAccessPostAction = (entityId, groupId, view) =>
if (hasPremiumFeature("sandboxes")) {
PLUGIN_ADMIN_USER_FORM_FIELDS.push({
name: "login_attributes",
title: "Attributes",
title: t`Attributes`,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

import MappingEditor from "./MappingEditor";

const LoginAttributesWidget = ({ field }) => (
<MappingEditor
value={field.value || {}}
onChange={field.onChange}
addText="Add an attribute"
addText={t`Add an attribute`}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

@@ -27,7 +27,7 @@ export const DataPermissionsHelp = () => {
defaultValue="database-level"
>
<Accordion.Item value="database-level">
<Accordion.Control>Database levels</Accordion.Control>
<Accordion.Control>{t`Database levels`}</Accordion.Control>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

@@ -89,19 +89,19 @@ export const CustomHomePageModal = ({
return (
<Modal isOpen={isOpen} onClose={onClose}>
<ModalContent
title="Customize Homepage"
title={t`Customize Homepage`}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

@@ -31,13 +32,13 @@ export const HomeLayout = ({
{hasIllustration && <LayoutIllustration />}
{hasMetabot ? <MetabotWidget /> : <HomeGreeting />}
{isAdmin && (
<Tooltip tooltip="Pick a dashboard to serve as the homepage">
<Tooltip tooltip={t`Pick a dashboard to serve as the homepage`}>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

@@ -45,7 +45,7 @@ export function DatabasePromptBanner({ location }: DatabasePromptBannerProps) {
}}
>
<ConnectDatabaseButton small>
Connect your database
{t`Connect your database`}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image


const isPinnedGroup = (group: Group) =>
isAdminGroup(group) || isDefaultGroup(group);

export const getOrderedGroups = createSelector(
Groups.selectors.getList,
(groups: Group[]) => _.partition(groups, isPinnedGroup),
(groups: Group[]) => {
const translatedGroups = groups.map(group =>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Appears in

  1. Admin > Permissions > Data > Group
    Screenshot 2023-08-09 at 6 14 29 PM

And a few other places that I'm too tired to track right now. But you can try to find the usage of getOrderedGroups to see which components this selector will be used on.

@codecov
Copy link

codecov bot commented Aug 9, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (0f3b3df) 74.84% compared to head (5706afa) 74.84%.
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #33035   +/-   ##
=======================================
  Coverage   74.84%   74.84%           
=======================================
  Files        2995     2995           
  Lines      106099   106101    +2     
  Branches    12799    12799           
=======================================
+ Hits        79406    79408    +2     
  Misses      21215    21215           
  Partials     5478     5478           
Flag Coverage Δ
back-end 87.64% <ø> (ø)
front-end 60.74% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
...se-enterprise/application_permissions/selectors.ts 20.00% <ø> (ø)
...ise/sandboxes/components/LoginAttributesWidget.jsx 33.33% <ø> (ø)
...rontend/src/metabase-enterprise/sandboxes/index.js 64.00% <ø> (ø)
...onents/DataPermissionsHelp/DataPermissionsHelp.tsx 100.00% <ø> (ø)
...onents/CustomHomePageModal/CustomHomePageModal.tsx 45.45% <ø> (ø)
...metabase/home/components/HomeLayout/HomeLayout.tsx 70.00% <ø> (ø)
...ents/DatabasePromptBanner/DatabasePromptBanner.tsx 75.00% <ø> (ø)
...n/permissions/selectors/data-permissions/groups.ts 87.50% <100.00%> (+4.16%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@WiNloSt WiNloSt added backport Automatically create PR on current release branch on merge and removed backport Automatically create PR on current release branch on merge labels Aug 9, 2023
@WiNloSt WiNloSt merged commit 379ecc1 into master Aug 9, 2023
101 checks passed
@WiNloSt WiNloSt deleted the add-missing-translations branch August 9, 2023 13:15
github-actions bot pushed a commit that referenced this pull request Aug 9, 2023
@WiNloSt WiNloSt mentioned this pull request Aug 11, 2023
1 task
NevRA pushed a commit that referenced this pull request Aug 14, 2023
Co-authored-by: Mahatthana (Kelvin) Nomsawadi <me@bboykelvin.dev>
This was referenced Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Automatically create PR on current release branch on merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants