forked from vergnet/application-amicale
Improved translations
This commit is contained in:
parent
f3d1c705ae
commit
6dfb8e0c38
6 changed files with 17 additions and 10 deletions
|
@ -8,6 +8,7 @@ import ThemeManager from "../utils/ThemeManager";
|
|||
import HTML from "react-native-render-html";
|
||||
import {LinearGradient} from "expo-linear-gradient";
|
||||
import PlatformTouchable from "react-native-platform-touchable";
|
||||
import i18n from "i18n-js";
|
||||
|
||||
const CARD_BORDER_RADIUS = 10;
|
||||
|
||||
|
@ -101,12 +102,14 @@ export default class DashboardItem extends React.Component<Props> {
|
|||
}}/>
|
||||
<LinearGradient
|
||||
colors={['transparent', ThemeManager.getCurrentThemeVariables().cardDefaultBg]}
|
||||
end={[0, 0.6]}
|
||||
start={{x: 0, y: 0}}
|
||||
end={{x: 0, y: 0.6}}
|
||||
// end={[0, 0.6]}
|
||||
style={{
|
||||
position: 'absolute',
|
||||
width: '100%',
|
||||
height: 60,
|
||||
bottom: 0,
|
||||
height: 65,
|
||||
bottom: -5,
|
||||
}}>
|
||||
<View style={{
|
||||
marginLeft: 'auto',
|
||||
|
@ -118,7 +121,7 @@ export default class DashboardItem extends React.Component<Props> {
|
|||
marginBottom: 'auto',
|
||||
padding: 0,
|
||||
}}>
|
||||
Click to see more
|
||||
{i18n.t("homeScreen.dashboard.seeMore")}
|
||||
</Text>
|
||||
<CustomMaterialIcon icon={'chevron-right'}/>
|
||||
</View>
|
||||
|
|
|
@ -56,7 +56,7 @@ export default class SideBar extends React.Component<Props, State> {
|
|||
icon: "school",
|
||||
},
|
||||
{
|
||||
name: "Salles dispo",
|
||||
name: i18n.t('screens.availableRooms'),
|
||||
route: "AvailableRoomScreen",
|
||||
icon: "calendar-check",
|
||||
},
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// @flow
|
||||
|
||||
import * as React from 'react';
|
||||
import ThemeManager from "../utils/ThemeManager";
|
||||
import WebViewScreen from "../components/WebViewScreen";
|
||||
import i18n from "i18n-js";
|
||||
|
||||
type Props = {
|
||||
navigation: Object,
|
||||
|
@ -31,7 +31,7 @@ export default class AvailableRoomScreen extends React.Component<Props> {
|
|||
navigation={nav}
|
||||
url={URL}
|
||||
customInjectedJS={this.customInjectedJS}
|
||||
headerTitle={'SAlles dispo'}
|
||||
headerTitle={i18n.t('screens.availableRooms')}
|
||||
hasHeaderBackButton={true}
|
||||
hasSideMenu={false}/>
|
||||
);
|
||||
|
|
|
@ -9,7 +9,7 @@ import FetchedDataSectionList from "../components/FetchedDataSectionList";
|
|||
import Autolink from 'react-native-autolink';
|
||||
import ThemeManager from "../utils/ThemeManager";
|
||||
import DashboardItem from "../components/DashboardItem";
|
||||
import DATA from "../dashboard_data.json";
|
||||
// import DATA from "../dashboard_data.json";
|
||||
|
||||
|
||||
const ICON_AMICALE = require('../assets/amicale.png');
|
||||
|
@ -39,7 +39,7 @@ function openWebLink(link) {
|
|||
export default class HomeScreen extends FetchedDataSectionList {
|
||||
|
||||
constructor() {
|
||||
super('DATA_URL', REFRESH_TIME);
|
||||
super(DATA_URL, REFRESH_TIME);
|
||||
}
|
||||
|
||||
getHeaderTranslation() {
|
||||
|
@ -55,7 +55,7 @@ export default class HomeScreen extends FetchedDataSectionList {
|
|||
}
|
||||
|
||||
createDataset(fetchedData: Object) {
|
||||
fetchedData = DATA;
|
||||
// fetchedData = DATA;
|
||||
let newsData = [];
|
||||
let dashboardData = [];
|
||||
if (fetchedData['news_feed'] !== undefined)
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
"proximo": "Proximo",
|
||||
"menuSelf": "RU Menu",
|
||||
"settings": "Settings",
|
||||
"availableRooms": "Available rooms",
|
||||
"about": "About",
|
||||
"debug": "Debug"
|
||||
},
|
||||
|
@ -72,6 +73,7 @@
|
|||
"listUpdateFail": "Error while updating list",
|
||||
"newsFeed": "Campus News",
|
||||
"dashboard": {
|
||||
"seeMore": "Click to see more",
|
||||
"todayEventsTitle": "Today's events",
|
||||
"todayEventsSubtitleNA": "No events today",
|
||||
"todayEventsSubtitle": " event coming today",
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
"proximo": "Proximo",
|
||||
"menuSelf": "Menu du RU",
|
||||
"settings": "Paramètres",
|
||||
"availableRooms": "Salles dispo",
|
||||
"about": "À Propos",
|
||||
"debug": "Debug"
|
||||
},
|
||||
|
@ -72,6 +73,7 @@
|
|||
"listUpdateFail": "Erreur lors de la mise à jour de la liste",
|
||||
"newsFeed": "Nouvelles du campus",
|
||||
"dashboard": {
|
||||
"seeMore": "Cliquez pour plus d'infos",
|
||||
"todayEventsTitle": "Événements aujourd'hui",
|
||||
"todayEventsSubtitleNA": "Pas d'événements",
|
||||
"todayEventsSubtitle": " événement aujourd'hui",
|
||||
|
|
Loading…
Reference in a new issue