Author: tchemit Date: 2012-09-04 11:51:28 +0200 (Tue, 04 Sep 2012) New Revision: 1985 Url: http://nuiton.org/repositories/revision/i18n/1985 Log: improve docs (add a title on each page) Modified: trunk/src/site/apt/application.apt trunk/src/site/apt/bestPractices.apt trunk/src/site/apt/extendInitializer.apt trunk/src/site/apt/gwt.apt trunk/src/site/apt/helloWorld.apt trunk/src/site/apt/index.apt trunk/src/site/apt/library.apt.vm trunk/src/site/apt/presentation.apt trunk/src/site/en/apt/application.apt trunk/src/site/en/apt/bestPractices.apt trunk/src/site/en/apt/extendInitializer.apt trunk/src/site/en/apt/gwt.apt trunk/src/site/en/apt/helloWorld.apt trunk/src/site/en/apt/index.apt trunk/src/site/en/apt/library.apt.vm trunk/src/site/en/apt/presentation.apt Modified: trunk/src/site/apt/application.apt =================================================================== --- trunk/src/site/apt/application.apt 2012-09-04 09:36:53 UTC (rev 1984) +++ trunk/src/site/apt/application.apt 2012-09-04 09:51:28 UTC (rev 1985) @@ -22,9 +22,15 @@ ~~ <http://www.gnu.org/licenses/lgpl-3.0.html>. ~~ #L% ~~~ + + --- Tutoriel d'application utilisant Nuiton I18n et une librairie utilisant Nuiton I18n (utilisation de Maven) + --- +Tutoriel d'application utilisant Nuiton I18n et une librairie utilisant +Nuiton I18n (utilisation de Maven) + Dans ce tutoriel nous allons créer une application qui affichera un message à l'utilisateur et appellera l'unique méthode de la librairie que nous avons créé dans le tutoriel précédent. Nous supposons donc dans ce tutoriel que vous Modified: trunk/src/site/apt/bestPractices.apt =================================================================== --- trunk/src/site/apt/bestPractices.apt 2012-09-04 09:36:53 UTC (rev 1984) +++ trunk/src/site/apt/bestPractices.apt 2012-09-04 09:51:28 UTC (rev 1985) @@ -22,8 +22,13 @@ ~~ <http://www.gnu.org/licenses/lgpl-3.0.html>. ~~ #L% ~~~ + + --- Bonnes pratiques Nuiton I18n + --- +Bonnes pratiques Nuiton I18n + * Choisissez un pattern et suivez le. Dans une application ou une librairie, vous devriez choisir un pattern pour Modified: trunk/src/site/apt/extendInitializer.apt =================================================================== --- trunk/src/site/apt/extendInitializer.apt 2012-09-04 09:36:53 UTC (rev 1984) +++ trunk/src/site/apt/extendInitializer.apt 2012-09-04 09:51:28 UTC (rev 1985) @@ -22,6 +22,11 @@ ~~ <http://www.gnu.org/licenses/lgpl-3.0.html>. ~~ #L% ~~~ + + --- Etendre Initializer pour répondre exactement à votre besoin + --- +Etendre Initializer pour répondre exactement à votre besoin + TODO Modified: trunk/src/site/apt/gwt.apt =================================================================== --- trunk/src/site/apt/gwt.apt 2012-09-04 09:36:53 UTC (rev 1984) +++ trunk/src/site/apt/gwt.apt 2012-09-04 09:51:28 UTC (rev 1985) @@ -22,8 +22,13 @@ ~~ <http://www.gnu.org/licenses/lgpl-3.0.html>. ~~ #L% ~~~ + + --- GWT UiBinder et i18n, vous avez dit un cauchemard ? + --- +GWT UiBinder et i18n, vous avez dit un cauchemard ? + * GWT avec nuiton-i18n (et Maven) et ça coule de source ** Le fonctionnement classique de l'i18n dans GWT Modified: trunk/src/site/apt/helloWorld.apt =================================================================== --- trunk/src/site/apt/helloWorld.apt 2012-09-04 09:36:53 UTC (rev 1984) +++ trunk/src/site/apt/helloWorld.apt 2012-09-04 09:51:28 UTC (rev 1985) @@ -22,8 +22,13 @@ ~~ <http://www.gnu.org/licenses/lgpl-3.0.html>. ~~ #L% ~~~ + + --- Nuiton I18n Hello World + --- +Nuiton I18n Hello World + Ce premier tutorial a pour objectif de vous montrer comment se servir de la librairie Nuiton I18n de la manière la plus simple qui soit. Nous allons créer une classe Main qui affiche le texte Hello World, puis nous allons traduire Modified: trunk/src/site/apt/index.apt =================================================================== --- trunk/src/site/apt/index.apt 2012-09-04 09:36:53 UTC (rev 1984) +++ trunk/src/site/apt/index.apt 2012-09-04 09:51:28 UTC (rev 1985) @@ -22,8 +22,13 @@ ~~ <http://www.gnu.org/licenses/lgpl-3.0.html>. ~~ #L% ~~~ + + --- Nuiton I18n + --- +Nuiton I18n + Le projet Nuiton I18n fournit des classes Java pour l'internationalisation (i18n) des applications. Modified: trunk/src/site/apt/library.apt.vm =================================================================== --- trunk/src/site/apt/library.apt.vm 2012-09-04 09:36:53 UTC (rev 1984) +++ trunk/src/site/apt/library.apt.vm 2012-09-04 09:51:28 UTC (rev 1985) @@ -22,8 +22,12 @@ ~~ <http://www.gnu.org/licenses/lgpl-3.0.html>. ~~ #L% ~~~ + --- Tutoriel de librairie utilisant Nuiton I18n (utilisation de Maven) + --- +Tutoriel de librairie utilisant Nuiton I18n (utilisation de Maven) + * Pourquoi un tutoriel différent pour une librairie et pour une application finale ? Modified: trunk/src/site/apt/presentation.apt =================================================================== --- trunk/src/site/apt/presentation.apt 2012-09-04 09:36:53 UTC (rev 1984) +++ trunk/src/site/apt/presentation.apt 2012-09-04 09:51:28 UTC (rev 1985) @@ -22,8 +22,12 @@ ~~ <http://www.gnu.org/licenses/lgpl-3.0.html>. ~~ #L% ~~~ + --- Présentation + --- +Présentation + La librairie Nuiton I18n a un fonctionnement relativement simple. Les chaînes à traduire sont simplement marquées par la méthode I18n._("Chaîne à traduire"). Il est possible de marquer des chaînes à ne pas traduire par la méthode Modified: trunk/src/site/en/apt/application.apt =================================================================== --- trunk/src/site/en/apt/application.apt 2012-09-04 09:36:53 UTC (rev 1984) +++ trunk/src/site/en/apt/application.apt 2012-09-04 09:51:28 UTC (rev 1985) @@ -22,9 +22,15 @@ ~~ <http://www.gnu.org/licenses/lgpl-3.0.html>. ~~ #L% ~~~ + + --- Tutorial of an application using Nuiton I18n and a library using Nuiton I18n itself (use Maven) + --- +Tutorial of an application using Nuiton I18n and a library using Nuiton I18n +itself (use Maven) + In this tutorial, we will create an application that will display a message to the user and will call the unique method of the library we created in the previous tutorial. We suppose in this tutorial, that you followed the two Modified: trunk/src/site/en/apt/bestPractices.apt =================================================================== --- trunk/src/site/en/apt/bestPractices.apt 2012-09-04 09:36:53 UTC (rev 1984) +++ trunk/src/site/en/apt/bestPractices.apt 2012-09-04 09:51:28 UTC (rev 1985) @@ -22,8 +22,13 @@ ~~ <http://www.gnu.org/licenses/lgpl-3.0.html>. ~~ #L% ~~~ + + --- Nuiton I18n Best Practices + --- +Nuiton I18n Best Practices + * Choose a pattern and follow it In an application or a library, you should choose a pattern for the i18n keys. Modified: trunk/src/site/en/apt/extendInitializer.apt =================================================================== --- trunk/src/site/en/apt/extendInitializer.apt 2012-09-04 09:36:53 UTC (rev 1984) +++ trunk/src/site/en/apt/extendInitializer.apt 2012-09-04 09:51:28 UTC (rev 1985) @@ -22,6 +22,11 @@ ~~ <http://www.gnu.org/licenses/lgpl-3.0.html>. ~~ #L% ~~~ + + --- Extend Initializer to suit exactly your needs + --- +Extend Initializer to suit exactly your needs + TODO Modified: trunk/src/site/en/apt/gwt.apt =================================================================== --- trunk/src/site/en/apt/gwt.apt 2012-09-04 09:36:53 UTC (rev 1984) +++ trunk/src/site/en/apt/gwt.apt 2012-09-04 09:51:28 UTC (rev 1985) @@ -22,8 +22,13 @@ ~~ <http://www.gnu.org/licenses/lgpl-3.0.html>. ~~ #L% ~~~ + + --- GWT UiBinder and i18n, you said nightmare ? + --- +GWT UiBinder and i18n, you said nightmare ? + * GWT with nuiton-i18n (and Maven) and it's easy ** The way i18n works in GWT Modified: trunk/src/site/en/apt/helloWorld.apt =================================================================== --- trunk/src/site/en/apt/helloWorld.apt 2012-09-04 09:36:53 UTC (rev 1984) +++ trunk/src/site/en/apt/helloWorld.apt 2012-09-04 09:51:28 UTC (rev 1985) @@ -22,8 +22,13 @@ ~~ <http://www.gnu.org/licenses/lgpl-3.0.html>. ~~ #L% ~~~ + + --- Nuiton I18n Hello World + --- +Nuiton I18n Hello World + This first tutorial is aimed to show you how to use Nuiton I18n library the easiest way. We will create a main method that will display th 'Hello World' text, then we will translate this text in other languages. Modified: trunk/src/site/en/apt/index.apt =================================================================== --- trunk/src/site/en/apt/index.apt 2012-09-04 09:36:53 UTC (rev 1984) +++ trunk/src/site/en/apt/index.apt 2012-09-04 09:51:28 UTC (rev 1985) @@ -22,8 +22,13 @@ ~~ <http://www.gnu.org/licenses/lgpl-3.0.html>. ~~ #L% ~~~ + + --- Nuiton I18n + --- +Nuiton I18n + Nuiton I18n project features Java classes for applications internationalisation (i18n). Modified: trunk/src/site/en/apt/library.apt.vm =================================================================== --- trunk/src/site/en/apt/library.apt.vm 2012-09-04 09:36:53 UTC (rev 1984) +++ trunk/src/site/en/apt/library.apt.vm 2012-09-04 09:51:28 UTC (rev 1985) @@ -22,8 +22,13 @@ ~~ <http://www.gnu.org/licenses/lgpl-3.0.html>. ~~ #L% ~~~ + + --- Library using Nuiton I18n tutorial (using Maven) + --- +Library using Nuiton I18n tutorial (using Maven) + * Why a different tutorial for a library and a final application ? When you create a final application, at build time, we create a bundle Modified: trunk/src/site/en/apt/presentation.apt =================================================================== --- trunk/src/site/en/apt/presentation.apt 2012-09-04 09:36:53 UTC (rev 1984) +++ trunk/src/site/en/apt/presentation.apt 2012-09-04 09:51:28 UTC (rev 1985) @@ -22,8 +22,13 @@ ~~ <http://www.gnu.org/licenses/lgpl-3.0.html>. ~~ #L% ~~~ + + --- Presentation + --- +Presentation + The Nuiton I18n library works quite simply. The string to translate are only marked by the I18n._("String to translate") method. It is possible to mark the strings that are not to be translated using the I18n.n_("String not to be