Traduction des extensions et du core de TYPO3 CMS avec XLIFF
1. Text
Inspire people to translate
Université d’été TYPO3, Annecy
TYPO3 meets XLIFF + reST
Inspiring people to
share
2. Inspire People to Translate
!
TYPO3 meets XLIFF + reST
Say bye bye to OpenOffice
T3UNIFR - 25 juin 2012
Dominique Feyer
François Suter
Xavier Perseguers
@dfeyer
@fsuter
@xperseguers
3. Résumé
Qui sommes-nous ?
Le support de XLIFF dans TYPO3 4.6
Serveur de traduction
ReStructured Text, le nouveau format pour la documentation
TYPO3 meets XLIFF + reST
Inspiring people to
share
4. A propos
Xavier Perseguers
!
Fondateur de Causal Sàrl - Fribourg
TYPO3 Core Team depuis 2009
Release Manager TYPO3 4.6
Twitter: @xperseguers @causal_sarl
TYPO3 meets XLIFF + reST
Inspiring people to
share
5. A propos
Dominique Feyer
Cofondateur de ttree sàrl - lausanne
Père d’une petite fille de 5 ans
Plus de 10 ans d’expérience sur TYPO3
TYPO3 translation team “leader”
Twitter: @dfeyer @ttreeagency
TYPO3 meets XLIFF + reST
Inspiring people to
share
6. A propos
François Suter
!
Développeur TYPO3 depuis 2004
TYPO3 Core Developper
Documentation team “leader”
Twitter: @fsuter
TYPO3 meets XLIFF + reST
Inspiring people to
share
8. TYPO3 & XLIFF
Le support de XLIFF dans TYPO3 4.6
Unifié avec FLOW3
Nouveau format d’échange pour la locatisation
<?xml version="1.0" encoding="UTF-8"?>
encoding="utf-8" standalone="yes" ?>
<T3locallang>
<xliff version="1.0">
<meta type="array">
<file source-language="EN" target-language="fr" product-name="em">
<type>module</type>
<header/>
<description>Labels for Extension Manager</description>
<body>
</meta> <trans-unit id="tasks_updateExtensionlistTask.name" approved="yes">
<data type="array">
<source>Update Extension List</source>
<languageKey index="fr" type="array">
<target state="translated">Mettre à jour la liste des extensions</target>
<label index="tasks_updateExtensionlistTask.name">Mettre à jour la liste des extensions</label>
</trans-unit>
<label index="tasks_updateExtensionlistTask.description">Mise à jour de la
<trans-unit id="tasks_updateExtensionlistTask.description" approved="yes"> liste [...]</label>
</languageKey>
<source>Update the extension list on a regular basis. Once a day is a [...]</source>
...
<target state="translated">Mise à jour de la liste des extensions sur une [...]</target>
</trans-unit>
TYPO3 meets XLIFF + reST
Inspiring people to
share
9. TYPO3 & XLIFF
XLIFF, le format d’échange
1 fichier/langue
Anglais
locallang.xml
locallang.xlf
fr.locallang.xlf
Français
TYPO3 meets XLIFF + reST
Inspiring people to
share
10. TYPO3 & XLIFF
Conversion LL-XML ➔ XLIFF
LL-XML ➔ XLIFF avec l’extension “extdeveval”
TYPO3 meets XLIFF + reST
Inspiring people to
share
11. TYPO3 & XLIFF
Chaîne de dépendance complexe
Reconfigurer les dépendances entre les locales
standard:
fr_CA ➔ fr ➔ default
standard:
user-defined:
ja_KA ➔ ja ➔ default
ja_KA ➔ ja_NR ➔ ja ➔ default
大阪弁
標準語
東京弁
TYPO3 meets XLIFF + reST
標準語
Inspiring people to
share
12. TYPO3 & XLIFF
XLIFF avant la 4.6
Ajoutez une dépendance à l’extension “xliff” disponible sur le TER
http://typo3.org/extensions/repository/view/xliff
Conversion automatique de vos fichiers XLIFF en
LL-XML si la version de TYPO3 le nécessite
TYPO3 meets XLIFF + reST
Inspiring people to
share
13. TYPO3 & XLIFF
Les prochaines étapes
Synchronisation automatique TER -> Pootle
Nouvelle version des scripts de construction des “language packs”
Nouvelle API
Support des pluriels
Support des traductions par sources
JS / ExtJS
TYPO3 meets XLIFF + reST
TYPO3 6.x
Inspiring people to
share
14. Highlights of TYPO3 4.6
Le serveur de traduction
TYPO3 meets XLIFF + reST
Inspiring people to
share
15. Le serveur de traduction
Contribuer à l’effort de traduction
http://translation.typo3.org
Intégrer avec le SSO de typo3.org
Pootle: PO-based Online Translation / Localization Engine
“Pootle est un portail orienté utilisateur pour faciliter
le processus de traduction. Il permet une traduction
en ligne, la génération de statistique et permet un
contribution simple et rapide.
TYPO3 meets XLIFF + reST
Inspiring people to
share
17. Le serveur de traduction
Projet “Terminologie”
Dictionnaire de mots clés avec leur
traduction
Gestion de la terminologie par les “team
leaders”
TYPO3 meets XLIFF + reST
Inspiring people to
share
18. Le serveur de traduction
Traduire hors ligne
Parce que la vrai vie c’est hors ligne
Support des équipes de traduction
externe
Société spécialisée
TYPO3 meets XLIFF + reST
Inspiring people to
share
19. Le serveur de traduction
p
o 0
h h3
s 6
k 1
r
o
W
Contribuer à l’effort de traduction
N’importe qui avec un compte typo3.org
m
i,
rd
a
TYPO3 meets XLIFF + reST
in
ju
6
2
Inspiring people to
share
20. ReStructured Text
ReStructured Text
Unifié avec FLOW3
Nouveau format de documentation
3: Use the upgrade wizard
^^^^^^^^^^^^^^^^^^^^^^^^^
Enter the Install Tool at '.../typo3/install/' on your TYPO3 site.
!
(If you have password/access problems, please see the section about
the Install Tool in this document).
!
|img-14| TYPO3 provides an upgrade wizard for easy upgrading. Go to the
“Upgrade Wizard” section and take a look at the different wizards
provided. You should start by using the “Version Compatibility”
wizard, which sets the compatibility version of your TYPO3
installation to the new version. Afterwards you will get redirected to
the next wizard. Please note that some wizards provide optional
features, like installing system extension (for example simulate
TYPO3 meets XLIFF + reST
Inspiring people to
share
22. ReStructured Text
ReStructured Text
Avantages
Format texte
Multiples fichiers et images référencées
Automatisation du rendu
Désavantages
Peu connu du monde PHP
Plus technique que OpenOffice
TYPO3 meets XLIFF + reST
Inspiring people to
share
23. ReStructured Text
Objectifs
Convergence avec FLOW3
Homogénéité du rendu
Rendus dans de multiples formats
URLs permanentes
Liens croisés entre documents
Gestion de version
TYPO3 meets XLIFF + reST
Inspiring people to
share
25. ReStructured Text
ReStructured Text
3: Use the upgrade wizard
^^^^^^^^^^^^^^^^^^^^^^^^^
Enter the Install Tool at '.../typo3/install/' on your TYPO3 site.
!
(If you have password/access problems, please see the section about
the Install Tool in this document).
!
|img-14| TYPO3 provides an upgrade wizard for easy upgrading. Go to the
“Upgrade Wizard” section and take a look at the different wizards
provided. You should start by using the “Version Compatibility”
wizard, which sets the compatibility version of your TYPO3
installation to the new version. Afterwards you will get redirected to
the next wizard.
TYPO3 meets XLIFF + reST
Inspiring people to
share
26. ReStructured Text
Migration
Manuels officiels déjà migrés
Nouveau processus de documentation du Core
Conversion automatique disponible pour extensions
Bientôt, les extensions systèmes
TYPO3 meets XLIFF + reST
Inspiring people to
share
27. ReStructured Text
Les prochaines étapes
Définition des conventions pour liens croisés
Automatisation du rendu (FLOW3)
URLs définitives
Interactions avec EM et TER
Intégration dans typo3.org
TYPO3 meets XLIFF + reST
Inspiring people to
share
28. ReStructured Text
Traduction de la documentation
Documentation “pur texte”
Comment tirer partie de Pootle ?
Sphinx a une solution : http://sphinx.pocoo.org/latest/intl.html
TYPO3 meets XLIFF + reST
Inspiring people to
share
29. ReStructured Text - Traduction de la documentation
Vue d’ensemble
TYPO3 meets XLIFF + reST
Inspiring people to
share
30. ReStructured Text - Traduction de la documentation
Exemple pratique
git://git.typo3.org/Documentation/TYPO3/Example/Manual.git
Index.rst
AdministratorManual.rst
...
TYPO3 meets XLIFF + reST
Inspiring people to
share
31. =================
Extension Name
=================
ReStructured
!
Text - Traduction de la documentation
:Extension name: Extension Name
:Extension key: extension_key
:Description: manuals covering TYPO3 basics
:Language: en
:Author: Author Name <author@typo3.org>
:Creation date: 18-12-2010
:Generation date: |time|
:Licence: Open Content License available from http://www.opencontent.org/opl.shtml
!
The
!
content of this document is related to TYPO3 - a GNU/GPL CMS/Framework available from www.typo3.org
.. toctree::
:maxdepth: 2
!
!
Fichier .rst
Fichier .pot
UserManual
AdministratorManual
TyposcriptReference
DeveloperCorner
ProjectInformation
RestructuredtextHelp
What does it do?
=================
!
First of all, if you have any idea how this template can be improved, please, drop a note to our team_. Documentation
is written in reST format. Please, refer to Help writing reStructuredText to get some insight regarding syntax and
existing reST editors on the market.
TYPO3 meets XLIFF + reST
Inspiring people to
share
32. ReStructured Text - Traduction de la documentation
msgid ""
msgstr ""
"Project-Id-Version: Extension Name 1.0n"
"Report-Msgid-Bugs-To: n"
"POT-Creation-Date: 2012-06-25 15:13n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONEn"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>n"
"Language-Team: LANGUAGE <LL@li.org>n"
"MIME-Version: 1.0n"
"Content-Type: text/plain; charset=UTF-8n"
"Content-Transfer-Encoding: 8bitn"
Fichier .pot
!
#: ../../Index.rst:12
#: ../../Index.rst:14
msgid "Extension Name"
msgstr ""
!
#: ../../Index.rst:15
msgid "extension_key"
msgstr ""
Pootle
!
#: ../../Index.rst:16
msgid "manuals covering TYPO3 basics"
msgstr ""
TYPO3 meets XLIFF + reST
Inspiring people to
share
34. ReStructured Text - Traduction de la documentation
Fichier .po
Pootle
TYPO3 meets XLIFF + reST
Inspiring people to
share
35. ReStructured Text - Traduction de la documentation
Fichier .po pour le français
#: ../../Index.rst:12
#: ../../Index.rst:14
msgid "Extension Name"
msgstr "Nom de l’extension"
!
#: ../../Index.rst:15
msgid "extension_key"
msgstr "extension_key"
!
#: ../../Index.rst:16
msgid "manuals covering TYPO3 basics"
msgstr "manuel couvrant les fonctions de base de TYPO3"
!
...
TYPO3 meets XLIFF + reST
Inspiring people to
share
36. ReStructured Text - Traduction de la documentation
Fichier .rst
Fichier .po
/ .mo
Document en
anglais
TYPO3 meets XLIFF + reST
Document localisé
pour français
Inspiring people to
share
37. ReStructured Text
Distribution des traductions via le TER
http://blog.causal.ch/2012/06/personal-typo3-translation-server-for.html
TYPO3 meets XLIFF + reST
Inspiring people to
share
39. Plus d’informations
Resources
Serveur de traduction: http://translation.typo3.org
Translation Team (Forge): http://forge.typo3.org/projects/show/team-translation
ReST: http://wiki.typo3.org/ReST
Listes de diffusion:
Traduction: typo3.translation.general@lists.typo3.org
Liste française pour la traduction: typo3.translation.french@lists.typo3.org
Documentation: typo3.projects.documentation@lists.typo3.org
Liste française (générale): typo3.ug.fr@lists.typo3.org
TYPO3 meets XLIFF + reST
Inspiring people to
share
40. Plus d’informations
Pour aller plus loin
Traduction d’un site TYPO3 : Extension l10nmgr
Importation/Exportation en XLIFF
Installation de son extension sur Pootle
...
TYPO3 meets XLIFF + reST
Inspiring people to
share