From e0372ca5f0fcc02ad17d9ad879fa67e0463e020b Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Tue, 19 Nov 2013 16:52:35 +0000 Subject: [PATCH] Add documentation on poedit --- docs/README | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 52 insertions(+), 1 deletion(-) diff --git a/docs/README b/docs/README index 8c7d312d4..1ec71e496 100644 --- a/docs/README +++ b/docs/README @@ -5,6 +5,7 @@ README - Installation - Project - Library + - Translate Note : Project are define to be use on Linux Server, so take care about path and file name. Also some script (CLI) don't work on Windows. @@ -136,7 +137,25 @@ WKHTMLTOPDF - On Ubuntu : sudo apt-get install libxrender1 libfontconfig - Set execution flag (chmod +x) - - Test + - Test on command line + + Page Break with WkhtmlToPdf : + In print CSS use all theses page-break-* properties + + page-break-before, + page-break-after + Auto Pas de règle particulière en ce qui concerne les sauts de page. + Always Force un saut de page systématiquement avant ou après l'élément. + Avoid Evite dans la mesure du possible un saut de page avant ou après l'élément. + Left Définit que le prochain saut de page se fera sur la page de gauche. + Right Définit que le prochain saut de page se fera sur la page de droite. + Inherit Valeur identique à celle de l'élément parent. + + page-break-inside + Auto Pas de règle particulière en ce qui concerne les sauts de page. + Avoid Evite dans la mesure du possible un saut de page au milieu l'élément. + Inherit Valeur identique à celle de l'élément parent. + WebService ---------- @@ -159,7 +178,39 @@ LIBRARY +TRANSLATE +========= + 1. Creating PO file + -------------------- + To create a PO file for different applications, first we need to download and install poedit, + here is the download link http://www.poedit.net/download.php + + 2. Set the poedit preferences + ----------------------------- + File->Preferences : Fill fields to set our identies + tab Parsers, edit PHP settings, in the list of extension add *.phtml + + 3. Open a po file + ------------------ + PO file configuration for each project. As project as to be share use path that could work everywhere. + Catalogue->Properties, Set the Base paht to "../../" (to read under the whole project, if po + files is located under PROJECT/application/languages/) + + Add supplemental paths to look in (application, library,....) + Add more precise search string by configuring in the Sources keywords these items + + translate + _ + setLabel + setValue + setMessage + setLegend + _refresh + append + prepend + + In PHP source embrace all strings only with these functions.