mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
mark upload button strings for translation
This commit is contained in:
parent
4ca6c1c6c5
commit
ed02f28cbe
@ -39,6 +39,9 @@ function PaginatedTable({
|
||||
const { search, pathname } = useLocation();
|
||||
const history = useHistory();
|
||||
const location = useLocation();
|
||||
if (!pluralizedItemName) {
|
||||
pluralizedItemName = t`Items`;
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
clearSelected();
|
||||
@ -198,7 +201,7 @@ PaginatedTable.defaultProps = {
|
||||
toolbarSearchColumns: [],
|
||||
toolbarSearchableKeys: [],
|
||||
toolbarRelatedSearchableKeys: [],
|
||||
pluralizedItemName: 'Items',
|
||||
pluralizedItemName: null,
|
||||
showPageSizeOptions: true,
|
||||
renderToolbar: props => <DataListToolbar {...props} />,
|
||||
ouiaId: null,
|
||||
|
||||
@ -87,6 +87,9 @@ function CredentialInput({
|
||||
id={`credential-${fieldOptions.id}`}
|
||||
type="text"
|
||||
filename={fileName}
|
||||
filenamePlaceholder={t`Drag a file here or browse to upload`}
|
||||
browseButtonText={t`Browse…`}
|
||||
clearButtonText={t`Clear`}
|
||||
onChange={handleFileChange}
|
||||
onReadStarted={() => setFileIsUploading(true)}
|
||||
onReadFinished={() => setFileIsUploading(false)}
|
||||
@ -105,6 +108,9 @@ function CredentialInput({
|
||||
id={`credential-${fieldOptions.id}`}
|
||||
type="text"
|
||||
filename={fileName}
|
||||
filenamePlaceholder={t`Drag a file here or browse to upload`}
|
||||
browseButtonText={t`Browse…`}
|
||||
clearButtonText={t`Clear`}
|
||||
onChange={handleFileChange}
|
||||
onReadStarted={() => setFileIsUploading(true)}
|
||||
onReadFinished={() => setFileIsUploading(false)}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user