forked from vergnet/application-amicale
Updated translations
This commit is contained in:
parent
62db99cac7
commit
e8fc8b79dc
5 changed files with 69 additions and 93 deletions
|
@ -5,6 +5,7 @@ import {Avatar, Card, List, withTheme} from 'react-native-paper';
|
|||
import {StyleSheet} from "react-native";
|
||||
import {DrawerNavigationProp} from "@react-navigation/drawer";
|
||||
import type {CustomTheme} from "../../managers/ThemeManager";
|
||||
import i18n from 'i18n-js';
|
||||
|
||||
const ICON_AMICALE = require("../../../assets/amicale.png");
|
||||
|
||||
|
@ -29,8 +30,10 @@ class ActionsDashBoardItem extends React.Component<Props> {
|
|||
borderColor: this.props.theme.colors.primary,
|
||||
}}>
|
||||
<List.Item
|
||||
title={"AMICALE"}
|
||||
description={isLoggedIn ? "VOTRE ESPACE" : "SE CONNECTER"}
|
||||
title={i18n.t("homeScreen.dashboard.amicaleTitle")}
|
||||
description={isLoggedIn
|
||||
? i18n.t("homeScreen.dashboard.amicaleConnected")
|
||||
: i18n.t("homeScreen.dashboard.amicaleConnect")}
|
||||
left={props => <Avatar.Image
|
||||
{...props}
|
||||
size={40}
|
||||
|
|
|
@ -100,7 +100,7 @@ function ServicesStackComponent() {
|
|||
{createScreenCollapsibleStack("self-menu", ServicesStack, SelfMenuScreen, i18n.t('screens.menuSelf'))}
|
||||
|
||||
{/* STUDENTS */}
|
||||
{createScreenCollapsibleStack("proximo", ServicesStack, ProximoMainScreen, "Proximo")}
|
||||
{createScreenCollapsibleStack("proximo", ServicesStack, ProximoMainScreen, i18n.t('screens.proximo'))}
|
||||
{createScreenCollapsibleStack(
|
||||
"proximo-list",
|
||||
ServicesStack,
|
||||
|
@ -117,12 +117,12 @@ function ServicesStackComponent() {
|
|||
...modalTransition,
|
||||
}}
|
||||
/>
|
||||
{getWebsiteStack("amicale-website", ServicesStack, AmicaleWebsiteScreen, "Amicale")}
|
||||
{getWebsiteStack("amicale-website", ServicesStack, AmicaleWebsiteScreen, i18n.t('screens.amicaleWebsite'))}
|
||||
{getWebsiteStack("elus-etudiants", ServicesStack, ElusEtudiantsWebsiteScreen, "Élus Étudiants")}
|
||||
{getWebsiteStack("wiketud", ServicesStack, WiketudWebsiteScreen, "Wiketud")}
|
||||
{getWebsiteStack("tutorinsa", ServicesStack, TutorInsaWebsiteScreen, "Tutor'INSA")}
|
||||
{getWebsiteStack("ent", ServicesStack, ENTWebsiteScreen, "ENT INSA")}
|
||||
{getWebsiteStack("bluemind", ServicesStack, BlueMindWebsiteScreen, "BlueMind")}
|
||||
{getWebsiteStack("ent", ServicesStack, ENTWebsiteScreen, i18n.t('screens.ent'))}
|
||||
{getWebsiteStack("bluemind", ServicesStack, BlueMindWebsiteScreen, i18n.t('screens.bluemind'))}
|
||||
|
||||
|
||||
{/* AMICALE */}
|
||||
|
|
|
@ -11,6 +11,7 @@ import {Animated, View} from "react-native";
|
|||
import {Avatar, Button, Card, Divider, List, Title, TouchableRipple, withTheme} from "react-native-paper";
|
||||
import type {CustomTheme} from "../../managers/ThemeManager";
|
||||
import ConnectionManager from "../../managers/ConnectionManager";
|
||||
import i18n from 'i18n-js';
|
||||
|
||||
type Props = {
|
||||
navigation: Object,
|
||||
|
@ -55,31 +56,25 @@ class ServicesScreen extends React.Component<Props, State> {
|
|||
const nav = props.navigation;
|
||||
this.amicaleDataset = [
|
||||
{
|
||||
title: "AMICALE",
|
||||
subtitle: "AMICALE",
|
||||
image: AMICALE_IMAGE,
|
||||
onPress: () => nav.navigate("amicale-website"),
|
||||
},
|
||||
{
|
||||
title: "CLUBS",
|
||||
title: i18n.t('screens.clubsAbout'),
|
||||
subtitle: "CLUB LIST",
|
||||
image: AMICALE_IMAGE,
|
||||
onPress: () => nav.navigate("club-list"),
|
||||
},
|
||||
{
|
||||
title: "PROFIL",
|
||||
title: i18n.t('screens.profile'),
|
||||
subtitle: "PROFIL",
|
||||
image: AMICALE_IMAGE,
|
||||
onPress: () => nav.navigate("profile"),
|
||||
},
|
||||
{
|
||||
title: "CONTACT",
|
||||
title: i18n.t('screens.amicaleAbout'),
|
||||
subtitle: "CONTACT",
|
||||
image: AMICALE_IMAGE,
|
||||
onPress: () => nav.navigate("amicale-contact"),
|
||||
},
|
||||
{
|
||||
title: "ELECTIONS",
|
||||
title: i18n.t('screens.vote'),
|
||||
subtitle: "ELECTIONS",
|
||||
image: AMICALE_IMAGE,
|
||||
onPress: () => nav.navigate("vote"),
|
||||
|
@ -87,31 +82,31 @@ class ServicesScreen extends React.Component<Props, State> {
|
|||
];
|
||||
this.studentsDataset = [
|
||||
{
|
||||
title: "proximo",
|
||||
title: i18n.t('screens.proximo'),
|
||||
subtitle: "proximo",
|
||||
image: PROXIMO_IMAGE,
|
||||
onPress: () => nav.navigate("proximo"),
|
||||
},
|
||||
{
|
||||
title: "AMICALE",
|
||||
title: i18n.t('screens.amicaleWebsite'),
|
||||
subtitle: "AMICALE",
|
||||
image: AMICALE_IMAGE,
|
||||
onPress: () => nav.navigate("amicale-website"),
|
||||
},
|
||||
{
|
||||
title: "wiketud",
|
||||
title: "Wiketud",
|
||||
subtitle: "wiketud",
|
||||
image: WIKETUD_LINK,
|
||||
onPress: () => nav.navigate("wiketud"),
|
||||
},
|
||||
{
|
||||
title: "ELUS ETUDIANTS",
|
||||
title: "Élus Étudiants",
|
||||
subtitle: "ELUS ETUDIANTS",
|
||||
image: EE_IMAGE,
|
||||
onPress: () => nav.navigate("elus-etudiants"),
|
||||
},
|
||||
{
|
||||
title: "TUTOR INSA",
|
||||
title: "Tutor'INSA",
|
||||
subtitle: "TUTOR INSA",
|
||||
image: TUTORINSA_IMAGE,
|
||||
onPress: () => nav.navigate("tutorinsa"),
|
||||
|
@ -119,31 +114,31 @@ class ServicesScreen extends React.Component<Props, State> {
|
|||
];
|
||||
this.insaDataset = [
|
||||
{
|
||||
title: "RU",
|
||||
title: i18n.t('screens.menuSelf'),
|
||||
subtitle: "the ru",
|
||||
image: RU_IMAGE,
|
||||
onPress: () => nav.navigate("self-menu"),
|
||||
},
|
||||
{
|
||||
title: "AVAILABLE ROOMS",
|
||||
title: i18n.t('screens.availableRooms'),
|
||||
subtitle: "ROOMS",
|
||||
image: ROOM_IMAGE,
|
||||
onPress: () => nav.navigate("available-rooms"),
|
||||
},
|
||||
{
|
||||
title: "BIB",
|
||||
title: i18n.t('screens.bib'),
|
||||
subtitle: "BIB",
|
||||
image: BIB_IMAGE,
|
||||
onPress: () => nav.navigate("bib"),
|
||||
},
|
||||
{
|
||||
title: "EMAIL",
|
||||
title: i18n.t('screens.bluemind'),
|
||||
subtitle: "EMAIL",
|
||||
image: EMAIL_IMAGE,
|
||||
onPress: () => nav.navigate("bluemind"),
|
||||
},
|
||||
{
|
||||
title: "ENT",
|
||||
title: i18n.t('screens.ent'),
|
||||
subtitle: "ENT",
|
||||
image: ENT_IMAGE,
|
||||
onPress: () => nav.navigate("ent"),
|
||||
|
@ -151,21 +146,21 @@ class ServicesScreen extends React.Component<Props, State> {
|
|||
];
|
||||
this.finalDataset = [
|
||||
{
|
||||
title: "AMICALE",
|
||||
title: i18n.t("servicesScreen.amicale"),
|
||||
description: "LOGIN",
|
||||
image: AMICALE_IMAGE,
|
||||
shouldLogin: true,
|
||||
content: this.amicaleDataset
|
||||
},
|
||||
{
|
||||
title: "STUDENTS",
|
||||
title: i18n.t("servicesScreen.students"),
|
||||
description: "SERVICES OFFERED BY STUDENTS",
|
||||
image: 'account-group',
|
||||
shouldLogin: false,
|
||||
content: this.studentsDataset
|
||||
},
|
||||
{
|
||||
title: "INSA",
|
||||
title: i18n.t("servicesScreen.insa"),
|
||||
description: "SERVICES OFFERED BY INSA",
|
||||
image: 'school',
|
||||
shouldLogin: false,
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
"clubDisplayScreen": "Club details",
|
||||
"feedDisplayScreen": "Details",
|
||||
"clubsAbout": "Clubs",
|
||||
"amicaleAbout": "The Amicale",
|
||||
"amicaleAbout": "Contact",
|
||||
"amicaleWebsite": "Amicale's website",
|
||||
"proxiwash": "Proxiwash",
|
||||
"services": "Services",
|
||||
"proximo": "Proximo",
|
||||
|
@ -96,28 +97,11 @@
|
|||
"todayEventsSubtitleNA": "No events today",
|
||||
"todayEventsSubtitle": " event coming today",
|
||||
"todayEventsSubtitlePlural": " events coming today",
|
||||
"proximoTitle": "Proximo",
|
||||
"proximoSubtitleNA": "No articles available",
|
||||
"proximoSubtitle": " article available",
|
||||
"proximoSubtitlePlural": " articles available",
|
||||
"tutorinsaSubtitleNA": "No tutorial available",
|
||||
"tutorinsaSubtitle": " tutorial available",
|
||||
"tutorinsaSubtitlePlural": " tutorials available",
|
||||
"proxiwashTitle": "Available machines",
|
||||
"proxiwashSubtitleNA": "No machines available",
|
||||
"proxiwashSubtitle1": " dryer",
|
||||
"proxiwashSubtitle1Plural": " dryers",
|
||||
"proxiwashSubtitle2": " washer",
|
||||
"proxiwashSubtitle2Plural": " washers",
|
||||
"menuTitle": "Today's menu",
|
||||
"menuSubtitleNA": "No menu available",
|
||||
"menuSubtitle": "Click here to see the menu"
|
||||
"amicaleTitle": "The Amicale",
|
||||
"amicaleConnect": "Login",
|
||||
"amicaleConnected": "See available services"
|
||||
}
|
||||
},
|
||||
"planningScreen": {
|
||||
"wipTitle": "WORK IN PROGRESS",
|
||||
"wipSubtitle": "Soon, every event at the INSA Toulouse in one place !"
|
||||
},
|
||||
"aboutScreen": {
|
||||
"appstore": "See on the Appstore",
|
||||
"playstore": "See on the Playstore",
|
||||
|
@ -294,7 +278,7 @@
|
|||
"animation": "Animation",
|
||||
"clubs": "Clubs",
|
||||
"event": "Events",
|
||||
"tech" : "Technique",
|
||||
"tech": "Technique",
|
||||
"communication": "Communication",
|
||||
"intraSchools": "Alumni / IAT",
|
||||
"publicRelations": "Public Relations"
|
||||
|
@ -312,28 +296,28 @@
|
|||
"tease": {
|
||||
"title": "Elections incoming",
|
||||
"subtitle": "Be ready to vote!",
|
||||
"message" : "Vote start:"
|
||||
"message": "Vote start:"
|
||||
},
|
||||
"wait": {
|
||||
"titleSubmitted": "Vote submitted!",
|
||||
"titleEnded": "Votes closed",
|
||||
"subtitle" : "Waiting for results...",
|
||||
"messageSubmitted" : "Vote submitted successfully.",
|
||||
"messageVoted" : "Thank you for your participation.",
|
||||
"messageDate" : "Results available:",
|
||||
"messageDateUndefined" : "Results will be available shortly"
|
||||
"subtitle": "Waiting for results...",
|
||||
"messageSubmitted": "Vote submitted successfully.",
|
||||
"messageVoted": "Thank you for your participation.",
|
||||
"messageDate": "Results available:",
|
||||
"messageDateUndefined": "Results will be available shortly"
|
||||
},
|
||||
"results": {
|
||||
"title": "Results",
|
||||
"subtitle": "Available until:",
|
||||
"totalVotes" : "Total votes:",
|
||||
"votes" : "votes"
|
||||
"totalVotes": "Total votes:",
|
||||
"votes": "votes"
|
||||
},
|
||||
"title": {
|
||||
"title": "The Elections",
|
||||
"subtitle": "Why your vote is important",
|
||||
"paragraph1" : "The Amicale's elections is the right moment for you to choose the next team, which will handle different projects on the campus, help organizing your favorite events, animate the campus life during the whole year, and relay your ideas to the administration, so that your campus life is the most enjoyable possible!\nYour turn to make a change!\uD83D\uDE09",
|
||||
"paragraph2" : "Note: If there is only one list, it is still important to vote to show your support, so that the administration knows the current list is supported by students. It is always a plus when taking difficult decisions! \uD83D\uDE09"
|
||||
"paragraph1": "The Amicale's elections is the right moment for you to choose the next team, which will handle different projects on the campus, help organizing your favorite events, animate the campus life during the whole year, and relay your ideas to the administration, so that your campus life is the most enjoyable possible!\nYour turn to make a change!\uD83D\uDE09",
|
||||
"paragraph2": "Note: If there is only one list, it is still important to vote to show your support, so that the administration knows the current list is supported by students. It is always a plus when taking difficult decisions! \uD83D\uDE09"
|
||||
}
|
||||
},
|
||||
"dialog": {
|
||||
|
@ -398,5 +382,10 @@
|
|||
"time": "Time: ",
|
||||
"exit": "leave Game"
|
||||
}
|
||||
},
|
||||
"servicesScreen": {
|
||||
"amicale": "The Amicale",
|
||||
"students": "Student services",
|
||||
"insa": "INSA services"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
"clubDisplayScreen": "Détails",
|
||||
"feedDisplayScreen": "Détails",
|
||||
"clubsAbout": "Les Clubs",
|
||||
"amicaleAbout": "L' Amicale",
|
||||
"amicaleAbout": "Contact",
|
||||
"amicaleWebsite": "Site de l'Amicale",
|
||||
"proxiwash": "Proxiwash",
|
||||
"services": "Services",
|
||||
"proximo": "Proximo",
|
||||
|
@ -96,28 +97,11 @@
|
|||
"todayEventsSubtitleNA": "Pas d'événement",
|
||||
"todayEventsSubtitle": " événement aujourd'hui",
|
||||
"todayEventsSubtitlePlural": " événements aujourd'hui",
|
||||
"proximoTitle": "Proximo",
|
||||
"proximoSubtitleNA": "pas d'article en vente",
|
||||
"proximoSubtitle": " article disponible",
|
||||
"proximoSubtitlePlural": " articles disponibles",
|
||||
"tutorinsaSubtitleNA": "Aucun tutorat disponible",
|
||||
"tutorinsaSubtitle": " tutorat disponible",
|
||||
"tutorinsaSubtitlePlural": " tutorats disponibles",
|
||||
"proxiwashTitle": "Machines disponibles",
|
||||
"proxiwashSubtitleNA": "Pas de machine disponible",
|
||||
"proxiwashSubtitle1": " sèche-linge",
|
||||
"proxiwashSubtitle1Plural": " sèche-linges",
|
||||
"proxiwashSubtitle2": " lave-linge",
|
||||
"proxiwashSubtitle2Plural": " lave-linges",
|
||||
"menuTitle": "Menu d'aujourd'hui",
|
||||
"menuSubtitleNA": "Pas de menu disponible",
|
||||
"menuSubtitle": "Cliquez ici pour voir le menu"
|
||||
"amicaleTitle": "L'Amicale",
|
||||
"amicaleConnect": "Se connecter",
|
||||
"amicaleConnected": "Voir les services disponibles"
|
||||
}
|
||||
},
|
||||
"planningScreen": {
|
||||
"wipTitle": "WORK IN PROGRESS",
|
||||
"wipSubtitle": "Bientôt, tous les évènements de l'INSA Toulouse en un seul endroit !"
|
||||
},
|
||||
"aboutScreen": {
|
||||
"appstore": "Voir sur l'Appstore",
|
||||
"playstore": "Voir sur le Playstore",
|
||||
|
@ -294,7 +278,7 @@
|
|||
"animation": "Animation",
|
||||
"clubs": "Clubs",
|
||||
"event": "Événements",
|
||||
"tech" : "Technique",
|
||||
"tech": "Technique",
|
||||
"communication": "Communication",
|
||||
"intraSchools": "Alumni / IAT",
|
||||
"publicRelations": "Relations Publiques"
|
||||
|
@ -312,28 +296,28 @@
|
|||
"tease": {
|
||||
"title": "Les élections arrivent",
|
||||
"subtitle": "Préparez vous à voter !",
|
||||
"message" : "Début des votes :"
|
||||
"message": "Début des votes :"
|
||||
},
|
||||
"wait": {
|
||||
"titleSubmitted": "Vote envoyé !",
|
||||
"titleEnded": "Votes fermés",
|
||||
"subtitle" : "Attente des résultats...",
|
||||
"messageSubmitted" : "Votre vote a bien été envoyé.",
|
||||
"messageVoted" : "Merci pour votre participation.",
|
||||
"messageDate" : "Disponibilité des résultats :",
|
||||
"messageDateUndefined" : "les résultats seront disponibles sous peu."
|
||||
"subtitle": "Attente des résultats...",
|
||||
"messageSubmitted": "Votre vote a bien été envoyé.",
|
||||
"messageVoted": "Merci pour votre participation.",
|
||||
"messageDate": "Disponibilité des résultats :",
|
||||
"messageDateUndefined": "les résultats seront disponibles sous peu."
|
||||
},
|
||||
"results": {
|
||||
"title": "Résultats",
|
||||
"subtitle": "Disponibles jusqu'à :",
|
||||
"totalVotes" : "Nombre total de votes :",
|
||||
"votes" : "votes"
|
||||
"totalVotes": "Nombre total de votes :",
|
||||
"votes": "votes"
|
||||
},
|
||||
"title": {
|
||||
"title": "Les Élections",
|
||||
"subtitle": "Pourquoi votre vote est important",
|
||||
"paragraph1" : "Les élections de l'amicale, c'est le moment pour vous de choisir la prochaine équipe qui portera les différents projets du campus, qui soutiendra les organisations de vos événements favoris, qui vous proposera des animations tout au long de l'année, et qui poussera vos idées à l’administration pour que la vie de campus soit des plus riches !\nAlors à vous de jouer ! \uD83D\uDE09",
|
||||
"paragraph2" : "NB : Si par cas il n'y a qu'une liste qui se présente, il est important que tout le monde vote, afin qui la liste puisse montrer à l’administration que les INSAiens la soutiennent ! Ça compte toujours pour les décisions difficiles ! \uD83D\uDE09"
|
||||
"paragraph1": "Les élections de l'amicale, c'est le moment pour vous de choisir la prochaine équipe qui portera les différents projets du campus, qui soutiendra les organisations de vos événements favoris, qui vous proposera des animations tout au long de l'année, et qui poussera vos idées à l’administration pour que la vie de campus soit des plus riches !\nAlors à vous de jouer ! \uD83D\uDE09",
|
||||
"paragraph2": "NB : Si par cas il n'y a qu'une liste qui se présente, il est important que tout le monde vote, afin qui la liste puisse montrer à l’administration que les INSAiens la soutiennent ! Ça compte toujours pour les décisions difficiles ! \uD83D\uDE09"
|
||||
}
|
||||
},
|
||||
"dialog": {
|
||||
|
@ -398,5 +382,10 @@
|
|||
"time": "Temps: ",
|
||||
"exit": "Quitter"
|
||||
}
|
||||
},
|
||||
"servicesScreen": {
|
||||
"amicale": "L'Amicale",
|
||||
"students": "Services étudiants",
|
||||
"insa": "Services de l'INSA"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue