import SortingFilter from './SortingFilter';
import CoverageRating from '../../../components/ui/CoverageRating';
import { getCoverageRatingLabel, getCoverageRatingAverageValue } from '../../../helpers/ratings';
+import { translate } from '../../../helpers/l10n';
export default class CoverageFilter extends React.PureComponent {
static propTypes = {
getFacetValueForOption={this.getFacetValueForOption}
highlightUnder={1}
header={
- <FilterHeader name="Coverage">
+ <FilterHeader name={translate('metric_domain.Coverage')}>
<SortingFilter
property={this.property}
query={this.props.query}
getDuplicationsRatingLabel,
getDuplicationsRatingAverageValue
} from '../../../helpers/ratings';
+import { translate } from '../../../helpers/l10n';
export default class DuplicationsFilter extends React.PureComponent {
static propTypes = {
getFacetValueForOption={this.getFacetValueForOption}
highlightUnder={1}
header={
- <FilterHeader name="Duplications">
+ <FilterHeader name={translate('metric_domain.Duplications')}>
<SortingFilter
property={this.property}
query={this.props.query}
import FilterHeader from './FilterHeader';
import SortingFilter from './SortingFilter';
import Rating from '../../../components/ui/Rating';
+import { translate } from '../../../helpers/l10n';
export default class IssuesFilter extends React.PureComponent {
static propTypes = {
return (
<span>
<Rating value={option} small={true} muted={!selected} />
- {option > 1 && option < 5 && <span className="note spacer-left">and worse</span>}
+ {option > 1 &&
+ option < 5 &&
+ <span className="note spacer-left">{translate('and_worse')}</span>}
</span>
);
}
getFacetValueForOption={this.getFacetValueForOption}
highlightUnder={1}
header={
- <FilterHeader name={this.props.name}>
+ <FilterHeader name={translate('metric_domain', this.props.name)}>
<SortingFilter
property={this.props.property}
query={this.props.query}
import SearchableFilterFooter from './SearchableFilterFooter';
import SearchableFilterOption from './SearchableFilterOption';
import { getLanguageByKey } from '../../../store/languages/reducer';
+import { translate } from '../../../helpers/l10n';
type Props = {
query: {},
organization={this.props.organization}
getFacetValueForOption={this.getFacetValueForOption}
highlightUnder={1}
- header={<FilterHeader name="Languages" />}
+ header={<FilterHeader name={translate('projects.facets.languages')} />}
footer={
<SearchableFilterFooter
property={this.property}
import FilterContainer from './FilterContainer';
import FilterHeader from './FilterHeader';
import Level from '../../../components/ui/Level';
+import { translate } from '../../../helpers/l10n';
export default class QualityGateFilter extends React.PureComponent {
static propTypes = {
organization={this.props.organization}
getFacetValueForOption={this.getFacetValueForOption}
highlightUnder={1}
- header={<FilterHeader name="Quality Gate" />}
+ header={<FilterHeader name={translate('projects.facets.quality_gate')} />}
/>
);
}
getFacetValueForOption={this.getFacetValueForOption}
highlightUnder={1}
header={
- <FilterHeader name="Size">
+ <FilterHeader name={translate('metric_domain.Size')}>
<SortingFilter
property={this.property}
query={this.props.query}
leftText: React.PropTypes.string,
rightText: React.PropTypes.string
};
+
static defaultProps = {
- sortDesc: 'left',
- leftText: translate('worst'),
- rightText: translate('best')
+ sortDesc: 'left'
};
isSortActive(side) {
onClick={this.blurLink}
className={this.getLinkClass('left')}
to={this.getLinkPath('left')}>
- {leftText}
+ {leftText || translate('worst')}
</Link>
<Link
onClick={this.blurLink}
className={this.getLinkClass('right')}
to={this.getLinkPath('right')}>
- {rightText}
+ {rightText || translate('best')}
</Link>
</div>
</div>
import SearchableFilterFooter from './SearchableFilterFooter';
import SearchableFilterOption from './SearchableFilterOption';
import { searchProjectTags } from '../../../api/components';
+import { translate } from '../../../helpers/l10n';
type Props = {
query: {},
organization={this.props.organization}
getFacetValueForOption={this.getFacetValueForOption}
highlightUnder={1}
- header={<FilterHeader name="Tags" />}
+ header={<FilterHeader name={translate('projects.facets.tags')} />}
footer={
<SearchableFilterFooter
property={this.property}
halfWidth={false}
header={
<FilterHeader
- name="Languages"
+ name="projects.facets.languages"
/>
}
highlightUnder={1}
halfWidth={false}
header={
<FilterHeader
- name="Languages"
+ name="projects.facets.languages"
/>
}
highlightUnder={1}
data-key="languages"
>
<FilterHeader
- name="Languages"
+ name="projects.facets.languages"
/>
<div
className="search-navigator-facet-list"
halfWidth={false}
header={
<FilterHeader
- name="Languages"
+ name="projects.facets.languages"
/>
}
highlightUnder={1}
halfWidth={false}
header={
<FilterHeader
- name="Tags"
+ name="projects.facets.tags"
/>
}
highlightUnder={1}
halfWidth={false}
header={
<FilterHeader
- name="Tags"
+ name="projects.facets.tags"
/>
}
highlightUnder={1}
data-key="tags"
>
<FilterHeader
- name="Tags"
+ name="projects.facets.tags"
/>
<div
className="search-navigator-facet-list"
halfWidth={false}
header={
<FilterHeader
- name="Tags"
+ name="projects.facets.tags"
/>
}
highlightUnder={1}
halfWidth={false}
header={
<FilterHeader
- name="Tags"
+ name="projects.facets.tags"
/>
}
highlightUnder={1}
added_since_version=Added since version {0}
all_violations=All violations
all_issues=All issues
-apply_template
+and_worse=and worse
are_you_sure=Are you sure?
assigned_to=Assigned to
bulk_change=Bulk Change
projects.visualization.duplications=Duplications
projects.visualization.duplications.description=See duplications' long-term risks to your projects. Bubble size indicates the volume of duplicated blocks in the project, and each bubble's vertical position reflects the volume of lines in those blocks. Small bubbles on the bottom edge are best.
projects.limited_set_of_projects=Displayed project set limited to the top {0} projects based on current sort: {1}.
+projects.facets.quality_gate=Quality Gate
+projects.facets.languages=Languages
+projects.facets.tags=Tags
projects.sort.name=by name
projects.sort.reliability=by reliability (best first)
projects.sort.-reliability=by reliability (worst first)
# ABOUT PAGE
#
#------------------------------------------------------------------------------
-about_page.read_documentation.
about_page.projects_analyzed=Projects Analyzed
about_page.issues_found=Issues Found
about_page.read_more=Read More