mirror of
https://github.com/mattermost/focalboard.git
synced 2025-01-11 18:13:52 +02:00
Update en.json - UI capitalization (#1178)
* Update en.json Adjusted capitalization for UI text for consistency. * Update webapp/i18n/en.json * Apply suggestions from code review * Propagating text the changes to the rest of the code * Fix the snapshots * Fixing cypress test * Fixing table tests Co-authored-by: Jesús Espino <jespinog@gmail.com> Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com>
This commit is contained in:
parent
731163bcea
commit
b5053d982a
@ -18,7 +18,7 @@ describe('Create and delete board / card', () => {
|
||||
|
||||
it('Can create and delete a board and card', () => {
|
||||
cy.visit('/');
|
||||
cy.contains('+ Add Board').click({force: true});
|
||||
cy.contains('+ Add board').click({force: true});
|
||||
cy.contains('Empty board').click({force: true});
|
||||
cy.get('.BoardComponent').should('exist');
|
||||
});
|
||||
@ -76,9 +76,9 @@ describe('Create and delete board / card', () => {
|
||||
// Create table view
|
||||
// cy.intercept('POST', '/api/v1/blocks').as('insertBlocks');
|
||||
cy.get('.ViewHeader').get('.DropdownIcon').first().parent().click();
|
||||
cy.get('.ViewHeader').contains('Add View').click();
|
||||
cy.get('.ViewHeader').contains('Add View').click();
|
||||
cy.get('.ViewHeader').contains('Add View').parent().contains('Table').click();
|
||||
cy.get('.ViewHeader').contains('Add view').click();
|
||||
cy.get('.ViewHeader').contains('Add view').click();
|
||||
cy.get('.ViewHeader').contains('Add view').parent().contains('Table').click();
|
||||
|
||||
// cy.wait('@insertBlocks');
|
||||
|
||||
|
@ -14,8 +14,8 @@
|
||||
"CardDetail.addCardText": "add card text",
|
||||
"CardDetail.moveContent": "move card content",
|
||||
"CardDetail.new-comment-placeholder": "Add a comment...",
|
||||
"CardDialog.editing-template": "You're editing a template",
|
||||
"CardDialog.nocard": "This card doesn't exist or is inaccessible",
|
||||
"CardDialog.editing-template": "You're editing a template.",
|
||||
"CardDialog.nocard": "This card doesn't exist or is inaccessible.",
|
||||
"ColorOption.selectColor": "Select {color} Color",
|
||||
"Comment.delete": "Delete",
|
||||
"CommentsList.send": "Send",
|
||||
@ -61,8 +61,8 @@
|
||||
"PropertyMenu.changeType": "Change property type",
|
||||
"PropertyMenu.typeTitle": "Type",
|
||||
"PropertyType.Checkbox": "Checkbox",
|
||||
"PropertyType.CreatedBy": "Created By",
|
||||
"PropertyType.CreatedTime": "Created Time",
|
||||
"PropertyType.CreatedBy": "Created by",
|
||||
"PropertyType.CreatedTime": "Created time",
|
||||
"PropertyType.Date": "Date",
|
||||
"PropertyType.Email": "Email",
|
||||
"PropertyType.File": "File or Media",
|
||||
@ -73,8 +73,8 @@
|
||||
"PropertyType.Select": "Select",
|
||||
"PropertyType.Text": "Text",
|
||||
"PropertyType.URL": "URL",
|
||||
"PropertyType.UpdatedBy": "Last Updated By",
|
||||
"PropertyType.UpdatedTime": "Last Updated Time",
|
||||
"PropertyType.UpdatedBy": "Last updated by",
|
||||
"PropertyType.UpdatedTime": "Last updated time",
|
||||
"RegistrationLink.confirmRegenerateToken": "This will invalidate previously shared links. Continue?",
|
||||
"RegistrationLink.copiedLink": "Copied!",
|
||||
"RegistrationLink.copyLink": "Copy link",
|
||||
@ -85,11 +85,11 @@
|
||||
"ShareBoard.copiedLink": "Copied!",
|
||||
"ShareBoard.copyLink": "Copy link",
|
||||
"ShareBoard.regenerateToken": "Regenerate token",
|
||||
"ShareBoard.share": "Publish to web and share this board to anyone",
|
||||
"ShareBoard.share": "Publish and share this board with anyone who has the link",
|
||||
"ShareBoard.tokenRegenrated": "Token regenerated",
|
||||
"ShareBoard.unshare": "Anyone with the link can view this board and all cards in it",
|
||||
"ShareBoard.unshare": "Anyone with the link can view this board and all cards in it.",
|
||||
"Sidebar.about": "About Focalboard",
|
||||
"Sidebar.add-board": "+ Add Board",
|
||||
"Sidebar.add-board": "+ Add board",
|
||||
"Sidebar.add-template": "New template",
|
||||
"Sidebar.changePassword": "Change password",
|
||||
"Sidebar.delete-board": "Delete board",
|
||||
@ -99,7 +99,7 @@
|
||||
"Sidebar.empty-board": "Empty board",
|
||||
"Sidebar.export-archive": "Export archive",
|
||||
"Sidebar.import-archive": "Import archive",
|
||||
"Sidebar.invite-users": "Invite Users",
|
||||
"Sidebar.invite-users": "Invite users",
|
||||
"Sidebar.logout": "Log out",
|
||||
"Sidebar.no-more-workspaces": "No more workspaces",
|
||||
"Sidebar.no-views-in-board": "No pages inside",
|
||||
@ -125,11 +125,11 @@
|
||||
"TableRow.open": "Open",
|
||||
"TopBar.give-feedback": "Give Feedback",
|
||||
"ValueSelector.valueSelector": "Value selector",
|
||||
"ValueSelectorLabel.openMenu": "Open Menu",
|
||||
"View.AddView": "Add View",
|
||||
"ValueSelectorLabel.openMenu": "Open menu",
|
||||
"View.AddView": "Add view",
|
||||
"View.Board": "Board",
|
||||
"View.DeleteView": "Delete View",
|
||||
"View.DuplicateView": "Duplicate View",
|
||||
"View.DeleteView": "Delete view",
|
||||
"View.DuplicateView": "Duplicate view",
|
||||
"View.NewBoardTitle": "Board view",
|
||||
"View.NewGalleryTitle": "Gallery view",
|
||||
"View.NewTableTitle": "Table view",
|
||||
@ -158,13 +158,13 @@
|
||||
"ViewTitle.remove-icon": "Remove icon",
|
||||
"ViewTitle.show-description": "show description",
|
||||
"ViewTitle.untitled-board": "Untitled board",
|
||||
"Workspace.editing-board-template": "You're editing a board template",
|
||||
"Workspace.editing-board-template": "You're editing a board template.",
|
||||
"default-properties.title": "Title",
|
||||
"error.no-workspace": "Your session may have expired or you may not have access to this workspace.",
|
||||
"error.relogin": "Log in again",
|
||||
"login.log-in-button": "Log in",
|
||||
"login.log-in-title": "Log in",
|
||||
"login.register-button": "or create an account if you don't have one",
|
||||
"register.login-button": "or login if you already have an account",
|
||||
"register.login-button": "or log in if you already have an account",
|
||||
"register.signup-title": "Sign up for your account"
|
||||
}
|
||||
}
|
||||
|
@ -89,7 +89,7 @@ const CardDialog = (props: Props) => {
|
||||
<div className='banner'>
|
||||
<FormattedMessage
|
||||
id='CardDialog.editing-template'
|
||||
defaultMessage="You're editing a template"
|
||||
defaultMessage="You're editing a template."
|
||||
/>
|
||||
</div>}
|
||||
|
||||
@ -109,7 +109,7 @@ const CardDialog = (props: Props) => {
|
||||
<div className='banner error'>
|
||||
<FormattedMessage
|
||||
id='CardDialog.nocard'
|
||||
defaultMessage="This card doesn't exist or is inaccessible"
|
||||
defaultMessage="This card doesn't exist or is inaccessible."
|
||||
/>
|
||||
</div>}
|
||||
</Dialog>
|
||||
|
@ -188,7 +188,7 @@ const PropertyValueElement = (props:Props): JSX.Element => {
|
||||
} else if (propertyTemplate.type === 'person') {
|
||||
return (
|
||||
<UserProperty
|
||||
value={propertyValue.toString()}
|
||||
value={propertyValue?.toString()}
|
||||
readonly={readOnly}
|
||||
onChange={(newValue) => mutator.changePropertyValue(card, propertyTemplate.id, newValue)}
|
||||
/>
|
||||
|
@ -100,12 +100,12 @@ const ShareBoardComponent = React.memo((props: Props): JSX.Element => {
|
||||
{isSharing &&
|
||||
<FormattedMessage
|
||||
id='ShareBoard.unshare'
|
||||
defaultMessage='Anyone with the link can view this board and all cards in it'
|
||||
defaultMessage='Anyone with the link can view this board and all cards in it.'
|
||||
/>}
|
||||
{!isSharing &&
|
||||
<FormattedMessage
|
||||
id='ShareBoard.share'
|
||||
defaultMessage='Publish to web and share this board to anyone'
|
||||
defaultMessage='Publish and share this board with anyone who has the link'
|
||||
/>}
|
||||
</div>
|
||||
<Switch
|
||||
|
@ -106,7 +106,7 @@ const SidebarAddBoardMenu = (props: Props): JSX.Element => {
|
||||
<div className='menu-entry'>
|
||||
<FormattedMessage
|
||||
id='Sidebar.add-board'
|
||||
defaultMessage='+ Add Board'
|
||||
defaultMessage='+ Add board'
|
||||
/>
|
||||
</div>
|
||||
<Menu position='top'>
|
||||
|
@ -65,7 +65,7 @@ const SidebarUserMenu = React.memo(() => {
|
||||
/>
|
||||
<Menu.Text
|
||||
id='invite'
|
||||
name={intl.formatMessage({id: 'Sidebar.invite-users', defaultMessage: 'Invite Users'})}
|
||||
name={intl.formatMessage({id: 'Sidebar.invite-users', defaultMessage: 'Invite users'})}
|
||||
onClick={async () => {
|
||||
setShowRegistrationLinkDialog(true)
|
||||
}}
|
||||
|
@ -164,15 +164,15 @@ const ViewMenu = React.memo((props: Props) => {
|
||||
|
||||
const duplicateViewText = intl.formatMessage({
|
||||
id: 'View.DuplicateView',
|
||||
defaultMessage: 'Duplicate View',
|
||||
defaultMessage: 'Duplicate view',
|
||||
})
|
||||
const deleteViewText = intl.formatMessage({
|
||||
id: 'View.DeleteView',
|
||||
defaultMessage: 'Delete View',
|
||||
defaultMessage: 'Delete view',
|
||||
})
|
||||
const addViewText = intl.formatMessage({
|
||||
id: 'View.AddView',
|
||||
defaultMessage: 'Add View',
|
||||
defaultMessage: 'Add view',
|
||||
})
|
||||
const boardText = intl.formatMessage({
|
||||
id: 'View.Board',
|
||||
|
@ -74,7 +74,7 @@ const Workspace = React.memo((props: Props) => {
|
||||
<div className='banner'>
|
||||
<FormattedMessage
|
||||
id='Workspace.editing-board-template'
|
||||
defaultMessage="You're editing a board template"
|
||||
defaultMessage="You're editing a board template."
|
||||
/>
|
||||
</div>}
|
||||
<CenterContent readonly={props.readonly}/>
|
||||
|
@ -86,7 +86,7 @@ const RegisterPage = React.memo(() => {
|
||||
<Link to='/login'>
|
||||
<FormattedMessage
|
||||
id='register.login-button'
|
||||
defaultMessage={'or login if you already have an account'}
|
||||
defaultMessage={'or log in if you already have an account'}
|
||||
/>
|
||||
</Link>
|
||||
{errorMessage &&
|
||||
|
@ -238,7 +238,7 @@ exports[`widgets/PropertyMenu should match snapshot 1`] = `
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
aria-label="Created Time"
|
||||
aria-label="Created time"
|
||||
class="MenuOption TextOption menu-option"
|
||||
role="button"
|
||||
>
|
||||
@ -248,14 +248,14 @@ exports[`widgets/PropertyMenu should match snapshot 1`] = `
|
||||
<div
|
||||
class="menu-name"
|
||||
>
|
||||
Created Time
|
||||
Created time
|
||||
</div>
|
||||
<div
|
||||
class="noicon"
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
aria-label="Created By"
|
||||
aria-label="Created by"
|
||||
class="MenuOption TextOption menu-option"
|
||||
role="button"
|
||||
>
|
||||
@ -265,14 +265,14 @@ exports[`widgets/PropertyMenu should match snapshot 1`] = `
|
||||
<div
|
||||
class="menu-name"
|
||||
>
|
||||
Created By
|
||||
Created by
|
||||
</div>
|
||||
<div
|
||||
class="noicon"
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
aria-label="Last Updated Time"
|
||||
aria-label="Last updated time"
|
||||
class="MenuOption TextOption menu-option"
|
||||
role="button"
|
||||
>
|
||||
@ -282,14 +282,14 @@ exports[`widgets/PropertyMenu should match snapshot 1`] = `
|
||||
<div
|
||||
class="menu-name"
|
||||
>
|
||||
Last Updated Time
|
||||
Last updated time
|
||||
</div>
|
||||
<div
|
||||
class="noicon"
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
aria-label="Last Updated By"
|
||||
aria-label="Last updated by"
|
||||
class="MenuOption TextOption menu-option"
|
||||
role="button"
|
||||
>
|
||||
@ -299,7 +299,7 @@ exports[`widgets/PropertyMenu should match snapshot 1`] = `
|
||||
<div
|
||||
class="menu-name"
|
||||
>
|
||||
Last Updated By
|
||||
Last updated by
|
||||
</div>
|
||||
<div
|
||||
class="noicon"
|
||||
|
@ -29,10 +29,10 @@ function typeDisplayName(intl: IntlShape, type: PropertyType): string {
|
||||
case 'url': return intl.formatMessage({id: 'PropertyType.URL', defaultMessage: 'URL'})
|
||||
case 'email': return intl.formatMessage({id: 'PropertyType.Email', defaultMessage: 'Email'})
|
||||
case 'phone': return intl.formatMessage({id: 'PropertyType.Phone', defaultMessage: 'Phone'})
|
||||
case 'createdTime': return intl.formatMessage({id: 'PropertyType.CreatedTime', defaultMessage: 'Created Time'})
|
||||
case 'createdBy': return intl.formatMessage({id: 'PropertyType.CreatedBy', defaultMessage: 'Created By'})
|
||||
case 'updatedTime': return intl.formatMessage({id: 'PropertyType.UpdatedTime', defaultMessage: 'Last Updated Time'})
|
||||
case 'updatedBy': return intl.formatMessage({id: 'PropertyType.UpdatedBy', defaultMessage: 'Last Updated By'})
|
||||
case 'createdTime': return intl.formatMessage({id: 'PropertyType.CreatedTime', defaultMessage: 'Created time'})
|
||||
case 'createdBy': return intl.formatMessage({id: 'PropertyType.CreatedBy', defaultMessage: 'Created by'})
|
||||
case 'updatedTime': return intl.formatMessage({id: 'PropertyType.UpdatedTime', defaultMessage: 'Last updated time'})
|
||||
case 'updatedBy': return intl.formatMessage({id: 'PropertyType.UpdatedBy', defaultMessage: 'Last updated by'})
|
||||
case 'date': return intl.formatMessage({id: 'PropertyType.Date', defaultMessage: 'Date'})
|
||||
default: {
|
||||
Utils.assertFailure(`typeDisplayName, unhandled type: ${type}`)
|
||||
|
@ -71,7 +71,7 @@ const ValueSelectorLabel = React.memo((props: LabelProps): JSX.Element => {
|
||||
</div>
|
||||
<MenuWrapper stopPropagationOnToggle={true}>
|
||||
<IconButton
|
||||
title={intl.formatMessage({id: 'ValueSelectorLabel.openMenu', defaultMessage: 'Open Menu'})}
|
||||
title={intl.formatMessage({id: 'ValueSelectorLabel.openMenu', defaultMessage: 'Open menu'})}
|
||||
icon={<OptionsIcon/>}
|
||||
/>
|
||||
<Menu position='left'>
|
||||
|
Loading…
Reference in New Issue
Block a user