Skip to content

TagSpaces is an offline, open source, document manager with tagging support

added new translation strings

Ilian Sapundshievc8696d101456
diff --git a/app/components/Search.js b/app/components/Search.js
index 8ad44a81c..9ea51a4d2 100644
--- a/app/components/Search.js
+++ b/app/components/Search.js
@@ -151,6 +151,7 @@ class Search extends React.Component<Props, State> {
value={this.state.textQuery}
onChange={this.handleInputChange}
onKeyDown={this.startSearch}
+ placeholder={i18n.t('core:searchWordsWithInterval')}
endAdornment={
/* (this.state.textQuery && this.state.textQuery.length > 0) && */
<InputAdornment position="end">
@@ -160,18 +161,16 @@ class Search extends React.Component<Props, State> {
</InputAdornment>
}
/>
- <FormHelperText>
- {i18n.t('core:searchWordsWithInterval')}
- </FormHelperText>
</FormControl>
<FormControl
className={classes.formControl}
disabled={indexing}
>
- <InputLabel htmlFor="searchTags">{i18n.t('core:tagsWithInterval')}</InputLabel>
+ <InputLabel htmlFor="searchTags">{i18n.t('core:searchTags')}</InputLabel>
<Input
id="tagQuery"
name="tagQuery"
+ placeholder={i18n.t('core:tagsWithInterval')}
value={this.state.tagQuery}
onKeyDown={this.startSearch}
onChange={this.handleInputChange}
@@ -195,15 +194,15 @@ class Search extends React.Component<Props, State> {
<FormControlLabel
value="OR"
control={<Radio />}
- label="OR"
- title="Entry should contain at least one of the tags"
- style={{ paddingRight: 30 }}
+ label={i18n.t('core:tagSearchOR')}
+ title={i18n.t('core:tagSearchORTitle')}
+ style={{ paddingRight: 20 }}
/>
<FormControlLabel
value="AND"
control={<Radio />}
- label="AND"
- title="Entry should contain all of the tags"
+ label={i18n.t('core:tagSearchAND')}
+ title={i18n.t('core:tagSearchANDTitle')}
/>
</RadioGroup>
</FormControl>
diff --git a/app/locales/en/core.json b/app/locales/en/core.json
index d61585d77..332af05c1 100644
--- a/app/locales/en/core.json
+++ b/app/locales/en/core.json
@@ -177,6 +177,10 @@
"joinOnGooglePlus": "Join us in Google+",
"likeUsOnFacebook": "Like us on Facebook",
"searchPlaceholder": "Search current location",
+ "tagSearchOR": "At least one tag",
+ "tagSearchORTitle": "Entry should contain at least one of the tags (OR search)",
+ "tagSearchAND": "All tags",
+ "tagSearchANDTitle": "Entry should contain all of the tags (AND search)",
"perspectiveSwitch": "Perspective Switch",
"perspectiveManager": "Perspective Manager",
"noSubfoldersFound": "No subfolders found",
@@ -330,5 +334,6 @@
"showTagSpaces": "Show TagSpaces",
"quitTagSpaces": "Quit TagSpaces",
"switchTheme": "Switch theme",
+ "tagSearchType": "Tag search type",
"-": "-"
}