You are here: Re: gettext vs custom ways « PHP Programming Language « IT news, forums, messages
Re: gettext vs custom ways

Posted by Mike P2 on 05/11/07 02:02

On May 10, 9:10 pm, shimmyshack <matt.fa...@gmail.com> wrote:
> Allow your users to help with translation throughhttp://www.translingo.org,
> or using the firefox addon "phplangeditor" and others....
>
> as you say _('heres something that needs to be translated') seems
> strange to me as well because although it certainly makes the code
> readable, so do well chosen variable names.
> I would be grateful for your thoughts should you change your mind

Hey, that's a cool extension. But how does translingo work? What I was
planning to do is create a page where my multilingual users can help
out by translating a list of strings (anyone who wants to help out --
I don't know every language I will support and I don't completely
trust online translation websites to make good translations) through
their web browser and a PHP script, and I can accept that string as
the translation if others look at it and agree and I try bringing it
back to English with an online translator. This might be a waste of
time if translingo does something like that anyway. I can't find much
description of how it works on the translingo website.

Also, although I see that large multilingual applications include()
files that set a bunch of array indexes or constants, I was
considering (and benchmarking) the possibility of just serialize()ing
a language array and unserialize()ing it back when needed if it might
be faster. Would it take longer to parse the PHP code and load that (I
do have Zend optimizer running) each page load like phpMyAdmin does or
to file_get_contents() and unserialize()? Benchmarking suggests to me
that unserializing would be much faster, but I'm wondering if this is
strange and I am doing something wrong.

-Mike PII

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация