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";
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 =
<Confirm
title={t`Save permissions?`}
......
......@@ -115,7 +115,7 @@ export default class PulseEdit extends Component {
<PulseEditName {...this.props} setPulse={this.setPulse} />
<PulseEditCards {...this.props} setPulse={this.setPulse} attachmentsEnabled={attachmentsEnabled} />
<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} />
</div>
<PulseEditSkip {...this.props} setPulse={this.setPulse} />
......@@ -133,7 +133,7 @@ export default class PulseEdit extends Component {
>
<DeleteModalWithConfirm
objectType="pulse"
title={"Delete \"" + pulse.name + "\"?"}
title={t`Delete`+" \"" + pulse.name + "\"?"}
confirmItems={this.getConfirmItems()}
onClose={() => this.refs["deleteModal"+pulse.id].close()}
onDelete={this.delete}
......
......@@ -117,7 +117,7 @@ export default class PulseEditCards extends Component {
return (
<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>
<ol className="my3">
{cards && pulseCards.map((card, index) =>
......
......@@ -32,7 +32,7 @@ export default class PulseEditName extends Component {
let { pulse } = this.props;
return (
<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>
<div className="my3">
<input
......
......@@ -149,7 +149,7 @@ export default class AggregationPopover extends Component {
if (availableAggregations.length > 0) {
sections.push({
name: showOnlyProvidedAggregations ? null : "Metabasics",
name: showOnlyProvidedAggregations ? null : t`Metabasics`,
items: availableAggregations.map(aggregation => ({
name: aggregation.name,
value: [aggregation.short].concat(aggregation.fields.map(field => null)),
......
import React, { Component } from "react";
import { connect } from "react-redux";
import { t } from 'c-3po';
import HeaderWithBack from "metabase/components/HeaderWithBack";
import SearchHeader from "metabase/components/SearchHeader";
......@@ -46,7 +47,7 @@ export default class Archive extends Component {
return (
<div className="px4 pt3">
<div className="flex align-center mb2">
<HeaderWithBack name="Archive" />
<HeaderWithBack name={t`Archive`} />
</div>
<SearchHeader searchText={this.props.searchText} setSearchText={this.props.setSearchText} />
<div>
......
......@@ -43,7 +43,7 @@ export const getActionText = ({ id }) =>
export const CollectionEditorFormActions = ({ handleSubmit, invalid, onClose, fields}) =>
<div>
<Button className="mr1" onClick={onClose}>
Cancel
{t`Cancel`}
</Button>
<Button primary disabled={invalid} onClick={handleSubmit}>
{ 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