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 {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}

View file

@ -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 */}

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 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,

View file

@ -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",
@ -398,5 +382,10 @@
"time": "Time: ",
"exit": "leave Game"
}
},
"servicesScreen": {
"amicale": "The Amicale",
"students": "Student services",
"insa": "INSA services"
}
}

View file

@ -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",
@ -398,5 +382,10 @@
"time": "Temps: ",
"exit": "Quitter"
}
},
"servicesScreen": {
"amicale": "L'Amicale",
"students": "Services étudiants",
"insa": "Services de l'INSA"
}
}