Download presentation
Presentation is loading. Please wait.
Published byFrieder Müller Modified over 6 years ago
1
Statistics Portugal experience adapting EUROSTAT Infographics
Dissemination Working Group Statistics Portugal experience adapting EUROSTAT Infographics Jose A. PINTO MARTINS - Dissemination Unit 1 & 2 October 2015 Luxembourg
3
1. Our issues (with “Quality of Life”):
We have copied the original application on a pre-production web server. Since our server uses technology "java - NGINX" it was relatively easy for the original application run internally. According with the guidelines (documentation provided by Eurostat) we have adapted the code to our needs and tested it by stages. We understood it was necessary to add the new language on last entry: "mainTitle" : { "fr" : "Qualité de vie", "en" : "Quality of life", "de" : "Lebensqualität", "pt" : "Qualidade de Vida“ }
4
1. Our issues (with “Quality of Life”): - continuation
One major problem was trying to understand why we could not do the load of data after the application have been translated into PT. After some effort and the use of applications of "debug" browsers we managed to realize that the problem was in the file "app.min.js" more specifically on this line: Original code: var l = set.dataUrl + "/" + set.lang + "/" + a.urlNote; As the set.lang was like "PT" and there was no data in PT, we were forced to adopt the English language in this parameter in order to be able to do the load of the graphics. Modified code: var l = set.dataUrl + "/" + “en” + "/" + a.urlNote ; (This is not mentioned in the guidelines…)
5
1. Our issues (with “Quality of Life”): - continuation
Since our server are working over HTTPS, (i.e. secure sessions) was necessary to appoint a feed on the file “indicator.json” to a safe session, otherwise it was not possible open the feeds on “cross-browsing” To finish it was necessary to use Browser’s tools (inspect element) to identify which “*.css” files were necessary to change due to text size, button names, labels, etc. Original Code -> "datas_url" : Modified Code -> "datas_url" :
6
Three infographics translated directly in the xml files (using Notepad++ editor):
- Quality of Life - Economic Trends - Young Europeans By now, Quality of Life / Qualidade de Vida is the only one accomplished and on line :
8
Resources and Tools Translation Person Software adapt –-- 1 Person Notepad ++ JSONLint - The JSON Validator
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.