Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Poor Translators: msg#00046

cms.phpslash.devel

Subject: Re: Poor Translators

Mike Gifford wrote:
> 1) I don't think the phrase is being used any more as it
> only seems to occur in the locale directory (I updated my
> CVS version & grepped but didn't find it anywhere else).

It is used in the stable branch, file submission.php, line 60.

> This line should be nixed!

Im my humble opinion the I18N of phpSlash sucks. Completely.
It seems that nobody really is responsible for that part.
And that nobody thought about automatizing it.

For example, to find all used keys in .php files:

find . -type f -name '*.php' | xargs ./gettext.pl

Where gettext.pl is this:

#!/usr/bin/perl -nw00
if (m/pslgettext\s*\(\s*([^\)]*)\s*\)/i)
{ printf "%s\n", $1; }

But there are even more basic things.
A primitive search for duplicate keys:

grep '=>' en.php3 | sort | uniq -d

reports 11 matches.
Then in file es.php3 we have this one:

// Luis Mondesi < lemsx1-PkbjNfxxIARBDgjK7y7TUQ@xxxxxxxxxxxxxxxx > ths =>
this. please fix this!
"Sorry, ths story is assigned to this topic:" =>
"Lo siente, este artículo esta asignado a este tema:",

The fix is basically a one-liner (just make the search expression
unique):

find . -type f -name '*.php' | xargs perl -p -i.bak -e 's/ths/this/g'

> 2) It never really occurred to me before (as a unilingual English
> speaking North American), but using slang or casual language like
> the phrase above must be a pain for folks to translate into German,
> Spanish, Dutch, Norwegian, etc...

I updated de.php3 this summer (but got ignored).
Anyway, I quickly got used to the casual tone and a quick grep provides
the missing context. What's really bad is the reliance on word order.

A sprintf on %s is good
"The email address '%s' is not found"

Telegram style with colon at the end is bearable
"Sorry, ths story is assigned to this topic:"

Concatenating words to build sentences is evil:
" record deleted"

> As Open Source code matures it is important to use language like
> "Unknown Error" which although it is much more boring is way easier
> to translate and understand.

Sure. But then OSS always starts with version 0.0.1 and improves.
The problem with a clean-up of messages is that trivial changes
cover a large range of files.


-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qplus.devel/200...    network.jabber....    debian.qa-packa...    encryption.gpg....    python.dabo.dev...    uclinux.devel/2...    science.mathema...    recreation.pesc...    kernel.ck/2004-...    mozilla.devel.e...    tex.latex.prosp...    ietf.multi6/200...    bbc.cvs/2002-11...    xfree86.newbie/...    jakarta.taglibs...    altlinux.hardwa...    comedi/2002-05/...    horde.bugs/2004...    games.diplomacy...    finance.e-gold....    web.dom.test-su...    lang.ruby.rails...    os.netbsd.devel...    video.gstreamer...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation