1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-21 20:44: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 (
<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}>
<ButtonToggleBeforeAfter onUpdate={setBa}/>
<InputWithIcon

View file

@ -41,7 +41,7 @@ export default function BoxConditionHashtag({ ...props }) {
}
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}>
<InputWithIcon
className={Style.Input}

View file

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

View file

@ -40,7 +40,7 @@ export default function BoxConditionUser({ ...props }) {
}
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}>
<InputWithIcon
className={Style.Input}

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -35,12 +35,12 @@ export default function Sidebar({ className, ...props }) {
<>
<ButtonSidebar to={"/dashboard"} icon={faHome}>Dashboard</ButtonSidebar>
<ButtonSidebar to={"/repositories"} icon={faFolder}>Repositories</ButtonSidebar>
<ButtonSidebar to={"/alerts"} icon={faExclamationTriangle}>Alerts</ButtonSidebar>
<ButtonSidebar to={"/settings"} icon={faCog}>Settings</ButtonSidebar>
<ButtonSidebar to={"/alerts"} icon={faExclamationTriangle}>Allarmi</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}
disabled={running}
>
Delete
Elimina
</Button>
: null}
{canEdit ?
@ -52,7 +52,7 @@ export default function SummaryRepository(
onClick={onEditClick}
disabled={running}
>
Edit
Modifica
</Button>
: null}
{canArchive ?
@ -62,7 +62,7 @@ export default function SummaryRepository(
onClick={archiveSelf}
disabled={running}
>
{"Archive"}
{"Archivia"}
</Button>
: null}
</>
@ -73,9 +73,9 @@ export default function SummaryRepository(
title={repo.name}
subtitle={repo.owner ? repo.owner.username : null}
onClick={onRepoClick}
upperLabel={"Created"}
upperLabel={"Creata"}
upperValue={repo.start ? new Date(repo.start).toLocaleString() : null}
lowerLabel={"Archived"}
lowerLabel={"Archiviata"}
lowerValue={repo.end ? new Date(repo.end).toLocaleString() : null}
buttons={buttons}
{...props}

View file

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

View file

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

View file

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

View file

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

View file

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