I m Building a Open Source Products and Iink about Localization, I ve Read about gettext 但是,在不同的系统(服务器、电工等)工作方面似乎存在许多问题。
你们如何处理这一问题? 是否有安全的途径帮助在几个系统进行文字工作? 或许已经了吗?
瑞典/纳米比亚
I m Building a Open Source Products and Iink about Localization, I ve Read about gettext 但是,在不同的系统(服务器、电工等)工作方面似乎存在许多问题。
你们如何处理这一问题? 是否有安全的途径帮助在几个系统进行文字工作? 或许已经了吗?
瑞典/纳米比亚
我建议请见<<http://framework.zend.com/manual/1.11/en/zend.translate.html>rel=“nofollow noretinger”>,,,rel=nofollow noretinger”> Zend_translate的介绍列举了一些强烈的论点,即为什么选择案文(或类似内容)。 In multilingual applications, the
content must be translated into
several languages and display content
depending on the user s language. PHP
offers already several ways to handle
such problems, however the PHP
solution has some problems: 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 is not thread-safe: PHP s gettext library is not thread
safe, and it should not be used in a
multithreaded environment. This is due
to problems with gettext itself, not
PHP, but it is an existing problem.
Zend Framework s Zend_translate是我所看到的最灵活做法。 它不一定需要将文字支持模块放在PHP的一边,因为它读上了Mo-binary格式本身。
语言区块应保留在方案之外。 它们可能存放在数据库或XML档案中。 这将使以后增加其他语文。
然后,你们的所有应用都需要确定用户的定位,并为每一种情况提供适当的文本。
I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...
<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...
I found this script online that creates a thumbnail out of a image but the thumbnail image is created with poor quality how can I improve the quality of the image. And is there a better way to create ...
如何确认来自正确来源的数字。
Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...
I wonder there is a way to post a message to a facebook business page with cURL? thanks
I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...
How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...