SlideShare a Scribd company logo
1 of 10
Download to read offline
Lo Voglio In Italiano! i18n per tutti

l10n

i18n
Temi

WordPress
Codex
Plugin

Lo Voglio In Italiano! i18n per tutti
Stefano Aglietti
Fondatore WordPress Italy e sviluppatore WordPress
steagl@wpitaly.it - @SteveAgl
www.wpitaly.it - www.goodpress.it

WordPress Meetup Milano 28/10/2013
Lo Voglio In Italiano! i18n per tutti

i18n

(internationalization - internazionalizzazione)

Il processo di preparazione di WP, Temi e Plugin per la futura generazione di traduzioni in altre
lingue oltre quella del prodotto (solitamente l’inglese)

l10n

(localization - localizzazione)

La creazioni di traduzioni per una data di lingua per un prodotto precedentemente già
internazionalizzato
www.wpitaly.it - www.goodpress.it

WordPress Meetup Milano 28/10/2013
Lo Voglio In Italiano! i18n per tutti

WordPress in Italiano
!=
Tema o Plugin in Italiano
Avere WP in italiano non mi fa avere automaticamente i temi ed i plugin in italiano.
La traduzione Italiana di WP si riferisce SOLO all’interfaccia amministrativa e alle funzioni di WP
Temi e Plugin devono essere correttamente i18n e avere il loro file di traduzione per la lingua
utilizzata da WordPress
www.wpitaly.it - www.goodpress.it

WordPress Meetup Milano 28/10/2013
Lo Voglio In Italiano! i18n per tutti

TextDomain
Una stringa univoca che identifica tutte le stringhe di un dato tema/plugin, deve stare nell’header e
essere uguale allo “slug” del plugin/tema.
/*
* Plugin Name: Mio Plugin
* Author: SteveAgl
* Text Domain: mio-plugin
*/

http://codex.wordpress.org/I18n_for_WordPress_Developers

www.wpitaly.it - www.goodpress.it

WordPress Meetup Milano 28/10/2013
Lo Voglio In Italiano! i18n per tutti

Funzioni di I18n

http://codex.wordpress.org/I18n_for_WordPress_Developers
Esistono un insieme di funzioni apposite per la i18n dei testi.
$hello =

__( 'Hello, dear user!', 'my-text-domain' );
_e( 'Your Ad here', 'my-text-domain' )

$text = sprintf( _n( '1 star', '%s stars', $rating, 'your_textdomain' ), $rating );

ecc...
www.wpitaly.it - www.goodpress.it

WordPress Meetup Milano 28/10/2013
Lo Voglio In Italiano! i18n per tutti

Plugin/Tema

Nomi file traduzione
Plugin: my-plugin-it_IT.mo

File .POT
File .PO

Temi: it_IT.mo

File .MO

Meglio sempre avere una directory
languages nel proprio tema/plugin

Scritpt di Internazionalizzazione
http://i18n.svn.wordpress.org/tools/trunk/

www.wpitaly.it - www.goodpress.it

WordPress Meetup Milano 28/10/2013
Lo Voglio In Italiano! i18n per tutti

WordPress: traduzione collaborativa

http://translate.wordpress.org/projects
www.wpitaly.it - www.goodpress.it

WordPress Meetup Milano 28/10/2013
Lo Voglio In Italiano! i18n per tutti

WordPress: traduzione collaborativa
Regole di traduzione
Nel dubbio vedere le traduzioni già
esistenti, per regole più generali:
http://www.mozillaitalia.org/home/regole-g
enerali-di-traduzione/
(thanks a Mozilla Italia)

http://translate.wordpress.org/projects
www.wpitaly.it - www.goodpress.it

WordPress Meetup Milano 28/10/2013
Lo Voglio In Italiano! i18n per tutti

Codex: le pagine italiane
➢
➢
➢
➢

Poche pagine
Poca collaborazione
Prefisso it:
Contattateci!!

http://codex.wordpress.org/projects
www.wpitaly.it - www.goodpress.it

WordPress Meetup Milano 28/10/2013
Lo Voglio In Italiano! i18n per tutti

Vuoi Aiutarci?
Project Angels (glotpress)

Responsabili di singoli progetti su
http://translate.wordpress.org/projects

Traduttori del Codex

Tradurre intere pagine del Codex, revisione di quelle esistenti

Correzioni/Suggerimenti

Colabora ai progetti glotpress coggeggendo o traducento
anche poche stringhe, ogni contributo è ben accetto!
www.wpitaly.it - www.goodpress.it

WordPress Meetup Milano 28/10/2013

More Related Content

Featured

Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Saba Software
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
Simplilearn
 

Featured (20)

How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
 

Lo Voglio In Italiano! i18n per tutti

  • 1. Lo Voglio In Italiano! i18n per tutti l10n i18n Temi WordPress Codex Plugin Lo Voglio In Italiano! i18n per tutti Stefano Aglietti Fondatore WordPress Italy e sviluppatore WordPress steagl@wpitaly.it - @SteveAgl www.wpitaly.it - www.goodpress.it WordPress Meetup Milano 28/10/2013
  • 2. Lo Voglio In Italiano! i18n per tutti i18n (internationalization - internazionalizzazione) Il processo di preparazione di WP, Temi e Plugin per la futura generazione di traduzioni in altre lingue oltre quella del prodotto (solitamente l’inglese) l10n (localization - localizzazione) La creazioni di traduzioni per una data di lingua per un prodotto precedentemente già internazionalizzato www.wpitaly.it - www.goodpress.it WordPress Meetup Milano 28/10/2013
  • 3. Lo Voglio In Italiano! i18n per tutti WordPress in Italiano != Tema o Plugin in Italiano Avere WP in italiano non mi fa avere automaticamente i temi ed i plugin in italiano. La traduzione Italiana di WP si riferisce SOLO all’interfaccia amministrativa e alle funzioni di WP Temi e Plugin devono essere correttamente i18n e avere il loro file di traduzione per la lingua utilizzata da WordPress www.wpitaly.it - www.goodpress.it WordPress Meetup Milano 28/10/2013
  • 4. Lo Voglio In Italiano! i18n per tutti TextDomain Una stringa univoca che identifica tutte le stringhe di un dato tema/plugin, deve stare nell’header e essere uguale allo “slug” del plugin/tema. /* * Plugin Name: Mio Plugin * Author: SteveAgl * Text Domain: mio-plugin */ http://codex.wordpress.org/I18n_for_WordPress_Developers www.wpitaly.it - www.goodpress.it WordPress Meetup Milano 28/10/2013
  • 5. Lo Voglio In Italiano! i18n per tutti Funzioni di I18n http://codex.wordpress.org/I18n_for_WordPress_Developers Esistono un insieme di funzioni apposite per la i18n dei testi. $hello = __( 'Hello, dear user!', 'my-text-domain' ); _e( 'Your Ad here', 'my-text-domain' ) $text = sprintf( _n( '1 star', '%s stars', $rating, 'your_textdomain' ), $rating ); ecc... www.wpitaly.it - www.goodpress.it WordPress Meetup Milano 28/10/2013
  • 6. Lo Voglio In Italiano! i18n per tutti Plugin/Tema Nomi file traduzione Plugin: my-plugin-it_IT.mo File .POT File .PO Temi: it_IT.mo File .MO Meglio sempre avere una directory languages nel proprio tema/plugin Scritpt di Internazionalizzazione http://i18n.svn.wordpress.org/tools/trunk/ www.wpitaly.it - www.goodpress.it WordPress Meetup Milano 28/10/2013
  • 7. Lo Voglio In Italiano! i18n per tutti WordPress: traduzione collaborativa http://translate.wordpress.org/projects www.wpitaly.it - www.goodpress.it WordPress Meetup Milano 28/10/2013
  • 8. Lo Voglio In Italiano! i18n per tutti WordPress: traduzione collaborativa Regole di traduzione Nel dubbio vedere le traduzioni già esistenti, per regole più generali: http://www.mozillaitalia.org/home/regole-g enerali-di-traduzione/ (thanks a Mozilla Italia) http://translate.wordpress.org/projects www.wpitaly.it - www.goodpress.it WordPress Meetup Milano 28/10/2013
  • 9. Lo Voglio In Italiano! i18n per tutti Codex: le pagine italiane ➢ ➢ ➢ ➢ Poche pagine Poca collaborazione Prefisso it: Contattateci!! http://codex.wordpress.org/projects www.wpitaly.it - www.goodpress.it WordPress Meetup Milano 28/10/2013
  • 10. Lo Voglio In Italiano! i18n per tutti Vuoi Aiutarci? Project Angels (glotpress) Responsabili di singoli progetti su http://translate.wordpress.org/projects Traduttori del Codex Tradurre intere pagine del Codex, revisione di quelle esistenti Correzioni/Suggerimenti Colabora ai progetti glotpress coggeggendo o traducento anche poche stringhe, ogni contributo è ben accetto! www.wpitaly.it - www.goodpress.it WordPress Meetup Milano 28/10/2013