Skip to content

Commit 2cefcab

Browse files
asequesJoan
and
Joan
authored
Add catalan translation (#10932)
* Add catalan translation * Fix json format * Increased suppported langs test * Fix locale name --------- Co-authored-by: Joan <[email protected]>
1 parent 0330142 commit 2cefcab

File tree

6 files changed

+4444
-3
lines changed

6 files changed

+4444
-3
lines changed

Diff for: web/client/components/I18N/images/flags/ca-ES.png

351 Bytes
Loading

Diff for: web/client/components/I18N/images/flags/ca.png

351 Bytes
Loading

Diff for: web/client/epics/__tests__/localconfig-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe('localconfig Epics', () => {
2525
const suppLocales = getSupportedLocales();
2626
switch (action.type) {
2727
case SUPPORTED_LOCALES_REGISTERED:
28-
expect(Object.keys(suppLocales).length).toBe(15);
28+
expect(Object.keys(suppLocales).length).toBe(16);
2929
break;
3030
default:
3131
expect(true).toBe(false);

Diff for: web/client/translations/data.ca-ES.json

+4,373
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<body>
4+
<div className="cookie-seeMore">
5+
<h2 style="font-weight: bold">Cookies Policy</h2>
6+
<hr />
7+
<p style="line-height: 100%">
8+
In accordance with Law Decree n° 196/2003, which replaced the Law n° 675/1996 concerning the protection of personal data, we inform you that by filling out this form and then sending this email message, you consent to the processing of your personal data (sensitive data will not be processed in any way) acquired by GeoSolutions SAS via electronic and/or automated tools. In any case, you can exercise your rights granted to you pursuant to Legislative Decree n° 196/2003 (data access, updates, integration, cancellation). Clicking the “Accept” button, you acknowledge that you have read this text and that you consent to the processing of your personal data. At any time you can ask the staff of GeoSolutions SAS web site to unsubscribe you from the service by following the instructions at the end of each message.
9+
</p>
10+
<h4 style="font-weight: bold">Cookies and how they Benefit You</h4>
11+
<p style="line-height: 100%">Our website uses cookies, as almost all websites do, to help provide you with the best experience we can. Cookies are small text files that are placed on your computer or mobile phone when you browse websites</p>
12+
<p style="line-height: 100%">Our cookies help us:</p>
13+
<ul>
14+
<li>Make our website work as you’d expect</li>
15+
<li>Remember your settings during and between visits</li>
16+
<li>Improve the speed/security of the site</li>
17+
<li>Allow you to share pages with social networks like Facebook</li>
18+
</ul>
19+
<p style="line-height: 100%">We do not use cookies to:</p>
20+
<ul>
21+
<li>Collect any personally identifiable information (without your express permission)</li>
22+
<li>Collect any sensitive information (without your express permission)</li>
23+
<li>Pass data to advertising networks</li>
24+
<li>Pass personally identifiable data to third parties</li>
25+
<li>Pay sales commissions</li>
26+
</ul>
27+
<p style="line-height: 100%">You can learn more about all the cookies we use below.</p>
28+
<p style="line-height: 100%">If the settings on your software that you are using to view this website (your browser) are adjusted to accept cookies we take this, and your continued use of our website, to mean that you are fine with this. Should you wish to remove or not use cookies from our site you can learn how to do this below, however doing so will likely mean that our site will not work as you would expect.</p>
29+
30+
<h4 style="font-weight: bold">Our own cookies</h4>
31+
<p style="line-height: 100%">We use cookies to make our website work including:</p>
32+
<ul>
33+
<li>Remembering your search settings</li>
34+
<li>Authentication to WMS, WFS, WPS via HTTP requests</li>
35+
</ul>
36+
<p style="line-height: 100%">There is no way to prevent these cookies being set other than to not use our site.</p>
37+
<h4 style="font-weight: bold">Third Party Cookies</h4>
38+
<p style="line-height: 100%">Our site, like most websites, includes functionality provided by third parties. A common example is an embedded YouTube video. Our site includes the following which use cookies:</p>
39+
<ul>
40+
<li><a href="http://www.google.it/intl/en/policies/privacy/" target="_blank">Google</a></li>
41+
<li><a href="https://www.cloudflare.com/cookie-policy/" target="_blank">Cloudflare</a></li>
42+
</ul>
43+
<h4 style="font-weight: bold">Social Website Cookies</h4>
44+
<p style="line-height: 100%">So you can easily like or share our content on the likes of Facebook and Twitter we have included sharing buttons on our site. Cookies are set by:</p>
45+
<ul>
46+
<li>Twitter</li>
47+
<li>Facebook</li>
48+
<li>Linkedin</li>
49+
<li>Google +</li>
50+
</ul>
51+
<p style="line-height: 100%">The privacy implications on this will vary from social network to social network and will be dependent on the privacy settings you have chosen on these networks.</p>
52+
<h4 style="font-weight: bold">Turning Cookies Off</h4>
53+
<p style="line-height: 100%">
54+
You can usually switch cookies off by adjusting your browser settings to stop it from accepting cookies (learn how <a href="http://www.attacat.co.uk/resources/cookies/how-to-ban" target="_blank"> here</a>.). Doing so however will likely limit the functionality of our’s and a large proportion of the world’s websites as cookies are a standard part of most modern websites.
55+
</p>
56+
<p style="line-height: 100%">
57+
It may be that you concerns around cookies relate to so called “spyware”. Rather than switching off cookies in your browser you may find that anti-spyware software achieves the same objective by automatically deleting cookies considered to be invasive. Learn more about <a href="http://www.attacat.co.uk/resources/cookies/how-to-control-your-online-privacy" target="_blank"> managing cookies with antispyware software</a>.
58+
</p>
59+
</div>
60+
</body>
61+
</html>

Diff for: web/client/utils/LocaleUtils.js

+9-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ const sv = require('react-intl/locale-data/sv');
2626
const sk = require('react-intl/locale-data/sk');
2727
const da = require('react-intl/locale-data/da');
2828
const is = require('react-intl/locale-data/is');
29+
const ca = require('react-intl/locale-data/ca');
2930

30-
addLocaleData([...en, ...it, ...fr, ...de, ...es, ...nl, ...zh, ...hr, ...pt, ...vi, ...fi, ...sv, ...sk, ...da, ...is]);
31+
addLocaleData([...en, ...it, ...fr, ...de, ...es, ...nl, ...zh, ...hr, ...pt, ...vi, ...fi, ...sv, ...sk, ...da, ...is, ...ca]);
3132

3233
/*
3334
* it, en, fr, de, es are the default locales and it is preferrable to customize them via configuration.
@@ -93,6 +94,10 @@ let supportedLocales = {
9394
"is": {
9495
code: "is-IS",
9596
description: "Islensku"
97+
},
98+
"ca": {
99+
code: "ca-ES",
100+
description: "Català"
96101
}
97102
};
98103
export const DATE_FORMATS = {
@@ -130,7 +135,8 @@ export const ensureIntl = (callback) => {
130135
'intl/locale-data/jsonp/sv.js',
131136
'intl/locale-data/jsonp/sk.js',
132137
'intl/locale-data/jsonp/da.js',
133-
'intl/locale-data/jsonp/is.js'
138+
'intl/locale-data/jsonp/is.js',
139+
'intl/locale-data/jsonp/ca.js'
134140
], (require) => {
135141
global.Intl = require('intl');
136142
require('intl/locale-data/jsonp/en.js');
@@ -148,6 +154,7 @@ export const ensureIntl = (callback) => {
148154
require('intl/locale-data/jsonp/sk.js');
149155
require('intl/locale-data/jsonp/da.js');
150156
require('intl/locale-data/jsonp/is.js');
157+
require('intl/locale-data/jsonp/ca.js');
151158
if (callback) {
152159
callback();
153160
}

0 commit comments

Comments
 (0)