Menu text consistent sentence casing

This commit is contained in:
Chen-I Lim 2020-12-11 11:10:25 -08:00
parent 846a8786d5
commit 6d1782256c
11 changed files with 46 additions and 45 deletions

File diff suppressed because one or more lines are too long

View file

@ -22,7 +22,7 @@ describe('Create and delete board / card', () => {
// Rename board view
const boardViewTitle = `Test board (${timestamp})`;
cy.get('.ViewHeader').
contains('.octo-editable', 'Board View').
contains('.octo-editable', 'Board view').
clear().
type(boardViewTitle).
type('{esc}');
@ -55,7 +55,7 @@ describe('Create and delete board / card', () => {
// cy.wait('@insertBlocks');
// Wait for round-trip to complete and DOM to update
cy.contains('.octo-editable', 'Table View').should('exist');
cy.contains('.octo-editable', 'Table view').should('exist');
// Card should exist in table
cy.get(`.TableRow [value='${cardTitle}']`).should('exist');
@ -63,7 +63,7 @@ describe('Create and delete board / card', () => {
// Rename table view
const tableViewTitle = `Test table (${timestamp})`;
cy.get('.ViewHeader').
contains('.octo-editable', 'Table View').
contains('.octo-editable', 'Table view').
clear().
type(tableViewTitle).
type('{esc}');
@ -83,7 +83,7 @@ describe('Create and delete board / card', () => {
find('.Button.IconButton').
click({force: true});
cy.contains('Delete Board').click({force: true});
cy.contains('Delete board').click({force: true});
// // Board should not exist
cy.contains(boardTitle).should('not.exist');

View file

@ -4,26 +4,27 @@
"BoardCard.untitled": "Untitled",
"BoardComponent.add-a-group": "+ Add a group",
"BoardComponent.delete": "Delete",
"BoardComponent.hidden-columns": "Hidden Columns",
"BoardComponent.hidden-columns": "Hidden columns",
"BoardComponent.hide": "Hide",
"BoardComponent.neww": "+ New",
"BoardComponent.no-property": "No {property}",
"BoardComponent.no-property-title": "Items with an empty {property} property will go here. This column cannot be removed.",
"BoardComponent.show": "Show",
"CardDetail.add-content": "Add content",
"CardDetail.add-icon": "Add Icon",
"CardDetail.add-icon": "Add icon",
"CardDetail.add-property": "+ Add a property",
"CardDetail.image": "Image",
"CardDetail.new-comment-placeholder": "Add a comment...",
"CardDetail.text": "Text",
"CardDialog.editing-template": "You're editing a template",
"CardDialog.nocard": "This card doesn't exist or is inaccessible",
"Comment.delete": "Delete",
"CommentsList.send": "Send",
"Filter.includes": "includes",
"Filter.is-empty": "is empty",
"Filter.is-not-empty": "is not empty",
"Filter.not-includes": "doesn't include",
"FilterComponent.add-filter": "+ Add Filter",
"FilterComponent.add-filter": "+ Add filter",
"FilterComponent.delete": "Delete",
"Mutator.duplicate-board": "duplicate board",
"Mutator.new-board-from-template": "new board from template",
@ -32,28 +33,28 @@
"Mutator.new-template-from-card": "new template from card",
"Sidebar.add-board": "+ Add Board",
"Sidebar.add-template": "+ New template",
"Sidebar.dark-theme": "Dark Theme",
"Sidebar.delete-board": "Delete Board",
"Sidebar.dark-theme": "Dark theme",
"Sidebar.delete-board": "Delete board",
"Sidebar.delete-template": "Delete",
"Sidebar.duplicate-board": "Duplicate Board",
"Sidebar.duplicate-board": "Duplicate board",
"Sidebar.edit-template": "Edit",
"Sidebar.empty-board": "Empty board",
"Sidebar.english": "English",
"Sidebar.export-archive": "Export Archive",
"Sidebar.import-archive": "Import Archive",
"Sidebar.light-theme": "Light Theme",
"Sidebar.mattermost-theme": "Mattermost Theme",
"Sidebar.export-archive": "Export archive",
"Sidebar.import-archive": "Import archive",
"Sidebar.light-theme": "Light theme",
"Sidebar.mattermost-theme": "Mattermost theme",
"Sidebar.no-views-in-board": "No pages inside",
"Sidebar.select-a-template": "Select a template",
"Sidebar.set-language": "Set Language",
"Sidebar.set-theme": "Set Theme",
"Sidebar.set-language": "Set language",
"Sidebar.set-theme": "Set theme",
"Sidebar.settings": "Settings",
"Sidebar.spanish": "Spanish",
"Sidebar.template-from-board": "New template from board",
"Sidebar.untitled": "Untitled",
"Sidebar.untitled-board": "(Untitled Board)",
"Sidebar.untitled-view": "(Untitled View)",
"TableComponent.add-icon": "Add Icon",
"TableComponent.add-icon": "Add icon",
"TableComponent.name": "Name",
"TableComponent.plus-new": "+ New",
"TableHeaderMenu.delete": "Delete",
@ -64,13 +65,13 @@
"TableHeaderMenu.sort-ascending": "Sort ascending",
"TableHeaderMenu.sort-descending": "Sort descending",
"TableRow.open": "Open",
"View.NewBoardTitle": "Board View",
"View.NewTableTitle": "Table View",
"View.NewBoardTitle": "Board view",
"View.NewTableTitle": "Table view",
"ViewHeader.add-template": "+ New template",
"ViewHeader.delete-template": "Delete",
"ViewHeader.edit-template": "Edit",
"ViewHeader.empty-card": "Empty card",
"ViewHeader.export-board-archive": "Export Board Archive",
"ViewHeader.export-board-archive": "Export board archive",
"ViewHeader.export-csv": "Export to CSV",
"ViewHeader.filter": "Filter",
"ViewHeader.group-by": "Group by {property}",
@ -86,10 +87,10 @@
"ViewHeader.test-randomize-icons": "TEST: Randomize icons",
"ViewHeader.untitled": "Untitled",
"ViewTitle.hide-description": "hide description",
"ViewTitle.pick-icon": "Pick Icon",
"ViewTitle.pick-icon": "Pick icon",
"ViewTitle.random-icon": "Random",
"ViewTitle.remove-icon": "Remove Icon",
"ViewTitle.remove-icon": "Remove icon",
"ViewTitle.show-description": "show description",
"ViewTitle.untitled-board": "Untitled Board",
"ViewTitle.untitled-board": "Untitled board",
"WorkspaceComponent.editing-board-template": "You're editing a board template"
}

View file

@ -55,14 +55,14 @@ class BlockIconSelector extends React.Component<Props> {
<Menu.SubMenu
id='pick'
icon={<EmojiIcon/>}
name={intl.formatMessage({id: 'ViewTitle.pick-icon', defaultMessage: 'Pick Icon'})}
name={intl.formatMessage({id: 'ViewTitle.pick-icon', defaultMessage: 'Pick icon'})}
>
<EmojiPicker onSelect={this.onSelectEmoji}/>
</Menu.SubMenu>
<Menu.Text
id='remove'
icon={<DeleteIcon/>}
name={intl.formatMessage({id: 'ViewTitle.remove-icon', defaultMessage: 'Remove Icon'})}
name={intl.formatMessage({id: 'ViewTitle.remove-icon', defaultMessage: 'Remove icon'})}
onClick={() => mutator.changeIcon(block, '', 'remove icon')}
/>
</Menu>

View file

@ -174,7 +174,7 @@ class BoardComponent extends React.Component<Props, State> {
<div className='octo-board-header-cell narrow'>
<FormattedMessage
id='BoardComponent.hidden-columns'
defaultMessage='Hidden Columns'
defaultMessage='Hidden columns'
/>
</div>}

View file

@ -119,7 +119,7 @@ class CardDetail extends React.Component<Props, State> {
>
<FormattedMessage
id='CardDetail.add-icon'
defaultMessage='Add Icon'
defaultMessage='Add icon'
/>
</Button>
</div>}

View file

@ -162,7 +162,7 @@ class FilterComponent extends React.Component<Props> {
<Button onClick={() => this.addFilterClicked()}>
<FormattedMessage
id='FilterComponent.add-filter'
defaultMessage='+ Add Filter'
defaultMessage='+ Add filter'
/>
</Button>
</div>

View file

@ -117,13 +117,13 @@ class Sidebar extends React.Component<Props, State> {
<Menu position='left'>
<Menu.Text
id='deleteBoard'
name={intl.formatMessage({id: 'Sidebar.delete-board', defaultMessage: 'Delete Board'})}
name={intl.formatMessage({id: 'Sidebar.delete-board', defaultMessage: 'Delete board'})}
icon={<DeleteIcon/>}
onClick={async () => {
const nextBoardId = boards.length > 1 ? boards.find((o) => o.id !== board.id)?.id : undefined
mutator.deleteBlock(
board,
'delete block',
intl.formatMessage({id: 'Sidebar.delete-board', defaultMessage: 'Delete board'}),
async () => {
this.props.showBoard(nextBoardId)
},
@ -136,7 +136,7 @@ class Sidebar extends React.Component<Props, State> {
<Menu.Text
id='duplicateBoard'
name={intl.formatMessage({id: 'Sidebar.duplicate-board', defaultMessage: 'Duplicate Board'})}
name={intl.formatMessage({id: 'Sidebar.duplicate-board', defaultMessage: 'Duplicate board'})}
icon={<DuplicateIcon/>}
onClick={() => {
this.duplicateBoard(board.id)
@ -269,17 +269,17 @@ class Sidebar extends React.Component<Props, State> {
<Menu position='top'>
<Menu.Text
id='import'
name={intl.formatMessage({id: 'Sidebar.import-archive', defaultMessage: 'Import Archive'})}
name={intl.formatMessage({id: 'Sidebar.import-archive', defaultMessage: 'Import archive'})}
onClick={async () => Archiver.importFullArchive()}
/>
<Menu.Text
id='export'
name={intl.formatMessage({id: 'Sidebar.export-archive', defaultMessage: 'Export Archive'})}
name={intl.formatMessage({id: 'Sidebar.export-archive', defaultMessage: 'Export archive'})}
onClick={async () => Archiver.exportFullArchive()}
/>
<Menu.SubMenu
id='lang'
name={intl.formatMessage({id: 'Sidebar.set-language', defaultMessage: 'Set Language'})}
name={intl.formatMessage({id: 'Sidebar.set-language', defaultMessage: 'Set language'})}
position='top'
>
<Menu.Text
@ -295,22 +295,22 @@ class Sidebar extends React.Component<Props, State> {
</Menu.SubMenu>
<Menu.SubMenu
id='theme'
name={intl.formatMessage({id: 'Sidebar.set-theme', defaultMessage: 'Set Theme'})}
name={intl.formatMessage({id: 'Sidebar.set-theme', defaultMessage: 'Set theme'})}
position='top'
>
<Menu.Text
id='dark-theme'
name={intl.formatMessage({id: 'Sidebar.dark-theme', defaultMessage: 'Dark Theme'})}
name={intl.formatMessage({id: 'Sidebar.dark-theme', defaultMessage: 'Dark theme'})}
onClick={async () => setTheme(darkTheme)}
/>
<Menu.Text
id='light-theme'
name={intl.formatMessage({id: 'Sidebar.light-theme', defaultMessage: 'Light Theme'})}
name={intl.formatMessage({id: 'Sidebar.light-theme', defaultMessage: 'Light theme'})}
onClick={async () => setTheme(lightTheme)}
/>
<Menu.Text
id='mattermost-theme'
name={intl.formatMessage({id: 'Sidebar.mattermost-theme', defaultMessage: 'Mattermost Theme'})}
name={intl.formatMessage({id: 'Sidebar.mattermost-theme', defaultMessage: 'Mattermost theme'})}
onClick={async () => setTheme(mattermostTheme)}
/>
</Menu.SubMenu>
@ -340,7 +340,7 @@ class Sidebar extends React.Component<Props, State> {
view.viewType = 'board'
view.parentId = board.id
view.rootId = board.rootId
view.title = intl.formatMessage({id: 'View.NewBoardTitle', defaultMessage: 'Board View'})
view.title = intl.formatMessage({id: 'View.NewBoardTitle', defaultMessage: 'Board view'})
await mutator.insertBlocks(
[board, view],

View file

@ -347,7 +347,7 @@ class ViewHeader extends React.Component<Props, State> {
/>
<Menu.Text
id='exportBoardArchive'
name={intl.formatMessage({id: 'ViewHeader.export-board-archive', defaultMessage: 'Export Board Archive'})}
name={intl.formatMessage({id: 'ViewHeader.export-board-archive', defaultMessage: 'Export board archive'})}
onClick={() => Archiver.exportBoardTree(boardTree)}
/>

View file

@ -46,7 +46,7 @@ export class ViewMenu extends React.PureComponent<Props> {
const {board, boardTree, showView, intl} = this.props
Utils.log('addview-board')
const view = new MutableBoardView()
view.title = intl.formatMessage({id: 'View.NewBoardTitle', defaultMessage: 'Board View'})
view.title = intl.formatMessage({id: 'View.NewBoardTitle', defaultMessage: 'Board view'})
view.viewType = 'board'
view.parentId = board.id
view.rootId = board.rootId
@ -72,7 +72,7 @@ export class ViewMenu extends React.PureComponent<Props> {
Utils.log('addview-table')
const view = new MutableBoardView()
view.title = intl.formatMessage({id: 'View.NewTableTitle', defaultMessage: 'Table View'})
view.title = intl.formatMessage({id: 'View.NewTableTitle', defaultMessage: 'Table view'})
view.viewType = 'table'
view.parentId = board.id
view.rootId = board.rootId

View file

@ -52,7 +52,7 @@ class ViewTitle extends React.Component<Props, State> {
>
<FormattedMessage
id='TableComponent.add-icon'
defaultMessage='Add Icon'
defaultMessage='Add icon'
/>
</Button>
}
@ -90,7 +90,7 @@ class ViewTitle extends React.Component<Props, State> {
ref={this.titleEditor}
className='title'
value={this.state.title}
placeholderText={intl.formatMessage({id: 'ViewTitle.untitled-board', defaultMessage: 'Untitled Board'})}
placeholderText={intl.formatMessage({id: 'ViewTitle.untitled-board', defaultMessage: 'Untitled board'})}
onChange={(title) => this.setState({title})}
saveOnEsc={true}
onSave={() => mutator.changeTitle(board, this.state.title)}