Skip to content
Snippets Groups Projects
Unverified Commit c033fd6d authored by Sameer Al-Sakran's avatar Sameer Al-Sakran Committed by GitHub
Browse files

Merge pull request #6827 from metabase/remaining_i18n

A few i18n stragglers
parents f1229dcb c997afc9
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ import cx from "classnames"; ...@@ -13,7 +13,7 @@ import cx from "classnames";
import _ from "underscore"; import _ from "underscore";
const PermissionsEditor = ({ title = "Permissions", modal, admin, grid, onUpdatePermission, onSave, onCancel, confirmCancel, isDirty, saveError, diff, location }) => { const PermissionsEditor = ({ title = t`Permissions`, modal, admin, grid, onUpdatePermission, onSave, onCancel, confirmCancel, isDirty, saveError, diff, location }) => {
const saveButton = const saveButton =
<Confirm <Confirm
title={t`Save permissions?`} title={t`Save permissions?`}
......
...@@ -115,7 +115,7 @@ export default class PulseEdit extends Component { ...@@ -115,7 +115,7 @@ export default class PulseEdit extends Component {
<PulseEditName {...this.props} setPulse={this.setPulse} /> <PulseEditName {...this.props} setPulse={this.setPulse} />
<PulseEditCards {...this.props} setPulse={this.setPulse} attachmentsEnabled={attachmentsEnabled} /> <PulseEditCards {...this.props} setPulse={this.setPulse} attachmentsEnabled={attachmentsEnabled} />
<div className="py1 mb4"> <div className="py1 mb4">
<h2 className="mb3">Where should this data go?</h2> <h2 className="mb3">{t`Where should this data go?`}</h2>
<PulseEditChannels {...this.props} setPulse={this.setPulse} pulseIsValid={isValid} /> <PulseEditChannels {...this.props} setPulse={this.setPulse} pulseIsValid={isValid} />
</div> </div>
<PulseEditSkip {...this.props} setPulse={this.setPulse} /> <PulseEditSkip {...this.props} setPulse={this.setPulse} />
...@@ -133,7 +133,7 @@ export default class PulseEdit extends Component { ...@@ -133,7 +133,7 @@ export default class PulseEdit extends Component {
> >
<DeleteModalWithConfirm <DeleteModalWithConfirm
objectType="pulse" objectType="pulse"
title={"Delete \"" + pulse.name + "\"?"} title={t`Delete`+" \"" + pulse.name + "\"?"}
confirmItems={this.getConfirmItems()} confirmItems={this.getConfirmItems()}
onClose={() => this.refs["deleteModal"+pulse.id].close()} onClose={() => this.refs["deleteModal"+pulse.id].close()}
onDelete={this.delete} onDelete={this.delete}
......
...@@ -117,7 +117,7 @@ export default class PulseEditCards extends Component { ...@@ -117,7 +117,7 @@ export default class PulseEditCards extends Component {
return ( return (
<div className="py1"> <div className="py1">
<h2>Pick your data</h2> <h2>{t`Pick your data`}</h2>
<p className="mt1 h4 text-bold text-grey-3">{t`Choose questions you'd like to send in this pulse`}.</p> <p className="mt1 h4 text-bold text-grey-3">{t`Choose questions you'd like to send in this pulse`}.</p>
<ol className="my3"> <ol className="my3">
{cards && pulseCards.map((card, index) => {cards && pulseCards.map((card, index) =>
......
...@@ -32,7 +32,7 @@ export default class PulseEditName extends Component { ...@@ -32,7 +32,7 @@ export default class PulseEditName extends Component {
let { pulse } = this.props; let { pulse } = this.props;
return ( return (
<div className="py1"> <div className="py1">
<h2>Name your pulse</h2> <h2>{t`Name your pulse`}</h2>
<p className="mt1 h4 text-bold text-grey-3">{t`Give your pulse a name to help others understand what it's about`}.</p> <p className="mt1 h4 text-bold text-grey-3">{t`Give your pulse a name to help others understand what it's about`}.</p>
<div className="my3"> <div className="my3">
<input <input
......
...@@ -149,7 +149,7 @@ export default class AggregationPopover extends Component { ...@@ -149,7 +149,7 @@ export default class AggregationPopover extends Component {
if (availableAggregations.length > 0) { if (availableAggregations.length > 0) {
sections.push({ sections.push({
name: showOnlyProvidedAggregations ? null : "Metabasics", name: showOnlyProvidedAggregations ? null : t`Metabasics`,
items: availableAggregations.map(aggregation => ({ items: availableAggregations.map(aggregation => ({
name: aggregation.name, name: aggregation.name,
value: [aggregation.short].concat(aggregation.fields.map(field => null)), value: [aggregation.short].concat(aggregation.fields.map(field => null)),
......
import React, { Component } from "react"; import React, { Component } from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { t } from 'c-3po';
import HeaderWithBack from "metabase/components/HeaderWithBack"; import HeaderWithBack from "metabase/components/HeaderWithBack";
import SearchHeader from "metabase/components/SearchHeader"; import SearchHeader from "metabase/components/SearchHeader";
...@@ -46,7 +47,7 @@ export default class Archive extends Component { ...@@ -46,7 +47,7 @@ export default class Archive extends Component {
return ( return (
<div className="px4 pt3"> <div className="px4 pt3">
<div className="flex align-center mb2"> <div className="flex align-center mb2">
<HeaderWithBack name="Archive" /> <HeaderWithBack name={t`Archive`} />
</div> </div>
<SearchHeader searchText={this.props.searchText} setSearchText={this.props.setSearchText} /> <SearchHeader searchText={this.props.searchText} setSearchText={this.props.setSearchText} />
<div> <div>
......
...@@ -43,7 +43,7 @@ export const getActionText = ({ id }) => ...@@ -43,7 +43,7 @@ export const getActionText = ({ id }) =>
export const CollectionEditorFormActions = ({ handleSubmit, invalid, onClose, fields}) => export const CollectionEditorFormActions = ({ handleSubmit, invalid, onClose, fields}) =>
<div> <div>
<Button className="mr1" onClick={onClose}> <Button className="mr1" onClick={onClose}>
Cancel {t`Cancel`}
</Button> </Button>
<Button primary disabled={invalid} onClick={handleSubmit}> <Button primary disabled={invalid} onClick={handleSubmit}>
{ getActionText(fields) } { getActionText(fields) }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment