Fonksiyonların Gettext
a> aile iyi bir başlangıç noktasıdır:
The gettext functions implement an NLS
(Native Dil Support) API which
can be used to internationalize your
PHP applications.
Zend_Translate
is extremely flexible and has a thread-safe implementation of gettext
. Bu yerli uluslararasılaşma uygulamaları ile aşağıdaki sorunları giderir kılavuzu devletler:
- Inconsistent API: There is no single API for the different source
formats. The usage of gettext for
example is very complicated.
- PHP supports only gettext and native array: PHP itself offers
only support for array or gettext.
All other source formats have to be
coded manually, because there is no
native support.
- No detection of the default language:The default language of
the user cannot be detected without
deeper knowledge of the backgrounds
for the different web browsers.
- Gettext parçacığı güvenli değildir: PHP'nin gettext kütüphane parçacığı güvenli değildir, ve bir çok iş parçacıklı ortamda kullanılmamalıdır. Bu gettext kendisi değil, PHP ile ilgili sorunlar nedeniyle, ancak varolan bir sorundur.
Diğer bir deyişle, sadece kendi uluslararasılaşma API faydalanmak için her şeyi kullanmaya gerek olmayacak - Bu Zend Framework
is not a full-stack çerçeve fazlalaştı.
Ben gerçekten bu konuda gibi kolayca, maç karıştırın ve sadece uygulama için çok hafif değişiklikleri uygulamak zorunda değiştirebilirsiniz multiple adapters for different data sources için verdiği destek, nedir. Umut olur.