Browse Source

Updated translations

Arnaud Vergnet 4 years ago
parent
commit
a27fdfd8dc

+ 1
- 1
components/Sidebar/Sidebar.js View File

65
                 onlyWhenLoggedIn: true,
65
                 onlyWhenLoggedIn: true,
66
             },
66
             },
67
             {
67
             {
68
-                name: "CLUBS",
68
+                name: i18n.t('clubs.clubList'),
69
                 route: "ClubListScreen",
69
                 route: "ClubListScreen",
70
                 icon: "account-group",
70
                 icon: "account-group",
71
                 onlyWhenLoggedIn: true,
71
                 onlyWhenLoggedIn: true,

+ 2
- 2
navigation/DrawerNavigator.js View File

253
                 options={({navigation}) => {
253
                 options={({navigation}) => {
254
                     const openDrawer = getDrawerButton.bind(this, navigation);
254
                     const openDrawer = getDrawerButton.bind(this, navigation);
255
                     return {
255
                     return {
256
-                        title: "CLUBS LIST",
256
+                        title: i18n.t('clubs.clubList'),
257
                         headerLeft: openDrawer
257
                         headerLeft: openDrawer
258
                     };
258
                     };
259
                 }}
259
                 }}
264
                 options={({navigation}) => {
264
                 options={({navigation}) => {
265
                     const openDrawer = getDrawerButton.bind(this, navigation);
265
                     const openDrawer = getDrawerButton.bind(this, navigation);
266
                     return {
266
                     return {
267
-                        title: "CLUBS DISPLAY",
267
+                        title: "",
268
                         headerLeft: openDrawer,
268
                         headerLeft: openDrawer,
269
                         ...TransitionPresets.ModalSlideFromBottomIOS,
269
                         ...TransitionPresets.ModalSlideFromBottomIOS,
270
                     };
270
                     };

+ 3
- 2
screens/Amicale/ClubDisplayScreen.js View File

6
 import {Linking} from "expo";
6
 import {Linking} from "expo";
7
 import {Avatar, Card, Chip, Paragraph, withTheme} from 'react-native-paper';
7
 import {Avatar, Card, Chip, Paragraph, withTheme} from 'react-native-paper';
8
 import ImageModal from 'react-native-image-modal';
8
 import ImageModal from 'react-native-image-modal';
9
+import i18n from "i18n-js";
9
 
10
 
10
 type Props = {
11
 type Props = {
11
     navigation: Object,
12
     navigation: Object,
68
         return (
69
         return (
69
             <Card style={{marginTop: 10, marginBottom: 10}}>
70
             <Card style={{marginTop: 10, marginBottom: 10}}>
70
                 <Card.Title
71
                 <Card.Title
71
-                    title={"RESPO"}
72
-                    subtitle={"CONTACTS"}
72
+                    title={i18n.t('clubs.managers')}
73
+                    subtitle={i18n.t('clubs.managersSubtitle')}
73
                     left={(props) => <Avatar.Icon
74
                     left={(props) => <Avatar.Icon
74
                         style={{backgroundColor: 'transparent'}}
75
                         style={{backgroundColor: 'transparent'}}
75
                         {...props}
76
                         {...props}

+ 5
- 0
translations/en.json View File

242
       "unknown": "Unknown error, please contact support."
242
       "unknown": "Unknown error, please contact support."
243
     }
243
     }
244
   },
244
   },
245
+  "clubs": {
246
+    "clubList": "Club list",
247
+    "managers": "Managers",
248
+    "managersSubtitle": "These people make the club live"
249
+  },
245
   "dialog": {
250
   "dialog": {
246
     "ok": "OK",
251
     "ok": "OK",
247
     "yes": "Yes",
252
     "yes": "Yes",

+ 5
- 0
translations/fr.json View File

243
       "unknown": "Erreur inconnue, merci de contacter le support."
243
       "unknown": "Erreur inconnue, merci de contacter le support."
244
     }
244
     }
245
   },
245
   },
246
+  "clubs": {
247
+    "clubList": "Liste des clubs",
248
+    "managers": "Responsables",
249
+    "managersSubtitle": "Ces personnes font vivre le club"
250
+  },
246
   "dialog": {
251
   "dialog": {
247
     "ok": "OK",
252
     "ok": "OK",
248
     "yes": "Oui",
253
     "yes": "Oui",

Loading…
Cancel
Save