Updated translations

This commit is contained in:
Arnaud Vergnet 2020-04-22 15:19:00 +02:00
parent 62db99cac7
commit e8fc8b79dc
5 changed files with 69 additions and 93 deletions

View file

@ -5,6 +5,7 @@ import {Avatar, Card, List, withTheme} from 'react-native-paper';
import {StyleSheet} from "react-native"; import {StyleSheet} from "react-native";
import {DrawerNavigationProp} from "@react-navigation/drawer"; import {DrawerNavigationProp} from "@react-navigation/drawer";
import type {CustomTheme} from "../../managers/ThemeManager"; import type {CustomTheme} from "../../managers/ThemeManager";
import i18n from 'i18n-js';
const ICON_AMICALE = require("../../../assets/amicale.png"); const ICON_AMICALE = require("../../../assets/amicale.png");
@ -29,8 +30,10 @@ class ActionsDashBoardItem extends React.Component<Props> {
borderColor: this.props.theme.colors.primary, borderColor: this.props.theme.colors.primary,
}}> }}>
<List.Item <List.Item
title={"AMICALE"} title={i18n.t("homeScreen.dashboard.amicaleTitle")}
description={isLoggedIn ? "VOTRE ESPACE" : "SE CONNECTER"} description={isLoggedIn
? i18n.t("homeScreen.dashboard.amicaleConnected")
: i18n.t("homeScreen.dashboard.amicaleConnect")}
left={props => <Avatar.Image left={props => <Avatar.Image
{...props} {...props}
size={40} size={40}

View file

@ -100,7 +100,7 @@ function ServicesStackComponent() {
{createScreenCollapsibleStack("self-menu", ServicesStack, SelfMenuScreen, i18n.t('screens.menuSelf'))} {createScreenCollapsibleStack("self-menu", ServicesStack, SelfMenuScreen, i18n.t('screens.menuSelf'))}
{/* STUDENTS */} {/* STUDENTS */}
{createScreenCollapsibleStack("proximo", ServicesStack, ProximoMainScreen, "Proximo")} {createScreenCollapsibleStack("proximo", ServicesStack, ProximoMainScreen, i18n.t('screens.proximo'))}
{createScreenCollapsibleStack( {createScreenCollapsibleStack(
"proximo-list", "proximo-list",
ServicesStack, ServicesStack,
@ -117,12 +117,12 @@ function ServicesStackComponent() {
...modalTransition, ...modalTransition,
}} }}
/> />
{getWebsiteStack("amicale-website", ServicesStack, AmicaleWebsiteScreen, "Amicale")} {getWebsiteStack("amicale-website", ServicesStack, AmicaleWebsiteScreen, i18n.t('screens.amicaleWebsite'))}
{getWebsiteStack("elus-etudiants", ServicesStack, ElusEtudiantsWebsiteScreen, "Élus Étudiants")} {getWebsiteStack("elus-etudiants", ServicesStack, ElusEtudiantsWebsiteScreen, "Élus Étudiants")}
{getWebsiteStack("wiketud", ServicesStack, WiketudWebsiteScreen, "Wiketud")} {getWebsiteStack("wiketud", ServicesStack, WiketudWebsiteScreen, "Wiketud")}
{getWebsiteStack("tutorinsa", ServicesStack, TutorInsaWebsiteScreen, "Tutor'INSA")} {getWebsiteStack("tutorinsa", ServicesStack, TutorInsaWebsiteScreen, "Tutor'INSA")}
{getWebsiteStack("ent", ServicesStack, ENTWebsiteScreen, "ENT INSA")} {getWebsiteStack("ent", ServicesStack, ENTWebsiteScreen, i18n.t('screens.ent'))}
{getWebsiteStack("bluemind", ServicesStack, BlueMindWebsiteScreen, "BlueMind")} {getWebsiteStack("bluemind", ServicesStack, BlueMindWebsiteScreen, i18n.t('screens.bluemind'))}
{/* AMICALE */} {/* AMICALE */}

View file

@ -11,6 +11,7 @@ import {Animated, View} from "react-native";
import {Avatar, Button, Card, Divider, List, Title, TouchableRipple, withTheme} from "react-native-paper"; import {Avatar, Button, Card, Divider, List, Title, TouchableRipple, withTheme} from "react-native-paper";
import type {CustomTheme} from "../../managers/ThemeManager"; import type {CustomTheme} from "../../managers/ThemeManager";
import ConnectionManager from "../../managers/ConnectionManager"; import ConnectionManager from "../../managers/ConnectionManager";
import i18n from 'i18n-js';
type Props = { type Props = {
navigation: Object, navigation: Object,
@ -55,31 +56,25 @@ class ServicesScreen extends React.Component<Props, State> {
const nav = props.navigation; const nav = props.navigation;
this.amicaleDataset = [ this.amicaleDataset = [
{ {
title: "AMICALE", title: i18n.t('screens.clubsAbout'),
subtitle: "AMICALE",
image: AMICALE_IMAGE,
onPress: () => nav.navigate("amicale-website"),
},
{
title: "CLUBS",
subtitle: "CLUB LIST", subtitle: "CLUB LIST",
image: AMICALE_IMAGE, image: AMICALE_IMAGE,
onPress: () => nav.navigate("club-list"), onPress: () => nav.navigate("club-list"),
}, },
{ {
title: "PROFIL", title: i18n.t('screens.profile'),
subtitle: "PROFIL", subtitle: "PROFIL",
image: AMICALE_IMAGE, image: AMICALE_IMAGE,
onPress: () => nav.navigate("profile"), onPress: () => nav.navigate("profile"),
}, },
{ {
title: "CONTACT", title: i18n.t('screens.amicaleAbout'),
subtitle: "CONTACT", subtitle: "CONTACT",
image: AMICALE_IMAGE, image: AMICALE_IMAGE,
onPress: () => nav.navigate("amicale-contact"), onPress: () => nav.navigate("amicale-contact"),
}, },
{ {
title: "ELECTIONS", title: i18n.t('screens.vote'),
subtitle: "ELECTIONS", subtitle: "ELECTIONS",
image: AMICALE_IMAGE, image: AMICALE_IMAGE,
onPress: () => nav.navigate("vote"), onPress: () => nav.navigate("vote"),
@ -87,31 +82,31 @@ class ServicesScreen extends React.Component<Props, State> {
]; ];
this.studentsDataset = [ this.studentsDataset = [
{ {
title: "proximo", title: i18n.t('screens.proximo'),
subtitle: "proximo", subtitle: "proximo",
image: PROXIMO_IMAGE, image: PROXIMO_IMAGE,
onPress: () => nav.navigate("proximo"), onPress: () => nav.navigate("proximo"),
}, },
{ {
title: "AMICALE", title: i18n.t('screens.amicaleWebsite'),
subtitle: "AMICALE", subtitle: "AMICALE",
image: AMICALE_IMAGE, image: AMICALE_IMAGE,
onPress: () => nav.navigate("amicale-website"), onPress: () => nav.navigate("amicale-website"),
}, },
{ {
title: "wiketud", title: "Wiketud",
subtitle: "wiketud", subtitle: "wiketud",
image: WIKETUD_LINK, image: WIKETUD_LINK,
onPress: () => nav.navigate("wiketud"), onPress: () => nav.navigate("wiketud"),
}, },
{ {
title: "ELUS ETUDIANTS", title: "Élus Étudiants",
subtitle: "ELUS ETUDIANTS", subtitle: "ELUS ETUDIANTS",
image: EE_IMAGE, image: EE_IMAGE,
onPress: () => nav.navigate("elus-etudiants"), onPress: () => nav.navigate("elus-etudiants"),
}, },
{ {
title: "TUTOR INSA", title: "Tutor'INSA",
subtitle: "TUTOR INSA", subtitle: "TUTOR INSA",
image: TUTORINSA_IMAGE, image: TUTORINSA_IMAGE,
onPress: () => nav.navigate("tutorinsa"), onPress: () => nav.navigate("tutorinsa"),
@ -119,31 +114,31 @@ class ServicesScreen extends React.Component<Props, State> {
]; ];
this.insaDataset = [ this.insaDataset = [
{ {
title: "RU", title: i18n.t('screens.menuSelf'),
subtitle: "the ru", subtitle: "the ru",
image: RU_IMAGE, image: RU_IMAGE,
onPress: () => nav.navigate("self-menu"), onPress: () => nav.navigate("self-menu"),
}, },
{ {
title: "AVAILABLE ROOMS", title: i18n.t('screens.availableRooms'),
subtitle: "ROOMS", subtitle: "ROOMS",
image: ROOM_IMAGE, image: ROOM_IMAGE,
onPress: () => nav.navigate("available-rooms"), onPress: () => nav.navigate("available-rooms"),
}, },
{ {
title: "BIB", title: i18n.t('screens.bib'),
subtitle: "BIB", subtitle: "BIB",
image: BIB_IMAGE, image: BIB_IMAGE,
onPress: () => nav.navigate("bib"), onPress: () => nav.navigate("bib"),
}, },
{ {
title: "EMAIL", title: i18n.t('screens.bluemind'),
subtitle: "EMAIL", subtitle: "EMAIL",
image: EMAIL_IMAGE, image: EMAIL_IMAGE,
onPress: () => nav.navigate("bluemind"), onPress: () => nav.navigate("bluemind"),
}, },
{ {
title: "ENT", title: i18n.t('screens.ent'),
subtitle: "ENT", subtitle: "ENT",
image: ENT_IMAGE, image: ENT_IMAGE,
onPress: () => nav.navigate("ent"), onPress: () => nav.navigate("ent"),
@ -151,21 +146,21 @@ class ServicesScreen extends React.Component<Props, State> {
]; ];
this.finalDataset = [ this.finalDataset = [
{ {
title: "AMICALE", title: i18n.t("servicesScreen.amicale"),
description: "LOGIN", description: "LOGIN",
image: AMICALE_IMAGE, image: AMICALE_IMAGE,
shouldLogin: true, shouldLogin: true,
content: this.amicaleDataset content: this.amicaleDataset
}, },
{ {
title: "STUDENTS", title: i18n.t("servicesScreen.students"),
description: "SERVICES OFFERED BY STUDENTS", description: "SERVICES OFFERED BY STUDENTS",
image: 'account-group', image: 'account-group',
shouldLogin: false, shouldLogin: false,
content: this.studentsDataset content: this.studentsDataset
}, },
{ {
title: "INSA", title: i18n.t("servicesScreen.insa"),
description: "SERVICES OFFERED BY INSA", description: "SERVICES OFFERED BY INSA",
image: 'school', image: 'school',
shouldLogin: false, shouldLogin: false,

View file

@ -6,7 +6,8 @@
"clubDisplayScreen": "Club details", "clubDisplayScreen": "Club details",
"feedDisplayScreen": "Details", "feedDisplayScreen": "Details",
"clubsAbout": "Clubs", "clubsAbout": "Clubs",
"amicaleAbout": "The Amicale", "amicaleAbout": "Contact",
"amicaleWebsite": "Amicale's website",
"proxiwash": "Proxiwash", "proxiwash": "Proxiwash",
"services": "Services", "services": "Services",
"proximo": "Proximo", "proximo": "Proximo",
@ -96,28 +97,11 @@
"todayEventsSubtitleNA": "No events today", "todayEventsSubtitleNA": "No events today",
"todayEventsSubtitle": " event coming today", "todayEventsSubtitle": " event coming today",
"todayEventsSubtitlePlural": " events coming today", "todayEventsSubtitlePlural": " events coming today",
"proximoTitle": "Proximo", "amicaleTitle": "The Amicale",
"proximoSubtitleNA": "No articles available", "amicaleConnect": "Login",
"proximoSubtitle": " article available", "amicaleConnected": "See available services"
"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"
} }
}, },
"planningScreen": {
"wipTitle": "WORK IN PROGRESS",
"wipSubtitle": "Soon, every event at the INSA Toulouse in one place !"
},
"aboutScreen": { "aboutScreen": {
"appstore": "See on the Appstore", "appstore": "See on the Appstore",
"playstore": "See on the Playstore", "playstore": "See on the Playstore",
@ -398,5 +382,10 @@
"time": "Time: ", "time": "Time: ",
"exit": "leave Game" "exit": "leave Game"
} }
},
"servicesScreen": {
"amicale": "The Amicale",
"students": "Student services",
"insa": "INSA services"
} }
} }

View file

@ -6,7 +6,8 @@
"clubDisplayScreen": "Détails", "clubDisplayScreen": "Détails",
"feedDisplayScreen": "Détails", "feedDisplayScreen": "Détails",
"clubsAbout": "Les Clubs", "clubsAbout": "Les Clubs",
"amicaleAbout": "L' Amicale", "amicaleAbout": "Contact",
"amicaleWebsite": "Site de l'Amicale",
"proxiwash": "Proxiwash", "proxiwash": "Proxiwash",
"services": "Services", "services": "Services",
"proximo": "Proximo", "proximo": "Proximo",
@ -96,28 +97,11 @@
"todayEventsSubtitleNA": "Pas d'événement", "todayEventsSubtitleNA": "Pas d'événement",
"todayEventsSubtitle": " événement aujourd'hui", "todayEventsSubtitle": " événement aujourd'hui",
"todayEventsSubtitlePlural": " événements aujourd'hui", "todayEventsSubtitlePlural": " événements aujourd'hui",
"proximoTitle": "Proximo", "amicaleTitle": "L'Amicale",
"proximoSubtitleNA": "pas d'article en vente", "amicaleConnect": "Se connecter",
"proximoSubtitle": " article disponible", "amicaleConnected": "Voir les services disponibles"
"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"
} }
}, },
"planningScreen": {
"wipTitle": "WORK IN PROGRESS",
"wipSubtitle": "Bientôt, tous les évènements de l'INSA Toulouse en un seul endroit !"
},
"aboutScreen": { "aboutScreen": {
"appstore": "Voir sur l'Appstore", "appstore": "Voir sur l'Appstore",
"playstore": "Voir sur le Playstore", "playstore": "Voir sur le Playstore",
@ -398,5 +382,10 @@
"time": "Temps: ", "time": "Temps: ",
"exit": "Quitter" "exit": "Quitter"
} }
},
"servicesScreen": {
"amicale": "L'Amicale",
"students": "Services étudiants",
"insa": "Services de l'INSA"
} }
} }