Commit 260ebb08 authored by Matija Obreza's avatar Matija Obreza
Browse files

Use correct ISO code

parent 9d203c2e
......@@ -17,12 +17,12 @@ const publicRoutes = [
exact: true,
},
{
path: '/iso3316/:isoCode',
path: '/iso3166/:isoCode',
component: CountryDisplayPage,
exact: true,
},
{
path: '/iso3316/',
path: '/iso3166/',
component: CountryListPage,
exact: true,
},
......
......@@ -2,7 +2,7 @@
"public": {
"p": {
"countryList": {
"title": "ISO-3316 list",
"title": "ISO-3166 list",
"subTitle": "Find registered institutes as well as overview on plant genetic resources",
"acceCount": "{{count, number}} accessions",
"acceCountAtInstitutes": "{{count, number}} accessions at {{institutes, number}} institutes",
......@@ -10,8 +10,8 @@
"institutesCountInWIEWS": "{{count, number}} institutes registered in WIEWS",
"instituteLocations": "Institute locations",
"moreInformation": "More information",
"isoCodes": "ISO-3316",
"countryProfile": "ISO-3316 code {{code}}"
"isoCodes": "ISO-3166",
"countryProfile": "ISO-3166 code {{code}}"
},
"regionList": {
"title": "FAO Geographical regions",
......@@ -31,6 +31,6 @@
"longitude": "Longitude",
"address": "Address",
"country": "Country",
"menu": "ISO-3316 codes"
"menu": "ISO-3166 codes"
}
}
......@@ -69,7 +69,7 @@ class RegionDisplayPage extends React.Component<IRegionDisplayPageProps> {
<ContentHeaderWithButton title={ `${details.countries.length > 0 ? t(`geo.public.p.regionList.listOfCountries`) : t(`geo.public.p.regionList.listOfSubRegions`) }` } buttons={
<span>
<ActionButton action={ () => navigateTo('/geo/regions') } title={ t(`geo.public.p.regionList.b.listAllFaoRegions`) }/>
{ details.parentRegion && <ActionButton action={ () => navigateTo(`/iso3316/region/${details.parentRegion.isoCode}`) } title={ `${t(`geo.public.p.regionList.b.showParentRegion`, {what: details.parentRegion.name}) }` } /> }
{ details.parentRegion && <ActionButton action={ () => navigateTo(`/iso3166/region/${details.parentRegion.isoCode}`) } title={ `${t(`geo.public.p.regionList.b.showParentRegion`, {what: details.parentRegion.name}) }` } /> }
</span>
} />
......
......@@ -91,7 +91,7 @@ const CountryLink = ({ country, noflag, children }: { country: Country, noflag?:
return null;
}
return (
<Link to={ `/iso3316/${country.code3}` }>
<Link to={ `/iso3166/${country.code3}` }>
<div style={ {display: 'flex', alignItems: 'center'} }>
{ !noflag && <img src={ `images/flags/${country.code3}.png` } style={ {maxWidth: '1.25rem', padding: '0 0.25rem'} } /> }
{ children || country.name }
......@@ -105,7 +105,7 @@ const RegionLink = ({ region, children }: { region: GeoRegion, children?: any })
return null;
}
return (
<Link to={ `/iso3316/region/${region.isoCode}` }>
<Link to={ `/iso3166/region/${region.isoCode}` }>
{ children || region.name }
</Link>
);
......
......@@ -120,7 +120,7 @@ class LeftMenu extends React.Component<ILeftMenuProps, any> {
<NavLink activeClassName="active" to="/subsets">{ t('subsets.common.modelName_plural') }</NavLink>
</ListItem>
<ListItem button>
<NavLink activeClassName="active" to="/iso3316">{ t('geo.common.menu') }</NavLink>
<NavLink activeClassName="active" to="/iso3166">{ t('geo.common.menu') }</NavLink>
</ListItem>
<ListItem button>
<NavLink activeClassName="active" to="/wiews">{ t('institutes.common.modelName_plural') }</NavLink>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment