Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Nos Hs2023
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Språksamlingane
stadnamn
Nos Hs2023
Commits
317b0247
Commit
317b0247
authored
4 years ago
by
esikkala
Browse files
Options
Downloads
Patches
Plain Diff
Translate text facet placeholder
parent
5e90906e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/client/components/facet_bar/TextFacet.js
+6
-4
6 additions, 4 deletions
src/client/components/facet_bar/TextFacet.js
src/client/translations/sampo/localeEN.js
+4
-2
4 additions, 2 deletions
src/client/translations/sampo/localeEN.js
with
10 additions
and
6 deletions
src/client/components/facet_bar/TextFacet.js
+
6
−
4
View file @
317b0247
import
React
from
'
react
'
import
PropTypes
from
'
prop-types
'
import
intl
from
'
react-intl-universal
'
import
{
withStyles
}
from
'
@material-ui/core/styles
'
import
IconButton
from
'
@material-ui/core/IconButton
'
import
SearchIcon
from
'
@material-ui/icons/Search
'
...
...
@@ -63,13 +64,14 @@ class TextFacet extends React.Component {
}
render
()
{
const
{
classes
}
=
this
.
props
const
{
classes
,
facetClass
,
facetID
}
=
this
.
props
const
placeholder
=
intl
.
get
(
`perspectives.
${
facetClass
}
.properties.
${
facetID
}
.textFacetInputPlaceholder`
)
let
searchButton
=
null
const
textResultsFetching
=
false
if
(
textResultsFetching
)
{
searchButton
=
(
<
IconButton
aria
-
label
=
'
Search places
'
aria
-
label
=
{
placeholder
}
>
<
CircularProgress
size
=
{
24
}
/
>
<
/IconButton
>
...
...
@@ -77,7 +79,7 @@ class TextFacet extends React.Component {
}
else
{
searchButton
=
(
<
IconButton
aria
-
label
=
'
Search
'
aria
-
label
=
{
placeholder
}
onClick
=
{
this
.
handleClick
}
onMouseDown
=
{
this
.
handleMouseDown
}
>
...
...
@@ -89,7 +91,7 @@ class TextFacet extends React.Component {
return
(
<
div
className
=
{
classes
.
root
}
>
<
FormControl
className
=
{
classes
.
textSearch
}
>
<
InputLabel
htmlFor
=
'
adornment-search
'
>
Search
<
/InputLabel
>
<
InputLabel
htmlFor
=
'
adornment-search
'
>
{
placeholder
}
<
/InputLabel
>
<
Input
id
=
'
adornment-search
'
type
=
'
text
'
...
...
This diff is collapsed.
Click to expand it.
src/client/translations/sampo/localeEN.js
+
4
−
2
View file @
317b0247
...
...
@@ -275,7 +275,8 @@ export default {
},
prefLabel
:
{
label
:
'
Label
'
,
description
:
'
A short label describing the manuscript.
'
description
:
'
A short label describing the manuscript.
'
,
textFacetInputPlaceholder
:
'
Search...
'
},
author
:
{
label
:
'
Author
'
,
...
...
@@ -488,7 +489,8 @@ export default {
},
prefLabel
:
{
label
:
'
Title
'
,
description
:
'
The name or title of the Work.
'
description
:
'
The name or title of the Work.
'
,
textFacetInputPlaceholder
:
'
Search...
'
},
author
:
{
label
:
'
Possible author
'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment