|
|
@@ -1,5 +1,5 @@
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
-<!-- EN-Revision: 15617 -->
|
|
|
+<!-- EN-Revision: 15666 -->
|
|
|
<!-- Reviewed: no -->
|
|
|
<sect1 id="zend.locale.migration">
|
|
|
<title>Migrer à partir des versions précédentes</title>
|
|
|
@@ -11,6 +11,68 @@
|
|
|
ainsi utiliser la nouvelle API.
|
|
|
</para>
|
|
|
|
|
|
+ <sect2 id="zend.locale.migration.fromoneeighttoonenine">
|
|
|
+ <title>Migrer de la version 1.8 vers 1.9 ou plus récent</title>
|
|
|
+ <sect3 id="zend.locale.migration.fromoneeighttoonenine.depreciated">
|
|
|
+ <title>Méthodes dépréciées</title>
|
|
|
+
|
|
|
+ <para>
|
|
|
+ Quelques méthodes de traductions spéciales ont été dépréciées car elles dupliquaient
|
|
|
+ un comportement existant. Notez cependant que les anciens appels vont toujours
|
|
|
+ fonctionner, mais une notice utilisateur, qui décrira le nouvel appel, sera émise.
|
|
|
+ Ces méthodes seront effacées en 2.0. Ci-dessous la liste des anciens et nouveaux
|
|
|
+ appels :
|
|
|
+ </para>
|
|
|
+
|
|
|
+ <table id="zend.locale.migration.fromoneeighttoonenine.depreciated.table-1">
|
|
|
+ <title>Liste des types de mesures</title>
|
|
|
+
|
|
|
+ <tgroup cols="2">
|
|
|
+ <thead>
|
|
|
+ <row>
|
|
|
+ <entry>Ancien appel</entry>
|
|
|
+ <entry>Nouvel appel</entry>
|
|
|
+ </row>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ <row>
|
|
|
+ <entry>getLanguageTranslationList($locale)</entry>
|
|
|
+ <entry>getTranslationList('language', $locale)</entry>
|
|
|
+ </row>
|
|
|
+ <row>
|
|
|
+ <entry>getScriptTranslationList($locale)</entry>
|
|
|
+ <entry>getTranslationList('script', $locale)</entry>
|
|
|
+ </row>
|
|
|
+ <row>
|
|
|
+ <entry>getCountryTranslationList($locale)</entry>
|
|
|
+ <entry>getTranslationList('territory', $locale, 2)</entry>
|
|
|
+ </row>
|
|
|
+ <row>
|
|
|
+ <entry>getTerritoryTranslationList($locale)</entry>
|
|
|
+ <entry>getTranslationList('territory', $locale, 1)</entry>
|
|
|
+ </row>
|
|
|
+ <row>
|
|
|
+ <entry>getLanguageTranslation($value, $locale)</entry>
|
|
|
+ <entry>getTranslation($value, 'language', $locale)</entry>
|
|
|
+ </row>
|
|
|
+ <row>
|
|
|
+ <entry>getScriptTranslation($value, $locale)</entry>
|
|
|
+ <entry>getTranslation($value, 'script', $locale)</entry>
|
|
|
+ </row>
|
|
|
+ <row>
|
|
|
+ <entry>getCountryTranslation($value, $locale)</entry>
|
|
|
+ <entry>getTranslation($value, 'country', $locale)</entry>
|
|
|
+ </row>
|
|
|
+ <row>
|
|
|
+ <entry>getTerritoryTranslation($value, $locale)</entry>
|
|
|
+ <entry>getTranslation($value, 'territory', $locale)</entry>
|
|
|
+ </row>
|
|
|
+ </tbody>
|
|
|
+ </tgroup>
|
|
|
+ </table>
|
|
|
+ </sect3>
|
|
|
+ </sect2>
|
|
|
+
|
|
|
<sect2 id="zend.locale.migration.fromonesixtooneseven">
|
|
|
<title>Migrer de la version 1.6 vers 1.7 ou plus récent</title>
|
|
|
|