Skip to content

Commit 0ee20dd

Browse files
authored
fix: localize software categories filters (#1373)
Fixes #1304
1 parent 4b67740 commit 0ee20dd

File tree

2 files changed

+155
-97
lines changed

2 files changed

+155
-97
lines changed

_data/l10n.yml

+144-94
Original file line numberDiff line numberDiff line change
@@ -307,107 +307,132 @@ it:
307307
I range di ogni misura possono essere trovati nel file [vitality-ranges.yml](https://github.com/italia/publiccode-crawler/blob/main/vitality-ranges.yml)."
308308
publiccode:
309309
categories:
310-
accounting: accounting
311-
agile-project-management: agile project management
312-
applicant-tracking: applicant tracking
313-
application-development: application development
314-
appointment-scheduling: appointment scheduling
310+
accounting: contabilità
311+
agile-project-management: gestione agile di progetti
312+
applicant-tracking: monitoraggio candidati
313+
application-development: sviluppo applicazioni
314+
appointment-scheduling: programmazione appuntamenti
315315
backup: backup
316-
billing-and-invoicing: billing and invoicing
316+
billing-and-invoicing: fatturazione
317317
blog: blog
318-
budgeting: budgeting
318+
budgeting: bilancio
319319
business-intelligence: business intelligence
320-
business-process-management: business process management
320+
business-process-management: gestione processi aziendali
321321
cad: CAD
322-
call-center-management: call center management
323-
cloud-management: cloud management
324-
collaboration: collaboration
325-
communications: communications
326-
compliance-management: compliance management
327-
contact-management: contact management
328-
content-management: content management
329-
crm: CRM
330-
customer-service-and-support: customer service and support
331-
data-analytics: data analytics
332-
data-collection: data collection
333-
data-visualization: data visualization
334-
digital-asset-management: digital asset management
335-
digital-citizenship: digital citizenship
336-
document-management: document management
337-
donor-management: donor management
322+
call-center-management: gestione call center
323+
cloud-management: gestione cloud
324+
collaboration: collaborazione
325+
communications: comunicazioni
326+
compliance-management: gestione conformità
327+
contact-management: gestione contatti
328+
content-management: gestione contenuti
329+
crm: CRM (Customer Relationship Management)
330+
customer-service-and-support: servizio e supporto clienti
331+
data-analytics: analisi dati
332+
data-collection: raccolta dati
333+
data-visualization: visualizzazione dati
334+
digital-asset-management: gestione risorse digitali
335+
digital-citizenship: cittadinanza digitale
336+
document-management: gestione documenti
337+
donor-management: gestione donatori
338338
e-commerce: e-commerce
339339
e-signature: e-signature
340-
educational-content: educational-content
341-
email-management: email management
342-
email-marketing: email marketing
343-
employee-management: employee management
344-
enterprise-project-management: enterprise project management
345-
enterprise-social-networking: enterprise social networking
346-
erp: ERP
347-
event-management: event management
348-
facility-management: facility management
349-
feedback-and-reviews-management: feedback and reviews management
350-
financial-reporting: financial reporting
351-
fleet-management: fleet management
352-
fundraising: fundraising
353-
gamification: gamification
354-
geographic-information-systems: geographic information systems
355-
grant-management: grant management
340+
educational-content: contenuti educativi
341+
email-management: gestione email
342+
email-marketing: marketing via email
343+
employee-management: gestione dipendenti
344+
enterprise-project-management: gestione progetti d'impresa
345+
enterprise-social-networking: rete sociale d'impresa
346+
erp: ERP (Enterprise Resource Planning)
347+
event-management: gestione eventi
348+
facility-management: gestione impianti
349+
feedback-and-reviews-management: gestione feedback e recensioni
350+
financial-reporting: report finanziari
351+
fleet-management: gestione autoveicoli
352+
fundraising: raccolta fondi
353+
gamification: ludicizzazione
354+
geographic-information-systems: sistemi informativi geografici
355+
grant-management: gestione sovvenzioni
356356
graphic-design: graphic design
357-
help-desk: help desk
358-
hr: HR
359-
ide: IDE
360-
identity-management: identity management
361-
instant-messaging: instant messaging
362-
inventory-management: inventory management
363-
it-asset-management: IT asset management
364-
it-development: IT development
365-
it-management: IT management
366-
it-security: IT security
367-
it-service-management: IT service management
368-
knowledge-management: knowledge management
369-
learning-management-system: learning management system
357+
help-desk: sportello assistenza
358+
hr: risorse umane
359+
ide: IDE (Integrated Development Environment)
360+
identity-management: gestione delle identità
361+
instant-messaging: messaggistica istantanea
362+
inventory-management: gestione inventario
363+
it-asset-management: gestione risorse informatiche
364+
it-development: sviluppo informatico
365+
it-management: gestione tecnologie informatiche
366+
it-security: sicurezza informatica
367+
it-service-management: gestione servizi informatici
368+
knowledge-management: gestione conoscenza
369+
learning-management-system: sistemi di gestione dell'apprendimento
370370
marketing: marketing
371-
mind-mapping: mind mapping
372-
mobile-marketing: mobile marketing
373-
mobile-payment: mobile payment
374-
network-management: network management
375-
office: office
376-
online-booking: online booking
377-
online-community: online community
378-
payment-gateway: payment gateway
379-
payroll: payroll
380-
predictive-analysis: predictive analysis
381-
procurement: procurement
382-
productivity-suite: productivity suite
383-
project-collaboration: project collaboration
384-
project-management: project management
385-
property-management: property management
386-
real-estate-management: real estate management
387-
remote-support: remote support
388-
resource-management: resource management
389-
sales-management: sales management
371+
mind-mapping: mappe mentali
372+
mobile-marketing: marketing mobile
373+
mobile-payment: pagamenti tramite cellulare
374+
network-management: gestione rete
375+
office: ufficio
376+
online-booking: prenotazioni online
377+
online-community: community online
378+
payment-gateway: gateway pagamenti
379+
payroll: libro paga
380+
predictive-analysis: analisi predittive
381+
procurement: approvvigionamento
382+
productivity-suite: suite di produttività
383+
project-collaboration: collaborazioni su progetti
384+
project-management: gestione progetti
385+
property-management: gestione proprietà
386+
real-estate-management: gestione immobiliare
387+
remote-support: supporto remoto
388+
resource-management: gestione risorse
389+
sales-management: gestione vendite
390390
seo: SEO
391-
service-desk: service desk
392-
social-media-management: social media management
393-
survey: survey
394-
talent-management: talent management
395-
task-management: task management
396-
taxes-management: taxes management
397-
test-management: test management
398-
time-management: time management
399-
time-tracking: time tracking
400-
translation: translation
401-
video-conferencing: video conferencing
402-
video-editing: video editing
403-
visitor-management: visitor management
391+
service-desk: sportello assistenza servizi
392+
social-media-management: gestione social media
393+
survey: sondaggi
394+
talent-management: gestione talenti
395+
task-management: gestione incarichi
396+
taxes-management: gestione tasse
397+
test-management: gestione test
398+
time-management: gestione del tempo
399+
time-tracking: monitoraggio del tempo
400+
translation: traduzioni
401+
video-conferencing: videoconferenze
402+
video-editing: montaggio video
403+
visitor-management: gestione visitatori
404404
voip: VoIP
405-
warehouse-management: warehouse management
406-
web-collaboration: web collaboration
407-
web-conferencing: web conferencing
405+
warehouse-management: gestione magazzino
406+
web-collaboration: collaborazioni web
407+
web-conferencing: conferenze web
408408
whistleblowing: whistleblowing
409-
website-builder: website builder
410-
workflow-management: workflow management
409+
website-builder: creatori di siti
410+
workflow-management: gestione flusso di lavoro
411+
scopes:
412+
agriculture: agricoltura
413+
culture: cultura
414+
defence: difesa
415+
education: istruzione
416+
emergency-services: servizi di emergenza
417+
employment: occupazione
418+
energy: energia
419+
environment: ambiente
420+
finance-and-economic-development: sviluppo finanziario ed economico
421+
foreign-affairs: affari esteri
422+
government: governo
423+
healthcare: assistenza sanitaria
424+
infrastructures: infrastrutture
425+
justice: giustizia
426+
local-authorities: autorità locali
427+
manufacturing: manifattura
428+
research: ricerca
429+
science-and-technology: scienza e tecnologia
430+
security: sicurezza
431+
society: società
432+
sport: sport
433+
tourism: turismo
434+
transportation: trasporti
435+
welfare: benessere
411436
pa:
412437
top_right_text: Questa pagina elenca il software di cui l'ente è titolare e che è stato pubblicato con licenza aperta ai sensi dell'art. 69 del Codice dell'Amministrazione Digitale.
413438
more_details: Esplora
@@ -563,16 +588,16 @@ en:
563588
banner_joinus_h1: Join our community!
564589
banner_joinus_action: Chat on Slack now
565590
how_to_use: How do I use it
566-
banner_PNRR_h2: Soluzioni e programmi informatici che possono contribuire al raggiungimento degli obiettivi del PNRR di PA digitale 2026
591+
banner_PNRR_h2: Solutions and softwares that can contribute to the achievement of PNRR objectives by PA digitale 2026
567592
banner_PNRR_h1: Software PNRR
568-
banner_PNRR_action: Vedi il catalogo PNRR
593+
banner_PNRR_action: See PNRR catalogue
569594
status_member_of_board: member of board
570595
status_maintainer: maintainer
571596

572597
in_collaboration_with: In collaboration with
573598
project_of: Project of
574599

575-
header_link_trasformazione: Piano Triennale
600+
header_link_trasformazione: Three-year Plan
576601
header_link_developers: Developers
577602
header_link_design: Designers
578603
header_link_forum: Forum
@@ -620,7 +645,7 @@ en:
620645
channel: "Contact"
621646
tos: "Terms of service"
622647
authorize: "Authorize"
623-
goToCard: Vai alla scheda
648+
goToCard: Go to card
624649
platform: "Reference platform"
625650
goToPlatform: "Go to platform"
626651

@@ -828,6 +853,31 @@ The ranges of every measure can be found in the [vitality-ranges.yml](https://gi
828853
whistleblowing: whistleblowing
829854
website-builder: website builder
830855
workflow-management: workflow management
856+
scopes:
857+
agriculture: agriculture
858+
culture: culture
859+
defence: defence
860+
education: education
861+
emergency-services: emergency services
862+
employment: employment
863+
energy: energy
864+
environment: environment
865+
finance-and-economic-development: finance and economic development
866+
foreign-affairs: foreign affairs
867+
government: government
868+
healthcare: healthcare
869+
infrastructures: infrastructures
870+
justice: justice
871+
local-authorities: local authorities
872+
manufacturing: manufacturing
873+
research: research
874+
science-and-technology: science and technology
875+
security: security
876+
society: society
877+
sport: sport
878+
tourism: tourism
879+
transportation: transportation
880+
welfare: welfare
831881
pa:
832882
top_right_text: This page lists the software solutions owned by this public entity and released under an open license according to art. 69 of the Italian Digital Administration Code.
833883
more_details: Read more

assets/js/utils/l10n.js

+11-3
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,28 @@ export const softwareTypes = [
2323

2424
export const getSoftwareCategories = () => {
2525
const softwareCategories = yaml.load(softwareCategoriesYml);
26-
return softwareCategories.map((value) => [value, value.replace(/-/gi, ' ')]);
26+
const categoriesMap = Object.values(softwareCategories).map((value) => [
27+
value,
28+
l10NLabels.publiccode.categories[value],
29+
]);
30+
return categoriesMap.sort((a, b) => (a[1].toLowerCase() > b[1].toLowerCase() ? 1 : -1));
2731
};
2832

2933
export const getSoftwareDevelopmentStatuses = () => {
3034
const softwareDevelopmentStatus = yaml.load(softwareDevelopmentStatusYml);
3135
return Object.entries(softwareDevelopmentStatus).reduce((acc, [key, value]) => {
3236
acc.push([key, value[lang]]);
33-
return acc;
37+
return acc.sort((a, b) => (a[1].toLowerCase() > b[1].toLowerCase() ? 1 : -1));
3438
}, []);
3539
};
3640

3741
export const getSoftwareIntendedAudiences = () => {
3842
const softwareIntendedAudiences = yaml.load(softwareIntendedAudiencesYml);
39-
return softwareIntendedAudiences.map((value) => [value, value.replace(/-/gi, ' ')]);
43+
const audiencesMap = Object.values(softwareIntendedAudiences).map((value) => [
44+
value,
45+
l10NLabels.publiccode.scopes[value],
46+
]);
47+
return audiencesMap.sort((a, b) => (a[1].toLowerCase() > b[1].toLowerCase() ? 1 : -1));
4048
};
4149

4250
export const softwarePNRR = [['1', l10NLabels.software.pnrr]];

0 commit comments

Comments
 (0)