diff --git a/screens/PlanexScreen.js b/screens/PlanexScreen.js index 38c59a2..30fc792 100644 --- a/screens/PlanexScreen.js +++ b/screens/PlanexScreen.js @@ -3,6 +3,7 @@ import * as React from 'react'; import ThemeManager from "../utils/ThemeManager"; import WebViewScreen from "../components/WebViewScreen"; +import i18n from "i18n-js"; type Props = { navigation: Object, @@ -26,7 +27,9 @@ export default class PlanexScreen extends React.Component { super(); this.customInjectedJS = 'document.querySelector(\'head\').innerHTML += \'\';' + - 'document.querySelector(\'head\').innerHTML += \'\';'; + 'document.querySelector(\'head\').innerHTML += \'\';' + + '$(".fc-toolbar .fc-center").append(\'

' + i18n.t("planexScreen.rotateToLandscape") + '

\');' + + '$(".fc-toolbar .fc-center").append(\'

' + i18n.t("planexScreen.rotateToPortrait") + '

\');'; if (ThemeManager.getNightMode()) this.customInjectedJS += 'document.querySelector(\'head\').innerHTML += \'\';'; } diff --git a/translations/en.json b/translations/en.json index 0696784..6956cf7 100644 --- a/translations/en.json +++ b/translations/en.json @@ -182,6 +182,10 @@ "machineRunningBody": "The machine n°{{number}} is still running" } }, + "planexScreen": { + "rotateToLandscape": "Turn your screen to see the whole week", + "rotateToPortrait": "Turn your screen to see only 2 days" + }, "availableRoomScreen": { "normalRoom": "Work", "computerRoom": "Computer", diff --git a/translations/fr.json b/translations/fr.json index 59d6897..58f2a47 100644 --- a/translations/fr.json +++ b/translations/fr.json @@ -184,6 +184,10 @@ "machineRunningBody": "La machine n°{{number}} n'est pas encore terminée" } }, + "planexScreen": { + "rotateToLandscape": "Tournez votre téléphone pour voir la semaine entière", + "rotateToPortrait": "Tournez votre téléphone pour voir seulement 2 jours" + }, "availableRoomScreen": { "normalRoom": "Travail", "computerRoom": "Ordi",