1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-22 04:54:18 +00:00

–🇮🇹 Translated UI to italian

This commit is contained in:
@uni-chiara 2021-05-13 18:24:52 +02:00
parent 3961ac27b6
commit b4e7066d6d
21 changed files with 47 additions and 47 deletions

View file

@ -50,7 +50,7 @@ export default function BoxConditionDatetime({ ...props }) {
} }
return ( return (
<BoxFull header={<span>Search by <FontAwesomeIcon icon={faClock}/> time period</span>} {...props}> <BoxFull header={<span>Ricerca per <FontAwesomeIcon icon={faClock}/> arco di tempo</span>} {...props}>
<FormInline onSubmit={onButtonClick}> <FormInline onSubmit={onButtonClick}>
<ButtonToggleBeforeAfter onUpdate={setBa}/> <ButtonToggleBeforeAfter onUpdate={setBa}/>
<InputWithIcon <InputWithIcon

View file

@ -41,7 +41,7 @@ export default function BoxConditionHashtag({ ...props }) {
} }
return ( return (
<BoxFull header={<span>Search by <FontAwesomeIcon icon={faHashtag}/> hashtag</span>} {...props}> <BoxFull header={<span>Ricerca per <FontAwesomeIcon icon={faHashtag}/> hashtag</span>} {...props}>
<FormInline onSubmit={onButtonClick}> <FormInline onSubmit={onButtonClick}>
<InputWithIcon <InputWithIcon
className={Style.Input} className={Style.Input}

View file

@ -99,7 +99,7 @@ export default function BoxConditionMap({ ...props }) {
return ( return (
<BoxFull <BoxFull
header={ header={
<span>Search by <FontAwesomeIcon icon={faMapPin}/> zone</span> <span>Ricerca per <FontAwesomeIcon icon={faMapPin}/> area</span>
} }
childrenClassName={Style.BoxConditionMapContents} childrenClassName={Style.BoxConditionMapContents}
{...props} {...props}

View file

@ -40,7 +40,7 @@ export default function BoxConditionUser({ ...props }) {
} }
return ( return (
<BoxFull header={<span>Search by <FontAwesomeIcon icon={faAt}/> user</span>} {...props}> <BoxFull header={<span>Ricerca per <FontAwesomeIcon icon={faAt}/> utente</span>} {...props}>
<FormInline onSubmit={onButtonClick}> <FormInline onSubmit={onButtonClick}>
<InputWithIcon <InputWithIcon
className={Style.Input} className={Style.Input}

View file

@ -17,7 +17,7 @@ export default function BoxConditions({ ...props }) {
const badges = conditions.map((cond, pos) => <ConditionBadge key={pos} {...cond}/>) const badges = conditions.map((cond, pos) => <ConditionBadge key={pos} {...cond}/>)
return ( return (
<BoxFull header={"Conditions"} {...props}> <BoxFull header={"Condizioni"} {...props}>
{badges} {badges}
</BoxFull> </BoxFull>
) )

View file

@ -21,10 +21,10 @@ export default function BoxLoggedIn({ ...props }) {
const history = useHistory() const history = useHistory()
return ( return (
<BoxFull header={"Logged in"} {...props}> <BoxFull header={"Acceduto"} {...props}>
<div className={Style.BoxLoggedInContents}> <div className={Style.BoxLoggedInContents}>
<div> <div>
You are currently logged in at <CurrentServer/> as <LoggedInUser/>. Al momento sei acceduto su <CurrentServer/> come <LoggedInUser/>.
</div> </div>
<div> <div>
<Button <Button
@ -32,7 +32,7 @@ export default function BoxLoggedIn({ ...props }) {
logout() logout()
history.push("/login") history.push("/login")
}} icon={faSignOutAlt} }} icon={faSignOutAlt}
>Logout</Button> >Esci</Button>
</div> </div>
</div> </div>
</BoxFull> </BoxFull>

View file

@ -44,7 +44,7 @@ export default function BoxLogin({ ...props }) {
} }
return ( return (
<BoxFull header={"Login"} {...props}> <BoxFull header={"Accedi"} {...props}>
<FormLabelled> <FormLabelled>
<FormLabel text={"Email"} htmlFor={"login-email"}> <FormLabel text={"Email"} htmlFor={"login-email"}>
<InputWithIcon <InputWithIcon
@ -77,7 +77,7 @@ export default function BoxLogin({ ...props }) {
color={"Green"} color={"Green"}
disabled={working} disabled={working}
> >
Login Accedi
</FormButton> </FormButton>
</FormLabelled> </FormLabelled>
</BoxFull> </BoxFull>

View file

@ -31,7 +31,7 @@ export default function BoxRepositoriesActive({
contents = <Loading/> contents = <Loading/>
} }
else if(repositories.length === 0) { else if(repositories.length === 0) {
contents = <i>There's nothing here.</i> contents = <i>Non c'è nulla qui.</i>
} }
else { else {
contents = repositories.map(repo => ( contents = repositories.map(repo => (
@ -50,7 +50,7 @@ export default function BoxRepositoriesActive({
} }
return ( return (
<BoxFullScrollable header={"Your active repositories"} {...props}> <BoxFullScrollable header={"Le tue repository attive"} {...props}>
{contents} {contents}
</BoxFullScrollable> </BoxFullScrollable>
) )

View file

@ -31,7 +31,7 @@ export default function BoxRepositoriesArchived({
contents = <Loading/> contents = <Loading/>
} }
else if(repositories.length === 0) { else if(repositories.length === 0) {
contents = <i>There's nothing here.</i> contents = <i>Non c'è nulla qui.</i>
} }
else { else {
contents = repositories.map(repo => ( contents = repositories.map(repo => (
@ -50,7 +50,7 @@ export default function BoxRepositoriesArchived({
} }
return ( return (
<BoxFullScrollable header={"Your active repositories"} {...props}> <BoxFullScrollable header={"Le tue repository archiviate"} {...props}>
{contents} {contents}
</BoxFullScrollable> </BoxFullScrollable>
) )

View file

@ -34,14 +34,14 @@ export default function BoxRepositoryCreate({ ...props }) {
const history = useHistory() const history = useHistory()
return ( return (
<BoxFull header={"Create repository"} {...props}> <BoxFull header={"Crea repository"} {...props}>
<FormLabelled <FormLabelled
onSubmit={e => { onSubmit={e => {
e.preventDefault() e.preventDefault()
save() save()
}} }}
> >
<FormLabel htmlFor={"repo-name"} text={"Repository name"}> <FormLabel htmlFor={"repo-name"} text={"Nome della repository"}>
<InputWithIcon <InputWithIcon
id={"repo-name"} id={"repo-name"}
icon={faFolder} icon={faFolder}
@ -49,14 +49,14 @@ export default function BoxRepositoryCreate({ ...props }) {
onChange={e => setName(e.target.value)} onChange={e => setName(e.target.value)}
/> />
</FormLabel> </FormLabel>
<FormLabel htmlFor={"filter-mode"} text={"Add tweets if they satisfy"}> <FormLabel htmlFor={"filter-mode"} text={"Aggiutngi tweet se soddisfano:"}>
<label> <label>
<Radio <Radio
name={"filter-mode"} name={"filter-mode"}
onChange={() => setEvaluationMode(0)} onChange={() => setEvaluationMode(0)}
checked={evaluationMode === 0} checked={evaluationMode === 0}
/> />
One filter Un filtro
</label> </label>
&nbsp; &nbsp;
<label> <label>
@ -65,7 +65,7 @@ export default function BoxRepositoryCreate({ ...props }) {
onChange={() => setEvaluationMode(1)} onChange={() => setEvaluationMode(1)}
checked={evaluationMode === 1} checked={evaluationMode === 1}
/> />
Every filter Tutti i filtri
</label> </label>
</FormLabel> </FormLabel>
{error ? {error ?
@ -99,7 +99,7 @@ export default function BoxRepositoryCreate({ ...props }) {
color={"Green"} color={"Green"}
onClick={_ => goToOnSuccess(save, history, "/repositories")()} onClick={_ => goToOnSuccess(save, history, "/repositories")()}
> >
Create repository Crea repository
</Button> </Button>
} }

View file

@ -18,7 +18,7 @@ export default function BoxSetServer({ ...props }) {
const { server, setServer } = useContext(ContextServer) const { server, setServer } = useContext(ContextServer)
return ( return (
<BoxFull header={"Choose server"} {...props}> <BoxFull header={"Scegli un server"} {...props}>
<FormLabelled> <FormLabelled>
<FormLabel text={"Base URL"} htmlFor={"set-server-base-url"}> <FormLabel text={"Base URL"} htmlFor={"set-server-base-url"}>
<InputWithIcon <InputWithIcon

View file

@ -19,7 +19,7 @@ export default function ButtonToggleBeforeAfter({ onUpdate, className, ...props
onClick={onButtonClick} onClick={onButtonClick}
{...props} {...props}
> >
{value ? "After" : "Before"} {value ? "Dopo" : "Prima"}
</Button> </Button>
) )
} }

View file

@ -17,7 +17,7 @@ export default function LoggedInUser({ ...props }) {
if(!user) { if(!user) {
return ( return (
<i {...props}> <i {...props}>
Not logged in Non acceduto
</i> </i>
) )
} }

View file

@ -16,8 +16,8 @@ export default function SelectTheme({ ...props }) {
return ( return (
<Select value={theme} onChange={e => setTheme(e.target.value)} {...props}> <Select value={theme} onChange={e => setTheme(e.target.value)} {...props}>
<option value={"ThemeDark"}>Dark</option> <option value={"ThemeDark"}>Scuro</option>
<option value={"ThemeLight"}>Light</option> <option value={"ThemeLight"}>Chiaro</option>
</Select> </Select>
) )
} }

View file

@ -35,12 +35,12 @@ export default function Sidebar({ className, ...props }) {
<> <>
<ButtonSidebar to={"/dashboard"} icon={faHome}>Dashboard</ButtonSidebar> <ButtonSidebar to={"/dashboard"} icon={faHome}>Dashboard</ButtonSidebar>
<ButtonSidebar to={"/repositories"} icon={faFolder}>Repositories</ButtonSidebar> <ButtonSidebar to={"/repositories"} icon={faFolder}>Repositories</ButtonSidebar>
<ButtonSidebar to={"/alerts"} icon={faExclamationTriangle}>Alerts</ButtonSidebar> <ButtonSidebar to={"/alerts"} icon={faExclamationTriangle}>Allarmi</ButtonSidebar>
<ButtonSidebar to={"/settings"} icon={faCog}>Settings</ButtonSidebar> <ButtonSidebar to={"/settings"} icon={faCog}>Impostazioni</ButtonSidebar>
</> </>
: :
<> <>
<ButtonSidebar to={"/login"} icon={faKey}>Login</ButtonSidebar> <ButtonSidebar to={"/login"} icon={faKey}>Accedi</ButtonSidebar>
</> </>
} }
{ {

View file

@ -42,7 +42,7 @@ export default function SummaryRepository(
onClick={deleteSelf} onClick={deleteSelf}
disabled={running} disabled={running}
> >
Delete Elimina
</Button> </Button>
: null} : null}
{canEdit ? {canEdit ?
@ -52,7 +52,7 @@ export default function SummaryRepository(
onClick={onEditClick} onClick={onEditClick}
disabled={running} disabled={running}
> >
Edit Modifica
</Button> </Button>
: null} : null}
{canArchive ? {canArchive ?
@ -62,7 +62,7 @@ export default function SummaryRepository(
onClick={archiveSelf} onClick={archiveSelf}
disabled={running} disabled={running}
> >
{"Archive"} {"Archivia"}
</Button> </Button>
: null} : null}
</> </>
@ -73,9 +73,9 @@ export default function SummaryRepository(
title={repo.name} title={repo.name}
subtitle={repo.owner ? repo.owner.username : null} subtitle={repo.owner ? repo.owner.username : null}
onClick={onRepoClick} onClick={onRepoClick}
upperLabel={"Created"} upperLabel={"Creata"}
upperValue={repo.start ? new Date(repo.start).toLocaleString() : null} upperValue={repo.start ? new Date(repo.start).toLocaleString() : null}
lowerLabel={"Archived"} lowerLabel={"Archiviata"}
lowerValue={repo.end ? new Date(repo.end).toLocaleString() : null} lowerValue={repo.end ? new Date(repo.end).toLocaleString() : null}
buttons={buttons} buttons={buttons}
{...props} {...props}

View file

@ -20,7 +20,7 @@ export default function SummaryUser({ user, destroyUser, running, ...props }) {
}} }}
disabled={running} disabled={running}
> >
Delete Elimina
</Button> </Button>
: null} : null}
</> </>

View file

@ -7,11 +7,11 @@ import BoxFull from "../components/base/BoxFull"
export default function PageAlerts({ children, className, ...props }) { export default function PageAlerts({ children, className, ...props }) {
return ( return (
<div className={classNames(Style.PageAlerts, className)} {...props}> <div className={classNames(Style.PageAlerts, className)} {...props}>
<BoxFull header={"Your alerts"} className={Style.YourAlerts}> <BoxFull header={"I tuoi allarmi"} className={Style.YourAlerts}>
🚧 Not implemented. 🚧 Non implementato.
</BoxFull> </BoxFull>
<BoxFull header={"Create new alert"} className={Style.CreateAlert}> <BoxFull header={"Crea un nuovo allarme"} className={Style.CreateAlert}>
🚧 Not implemented. 🚧 Non implementato.
</BoxFull> </BoxFull>
</div> </div>
) )

View file

@ -9,7 +9,7 @@ export default function PageDashboard({ children, className, ...props }) {
return ( return (
<div className={classNames(Style.PageHome, className)} {...props}> <div className={classNames(Style.PageHome, className)} {...props}>
<BoxHeader className={Style.Header}> <BoxHeader className={Style.Header}>
Create a new repository Crea una nuova repository
</BoxHeader> </BoxHeader>
<RepositoryEditor className={Style.RepositoryEditor}/> <RepositoryEditor className={Style.RepositoryEditor}/>
</div> </div>

View file

@ -24,7 +24,7 @@ export default function PageEdit({ className, ...props }) {
return ( return (
<div className={classNames(Style.PageHome, className)} {...props}> <div className={classNames(Style.PageHome, className)} {...props}>
<BoxHeader className={Style.Header}> <BoxHeader className={Style.Header}>
Edit repository Modifica repository
</BoxHeader> </BoxHeader>
{contents} {contents}
</div> </div>

View file

@ -13,16 +13,16 @@ export default function PageSettings({ children, className, ...props }) {
<div className={classNames(Style.PageSettings, className)} {...props}> <div className={classNames(Style.PageSettings, className)} {...props}>
<BoxLoggedIn/> <BoxLoggedIn/>
<BoxHeader> <BoxHeader>
Switch theme: <SelectTheme/> Cambia tema: <SelectTheme/>
</BoxHeader> </BoxHeader>
<BoxFull header={"Alert settings"}> <BoxFull header={"Impostazioni allarmi"}>
🚧 Not implemented. 🚧 Non implementato.
</BoxFull> </BoxFull>
<BoxFull header={"Change your email address"}> <BoxFull header={"Cambia il tuo indirizzo email"}>
🚧 Not implemented. 🚧 Non implementato.
</BoxFull> </BoxFull>
<BoxFull header={"Change your password"}> <BoxFull header={"Cambia la tua password"}>
🚧 Not implemented. 🚧 Non implementato.
</BoxFull> </BoxFull>
</div> </div>
) )