make AboutPage i18n ready (#1)

ios
Norwin 6 years ago
parent d4ec8d1907
commit 0ce3d3471b

@ -5,7 +5,17 @@
"BLOCKLY": "Blockly" "BLOCKLY": "Blockly"
}, },
"ABOUT": { "ABOUT": {
"TITLE": "About" "TITLE": "About",
"BLOCKLY": {
"TITLE": "Blockly",
"TEXT1": "<em>Blockly for senseBox</em> is a visual programming editor for the <a href=\"https://sensebox.de/en/\">senseBox:edu</a>. It is based on Google's Blockly and Carlos Pereira Atencio's Ardublockly, which has been forked.",
"TEXT2": "Integrated support for over-the-air programming was developed at <a href=\"https://ifgi.de/en/\">ifgi</a> in a study project."
},
"OPENSOURCE": {
"TITLE": "Open Source",
"TEXT": "This app is free & libre open source software. To may find the source code & issue tracker on GitHub:"
},
"HINT": "<em>Hint:</em> A <a href=\"https://blockly.sensebox.de\">web version of Blockly for senseBox</a> is available as well!"
}, },
"BLOCKLY": { "BLOCKLY": {
"TITLE": "Blockly for senseBox" "TITLE": "Blockly for senseBox"

@ -1,9 +1,3 @@
<!--
Generated template for the AboutPage page.
See http://ionicframework.com/docs/components/#navigation for more info on
Ionic pages and navigation.
-->
<ion-header> <ion-header>
<ion-navbar> <ion-navbar>
<button ion-button menuToggle> <button ion-button menuToggle>
@ -16,33 +10,26 @@
<ion-content padding> <ion-content padding>
<ion-grid> <ion-grid>
<ion-row> <ion-row>
<ion-col col-12 col-md-6> <ion-col col-md-1></ion-col>
<ion-col col-12 col-md-5>
<ion-card> <ion-card>
<ion-card-header> <ion-card-header>
<ion-card-title>Blockly</ion-card-title> <ion-card-title>{{ 'ABOUT.BLOCKLY.TITLE' | translate }}</ion-card-title>
</ion-card-header> </ion-card-header>
<ion-card-content> <ion-card-content>
<p> <p [innerHTML]="'ABOUT.BLOCKLY.TEXT1' | translate"></p>
<em>Blockly for senseBox</em> is a visual programming editor for the <a href="https://sensebox.de/en/">senseBox:edu</a>. <p [innerHTML]="'ABOUT.BLOCKLY.TEXT2' | translate"></p>
It is based on Google's Blockly and Carlos Pereira Atencio's Ardublockly, which has been forked.
</p>
<p>
Integrated support for over-the-air programming was developed at <a href="https://ifgi.de/en/">ifgi</a> in a study project.
</p>
</ion-card-content> </ion-card-content>
</ion-card> </ion-card>
</ion-col> </ion-col>
<ion-col col-12 col-md-6> <ion-col col-12 col-md-5>
<ion-card> <ion-card>
<ion-card-header> <ion-card-header>
<ion-card-title>Open Source</ion-card-title> <ion-card-title>{{ 'ABOUT.OPENSOURCE.TITLE' | translate }}</ion-card-title>
</ion-card-header> </ion-card-header>
<ion-card-content> <ion-card-content>
<p> <p translate>ABOUT.OPENSOURCE.TEXT</p>
This app is free & libre open source software.
To may find the source code & issue tracker on GitHub:
</p>
<ul> <ul>
<li><a href="https://github.com/sensebox/blockly-app">Source Code</a></li> <li><a href="https://github.com/sensebox/blockly-app">Source Code</a></li>
<li><a href="https://github.com/sensebox/blockly-app/issues">Issue Tracker</a></li> <li><a href="https://github.com/sensebox/blockly-app/issues">Issue Tracker</a></li>
@ -55,12 +42,8 @@
</ion-row> </ion-row>
<ion-row align-items-center> <ion-row align-items-center>
<ion-col col-2></ion-col> <ion-col>
<ion-col colcol-8> <p class="hint" [innerHTML]="'ABOUT.HINT' | translate"></p>
<p>
<em>Hint:</em>
A <a href="https://blockly.sensebox.de">web version of Blockly for senseBox</a> is available as well!
</p>
</ion-col> </ion-col>
</ion-row> </ion-row>
</ion-grid> </ion-grid>

@ -1,5 +1,6 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { IonicPageModule } from 'ionic-angular'; import { IonicPageModule } from 'ionic-angular';
import { TranslateModule } from '@ngx-translate/core';
import { AboutPage } from './about'; import { AboutPage } from './about';
@NgModule({ @NgModule({
@ -7,6 +8,7 @@ import { AboutPage } from './about';
AboutPage, AboutPage,
], ],
imports: [ imports: [
TranslateModule,
IonicPageModule.forChild(AboutPage), IonicPageModule.forChild(AboutPage),
], ],
}) })

@ -0,0 +1,3 @@
.hint {
text-align: center;
}
Loading…
Cancel
Save