mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-03-14 19:43:46 +00:00
Added translation support with react-imp. Added partial Polish translation.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import * as queryString from 'query-string';
|
||||
import * as React from 'react';
|
||||
import {Card} from 'semantic-ui-react';
|
||||
import {FormattedMessage} from 'react-intl';
|
||||
import {Link} from 'react-router-dom';
|
||||
|
||||
/** Link that loads a GEDCOM file from URL. */
|
||||
@@ -18,25 +19,49 @@ function GedcomLink(props: {url: string; text: string}) {
|
||||
export function Intro() {
|
||||
return (
|
||||
<Card className="intro">
|
||||
<Card.Content header="Topola Genealogy Viewer" />
|
||||
<Card.Content>
|
||||
<Card.Header>
|
||||
<FormattedMessage
|
||||
id="intro.title"
|
||||
defaultMessage="Topola Genealogy Viewer"
|
||||
/>
|
||||
</Card.Header>
|
||||
</Card.Content>
|
||||
<Card.Content>
|
||||
<p>
|
||||
Topola Genealogy is a genealogy tree viewer that lets you browse the
|
||||
structure of the family.
|
||||
<FormattedMessage
|
||||
id="intro.description"
|
||||
defaultMessage={
|
||||
'Topola Genealogy is a genealogy tree viewer that lets you' +
|
||||
' browse the structure of the family.'
|
||||
}
|
||||
/>
|
||||
</p>
|
||||
<p>
|
||||
Use the LOAD FROM URL or LOAD FROM FILE buttons above to load a GEDCOM
|
||||
file. You can export a GEDCOM file from most of the existing genealogy
|
||||
programs and web sites.
|
||||
<FormattedMessage
|
||||
id="intro.instructions"
|
||||
defaultMessage={
|
||||
'Use the LOAD FROM URL or LOAD FROM FILE buttons above to load' +
|
||||
' a GEDCOM file. You can export a GEDCOM file from most of the' +
|
||||
' existing genealogy programs and web sites.'
|
||||
}
|
||||
/>
|
||||
</p>
|
||||
<p>
|
||||
<FormattedMessage
|
||||
id="intro.examples"
|
||||
defaultMessage={
|
||||
'Here are some examples from the web that you can view:'
|
||||
}
|
||||
/>
|
||||
</p>
|
||||
<p>Here are some examples from the web that you can view:</p>
|
||||
<ul>
|
||||
<li>
|
||||
<GedcomLink
|
||||
url="http://genpol.com/module-Downloads-prep_hand_out-lid-32.html"
|
||||
text="Karol Wojtyła"
|
||||
/>{' '}
|
||||
(from{' '}
|
||||
(<FormattedMessage id="intro.from" defaultMessage="from" />{' '}
|
||||
<a href="http://genpol.com/module-Downloads-display-lid-32.html">
|
||||
GENPOL
|
||||
</a>
|
||||
@@ -47,7 +72,7 @@ export function Intro() {
|
||||
url="https://webtreeprint.com/tp_downloader.php?path=famous_gedcoms/shakespeare.ged"
|
||||
text="Shakespeare"
|
||||
/>{' '}
|
||||
(from{' '}
|
||||
(<FormattedMessage id="intro.from" defaultMessage="from" />{' '}
|
||||
<a href="https://webtreeprint.com/tp_famous_gedcoms.php">
|
||||
webtreeprint.com
|
||||
</a>
|
||||
@@ -58,7 +83,7 @@ export function Intro() {
|
||||
url="http://genealogyoflife.com/tng/gedcom/HarryPotter.ged"
|
||||
text="Harry Potter"
|
||||
/>{' '}
|
||||
(from{' '}
|
||||
(<FormattedMessage id="intro.from" defaultMessage="from" />{' '}
|
||||
<a href="http://famousfamilytrees.blogspot.com/">
|
||||
Famous Family Trees
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user