forked from geosolutions-it/MapStore2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request geosolutions-it#149 from mircobe87/issue-147-wrong…
…Coverage Fixes geosolutions-it#147, wrong coverage
- Loading branch information
Showing
14 changed files
with
274 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"locale": "it-IT", | ||
"messages": { | ||
"msgId0": "{name} took {numPhotos, plural, =0 {no photos} =1 {one photo} other {# photos}} on {takenDate, date, long}.", | ||
"htmlTest": "{name} {surname}", | ||
"about_title": "About this app...", | ||
"aboutLbl": "About", | ||
"about_p0-0": "MapStore 2 is a framework to build web mapping applications using standard mapping libraries, such as", | ||
"about_p0-1": "and", | ||
"about_p1": "MapStore 2 has several example applications:", | ||
"about_ul0_li0": "MapViewer is a simple viewer of preconfigured maps (optionally stored in a database using GeoStore)", | ||
"about_ul0_li1": "MapPublisher has been developed to create, save and share in a simple and intuitive way maps and mashups created selecting contents by server like OpenStreetMap, Google Maps, MapQuest or specific servers provided by your organization or third party. For more information check the", | ||
"about_h20": "License", | ||
"about_p3": "MapStore 2 is Free and Open Source software, it is based on OpenLayers 3, Leaflet and ReactJS, and is licensed under the Simplified BSD License.", | ||
"about_p5-0": "For more information check", | ||
"about_a0": "this", | ||
"about_p5-1": "page." | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"locale": "it-IT", | ||
"messages": { | ||
"msgId0": "{name} ha scattato {numPhotos, plural, =0 {nessuna foto} other {# foto}} il {takenDate, date, long}.", | ||
"htmlTest": "{name} {surname}", | ||
"about_title": "Riguardo a questa app...", | ||
"aboutLbl": "Info", | ||
"about_p0-0": "MapStore 2 un framework per realizzare applicazioni di web mapping usando librerie di mapping standard, come", | ||
"about_p0-1": "e", | ||
"about_p1": "MapStore 2 contiene alcune applicazioni di esempio:", | ||
"about_ul0_li0": "MapViewer è un semplice visualizzatore di mappe preconfigurate (opzionalmente memorizzare in un database usando GeoStore)", | ||
"about_ul0_li1": "MapPublisher è stato sviluppato per creare, salvare a condividere in modo semplice ed intuitivo mappe e mashups creati selezionando contenuti da server come OpenStreetMap, Google Maps, MapQuest o da specifici servizi forniti dalla tua organizzazione o da terze parti. Per maggiori informazioni controlla la", | ||
"about_h20": "Licenza", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"map": { | ||
"projection": "EPSG:900913", | ||
"units": "m", | ||
"center": {"x": 1250000.000000, "y": 5370000.000000, "crs": "EPSG:900913"}, | ||
"zoom":5, | ||
"maxExtent": [ | ||
-20037508.34, -20037508.34, | ||
20037508.34, 20037508.34 | ||
], | ||
"layers": [ | ||
{ | ||
"type": "osm", | ||
"title": "Open Street Map", | ||
"name": "mapnik", | ||
"group": "background", | ||
"visibility": true | ||
},{ | ||
"type": "wms", | ||
"url":"http://213.215.135.196/reflector/open/service", | ||
"visibility": false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/** | ||
* Copyright 2015, GeoSolutions Sas. | ||
* All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
var expect = require('expect'); | ||
var url = require('url'); | ||
var LocaleUtils = require('../LocaleUtils'); | ||
|
||
describe('LocaleUtils', () => { | ||
it('getLocale', () => { | ||
var expectedLocal = navigator ? navigator.language || navigator.browserLanguage : "en"; | ||
expect(LocaleUtils.getLocale({})).toBe(expectedLocal); | ||
|
||
expect(LocaleUtils.getLocale({locale: 'it'})).toBe('it-IT'); | ||
expect(LocaleUtils.getLocale({locale: 'en'})).toBe('en-US'); | ||
|
||
expect(LocaleUtils.getLocale({locale: 'fake'})).toBe('en-US'); | ||
}); | ||
|
||
it('getUserLocale', () => { | ||
var expectedLocal = LocaleUtils.getLocale(url.parse(window.location.href, true).query); | ||
expect(LocaleUtils.getUserLocale()).toBe(expectedLocal); | ||
}); | ||
|
||
it('getSupportedLocales', () => { | ||
expect(LocaleUtils.getSupportedLocales()).toExist(); | ||
}); | ||
}); |