stargeek
PHP news website logo.
home    PHP scripts    articles    seo tools    links    search    contact    shop    realtors


Set your own language preference







Set your own language preference

Set your own language preference 03/11/2003 01:22 AM

Starting from today, your browser's "Accept Language" setting is also honored on language sensitive pages on the php.net site. If you would like to get to the documentation page of echo for example, you can use the /echo shortcut on all mirror sites, if your browser is set to provide your language preference information to the server. This also makes the PHP error message links point to the documentation in your preferred language. You can set your preferences under Edit/Preferences/Navigator/Languages in Mozilla, and under Tools/Internet Options/Languages in Internet Explorer. This will probably also enhance your web experience on sites providing translated content.




This is a GrokNews Entry: (what is grok?)





Similar Items

Set your own language preference

Grok Headline matches for Set your own language preference

10.3: A fix for preference settings that
don't seem to stick


10.3: A fix for preference settings that
don't seem to stick
01/27/2004 11:31 AM
I discovered that certain settings within Bluetooth preferences and iChat preferences, amongst other apps, sometimes weren't sticking past two or three reboots. After much thinking and playing, I discovered the answer: FileV...

More Internet Preference Pane


More Internet Preference Pane 05/19/2004 06:01 AM
More Internet Preference Pane .. MoreInternet from MonekyFood .. where to get the fix

monkeyfood.com/software/moreInternet
track this site | 6 links


Notes and Tips: A9 Preference Tip


Notes and Tips: A9 Preference Tip 09/22/2004 10:12 AM
Watch out for the unfiltered default search in Amazon's A9 service. (The service brings an extra discount for Amazon purchases).

Print It! gets color preference tweaks


Print It! gets color preference tweaks 04/27/2004 06:09 AM
MacEase has updated Print It!, the printing utility for Mac OS X, to version 1.1...

Scripting the International preference
pane


Scripting the International preference
pane
07/12/2004 07:29 AM
Recently, I had a need at work for an AppleScript to toggle between the US and UK number formats, located in the "International" Preference Pane under the "Formats" section. Well, actually, my boss had a need. Which, of cour...

Temporarily override iChat away message
preference


Temporarily override iChat away message
preference
12/27/2003 05:25 PM
iChat has a setting as to whether or not you wish it to remember your custom "away" messages. You reach this setting by clicking on the "Available" message below your name at the top of the Buddy List window, and then selecti...

10.3: Use Jaguar's Internet preference
pane in Panther


10.3: Use Jaguar's Internet preference
pane in Panther
11/11/2003 11:37 AM
Lately I've heard a lot of complaint from Panther users about Apple's decision to move the Default Web Browser and Default Mail Reader settings out of the Internet preference pane and into Safari and Mail's application prefer...

Hand preference decided in the womb
(Reuters)


Hand preference decided in the womb
(Reuters)
07/21/2004 04:18 PM
Reuters - Whether a person will be right-handed or left-handed could be decided early in the womb when the foetus is about 10 weeks old.

Preferential Treatment - Test XML
preference files


Preferential Treatment - Test XML
preference files
06/23/2004 09:31 AM
The macosxhints Rating:[Score: 9 out of 10]Developer: Jonathan Nathan [Click on Preferential Treatment in left frame] Price: Donationware / Open source One of the subtle causes of OS X crashes and behavioral oddities is corru...

Record preference settings for easier
future rebuilds


Record preference settings for easier
future rebuilds
12/28/2004 10:47 AM
I wish to offer a specific hint that I created for Microsoft Office preferences and tailored to preferences for other applications. When Word, Excel or Entourage gets corrupted and nothing else seems to work, trashing a numbe...

Krugman: In reality, all infidels
probably look alike to the terrorists,
but if they do have a preference,
nothing in Mr. Bush's record would make
them unhappy at the prospect of four
more years


Krugman: In reality, all infidels
probably look alike to the terrorists,
but if they do have a preference,
nothing in Mr. Bush's record would make
them unhappy at the prospect of four
more years
07/21/2004 09:42 AM
everybody knows .. points out .. Krugman .. column

nytimes.com/2004/07/20/opinion/20krug.html?hp
track this site | 7 links


Turn tabbed preference panes into
individual panes


Turn tabbed preference panes into
individual panes
04/15/2004 11:43 AM
Various system preference panes in Panther contain tabs. For example, the International panel consists of three tabs: Language, Formats, Input Menu. If you'd find it more convenient to access these panels separately, you can ...

Language-XSB-0.14


Language-XSB-0.14 11/04/2003 06:04 PM

Is my language really better than yours?


Is my language really better than yours? 01/07/2004 05:36 PM
The "my language is better than yours"  diatribe is perhaps one of the oldest forms of communication among developers in existence. I can remember these discussions as far back as I remember knowing at least another person capable to write...

Language Map USA


Language Map USA 06/23/2004 01:53 PM
Modern Language Association Language Map of the USA.

C language API for TWS


C language API for TWS 04/08/2005 12:23 PM
version 1 release candidate 1 available

The Data Language 0.8.4


The Data Language 0.8.4 09/09/2004 01:26 AM
An Interactive Data Language-compatible incremental compiler.

The Data Language 0.8.3


The Data Language 0.8.3 07/28/2004 04:32 AM
An Interactive Data Language-compatible incremental compiler.

The Qu Programming Language 1.00


The Qu Programming Language 1.00 09/06/2004 02:40 PM
A full-featured object oriented programming language.

Kew programming language


Kew programming language 01/23/2004 07:36 PM
Kew 0.2.X roadmap

Erc programming language


Erc programming language 12/30/2004 04:24 PM
Description of link-orientation

Just Another Interpreted Language


Just Another Interpreted Language 05/07/2004 03:06 PM
libmemory-0.0-alpha1 released

php|architect: Is my language better
than yours?


php|architect: Is my language better
than yours?
01/07/2004 02:51 PM
The php|architect blog has a very interesting posting this morning dealing with the ever-present war: Is my language really better than yours?

GDL - GNU Data Language


GDL - GNU Data Language 04/14/2004 07:34 AM
GDL 0.7.2 released

The Data Language 0.8.5


The Data Language 0.8.5 09/14/2004 02:37 PM
An Interactive Data Language-compatible incremental compiler.

Learn a language on your PC


Learn a language on your PC 06/15/2004 10:00 AM
PC Plus UK Jun 15 2004 2:30PM GMT

Language-Haskell-0.01


Language-Haskell-0.01 12/25/2004 07:29 PM

Language-SIOD-0.01


Language-SIOD-0.01 12/25/2004 07:29 PM

Language-Zcode-0.8


Language-Zcode-0.8 09/15/2004 05:58 AM

XL Programming Language


XL Programming Language 09/25/2004 03:55 PM
XL Compiler version 0

Language Learning


Language Learning 04/20/2004 04:40 AM
LangLear 0.4.5 released

The Qu Programming Language 1.01


The Qu Programming Language 1.01 09/16/2004 09:22 PM
A full-featured object oriented programming language.

the language boom


the language boom 12/07/2003 10:34 AM
Language tree rooted in Turkey.

c star language


c star language 04/17/2004 07:34 AM
C Star Web Site

SMS SUS FAQ: Language Packs


SMS SUS FAQ: Language Packs 06/29/2004 05:07 PM

Smarty as a "Sub-Language"


Smarty as a "Sub-Language" 03/22/2005 04:31 PM

I've been spending some time working with Smarty lately. This is ostensibly a "templating language" for PHP. But I think it goes beyond that. I assert that Smarty has become a sub-language all by itself.

(Update: I thought of a much better name for this: "sand-boxed PHP." That's what Smarty is — a sandbox into which you can release as much or as little PHP functionality as you want.)

First of all, for the record, Smarty is astonishingly well-done. Joe tried to get me to use it for about a year, and I resisted because I've hated most templating languages I had worked with. (Lately, Joe is bugging me to try Rails, so I'm sure I'll do that about a year from now. I'm usually about a year behind Joe.)

I've spent just two weeks or so with Smarty, and I'll never, ever go back. It's one of those rare things that was written the way you would have written it if you had all the time in the world and were a lot smarter than you actually are.

What I love about Smarty is the extensibility. You can take any logic and wrap it up into a function or a modifier and expose it to Smarty, so it can be used in templates. Anything — if you can write it in PHP, you can reduce and simplify it down to a tag in Smarty.

This means that you could essentially write a new programming language in Smarty — a language that runs within PHP. Smarty already includes v ariables, flow control, several built-in modifier s and functions, and an i nclude system that's essentially a way to create user-defined functions.

Once you start wrapping up some advanced functionality into Smarty tags, you could create an entire language, teach your template developers how to use it, and they'd never know they were actually using PHP unless you told them. They'd essentially be "programming" in a sub-language that runs inside of PHP. (If they ever ask you what language you're teaching them, just string three letters together — "RTI" or "DBN" or something. They'll buy it.)

Let's consider ColdFusion, which is the language we would come the closest to if we pushed Smarty as far as it could go. This code in ColdFusion pulls a recordset, loops through it, and prints everything out.

<cfquery name="news" datasource="news">
  SELECT * FROM news
</cfquery>

<cfoutput query="news">
  #news.title#
  <br>
</cfoutput>

Now, here's the same thing in a Smarty template:

{query name="news"}
  SELECT * FROM news
{/query}

{foreach from=$news item=article}
  {$article.title}
  <br>
{/foreach}

All this took was a custom, 10-line blo ck function (written like this) that allows the template author to provide the SQL statement to be executed and returns a two-dimensional array. (Before you send the hate mail, yes I know this is wrong. I know this is a perversion of everything Smarty is supposed to do. I'm just trying to make a point here.)

So Smarty can be made to function very much like ColdFusion. It's not hard to take this further. Assign the $_GET and $_POST variables, and you can provide some dynamic functionality. This assignment:

$smarty->assign('_get', $_GET);

Will let you do this in the above template:

{query name="news"}
  SELECT * FROM news WHERE title LIKE '%{$_get.q}%'
{/query}

Now template authors can create a mini-app that searches a database table. It's not hard to see how you could make scripts to let them update tables as well.

But, you may say, Smarty has to be invoked from a PHP page, so the templates cannot be URL-addressable. True, but you can automate this. You can just route all incoming requests to the same PHP page, like this:

AliasMatch ^.*$ /template_loader.php

Then, in that file, do something like this:

$smarty->display($_SERVER['REQUEST_URI']);

This will load whatever template was called in the (fake) URL. So now template authors can start stringing templates together. Before you know it, they've gone and built a simple app. By themselves. Without you. In a language that you gave them. That runs inside of — and is essentially controlled by — PHP.

Your programming environment has now been split into a "main" language and a "sub" language, both of which you have control over. You can give your template authors as much or as little functionality as you want (you "wrote" the language, remember). They can solve as many problems as they can with what you've given them. For other problems, you can tackle them in "real" PHP and just provide the result, or you can encapsulate the algorithm and expose it to Smarty via a function or modifer.

Is this a good thing? I can't decide. But it sure is interesting, ain't it?


OCW Language and Interpreter


OCW Language and Interpreter 06/17/2004 05:52 PM
Porting to C nearly complete

MIND YOUR LANGUAGE


MIND YOUR LANGUAGE 02/06/2003 10:45 AM
When size does matter: Google’s superiority is under threat, writes Chris Sherman’ it said in the Guardian. Phnaah, phnaah! ...

Language-MzScheme-0.08


Language-MzScheme-0.08 06/15/2004 06:58 AM

Grok Description matches for Set your own language preference
GrokA matches for Set your own language preference

Safari 1.3 has a JavaScript Console


Safari 1.3 has a JavaScript Console 04/16/2005 02:12 PM

My single biggest complaint about Safari in the past has been its terrible support for JavaScript debugging. Safari 1.3 has just been released, and tucked away in the Debug menu is a brand new JavaScript console option. It's not as good as the Firefox equivalent (it throws up far too many "Undefined value, line: 0" errors for my liking) but it's a big step in the right direction.


Accept Software Corporation Announces
New Accept Planner 3 Release


Accept Software Corporation Announces
New Accept Planner 3 Release
03/28/2005 03:55 AM
New version of Accept Planner 3 enterprise product planning solution announced By Accept Software Corporation [PRWEB Mar 28, 2005]

Blogger Help : Why do links on
bl0gger.com (and in comments) redirect
through google.com and bl0gger.com?


Blogger Help : Why do links on
bl0gger.com (and in comments) redirect
through google.com and bl0gger.com?
05/11/2004 04:57 AM
Why do links on blogger.com (and in comments) redirect through google.com and blogger.com? .. protect their hosted blogs against comment spam .. s'explique sur les redirections .. a little help doc

help.blogger.com/bin/answer.py?answer=808
track this site | 7 links


Safari Magic 1.0 adds numerous tools to
Safari


Safari Magic 1.0 adds numerous tools to
Safari
07/20/2004 02:43 AM
Stephen Becker has announced the release of Safari Magic 1.0, a utility which adds several tools to Safari...

When Would You Accept DRM?


When Would You Accept DRM? 03/23/2005 12:43 PM

okay now i know about you you will never
accept anything that is good


okay now i know about you you will never
accept anything that is good
08/31/2004 02:32 AM
TechTree Aug 31 2004 6:27AM GMT

I should just accept Murphy as my last
name


I should just accept Murphy as my last
name
07/22/2004 09:53 PM
Right this very minute I'm suppose to be here but due to a combination of a dead cell phone, issues...

If You Can't Accept Quarks...


If You Can't Accept Quarks... 10/28/2003 11:07 PM

This is one of the funniest e-mails I've seen in awhile:

"Compared to anything that is likely to come out of this group (or any other ontology group in the world, for that matter), quarks are on a rock solid foundation."

Sometimes these SUO discussions read like a Beckett play.  The struggle between clarity and ambiguity becomes absurd and leads to some rewarding punch lines.


US will accept Israel settlements


US will accept Israel settlements 03/25/2005 11:15 AM
The US expects Israel to retain control over large settlements in the West Bank, says the US ambassador.

you accept the possibility that you
could get fired for it


you accept the possibility that you
could get fired for it
05/30/2004 05:51 PM
a Harvard office administrator .. Online Weblog Leads To Firing .. The Harvard Crimson

thecrimson.com/today/article502702.html
track this site | 9 links


Xcode


Xcode 10/28/2003 11:06 PM
As a developer, the thing about Panther that most excites me is Xcode. It’s a major update to the developer tools.

Here’s James Duncan Davidson on this topic: T en Things I Dig About Xcode.

I upgraded to Panther yesterday; today I’m working on getting my various apps and frameworks to build on Xcode.

Qwest, Refusing to Accept No, Raises MCI
Bid


Qwest, Refusing to Accept No, Raises MCI
Bid
03/31/2005 10:58 PM
Signaling its refusal to back down from a two-month bidding war, Qwest Communications International has once again raised its offer for MCI.

Google video to accept submissions


Google video to accept submissions 04/04/2005 07:23 PM
SAN FRANCISCO - Google's video search engine may soon take you to your neighbors' home movies. Google is about to start accepting video content from the public for its Google Video service, a system now in public beta testing that lets anyone search a variety of TV clips by keyword. The service returns excerpts of show transcripts -- grabbed from close-captioning feeds -- and still images captured from the shows' footage, but it doesn't provide actual video clips that users can play back. "In the next few days we're actually going to start taking video submissions from people, and we're not quite sure what we're going to get, but we decided we'd try this experiment," said Larry Page, Google's co-founder and president for products said on Monday at a panel discussion at the National Cable Television Association (NCTA) National Show in San Francisco. A large audience gathered to see Page and other IT and entertainment executives burst into laughter. Page didn't provide any other details of the plan, but Google spokesman Nate Tyler said Monday that more information would be available in a few days. Page also drew loud applause when he said he had recently switched from DSL (digital subscriber line) to a cable modem and found a big speed boost. The five executives agreed that technology is transforming the way the public consumes information and entertainment and that cable operators have a good opportunity to benefit from the changes. Time-shifting, online content downloading and the proliferation of new mobile devices such as Apple Computer's iPod and Sony's PlayStation Portable are among the forces disrupting traditional cable TV and other programmed entertainment sources, they said. Also during the panel, Cisco Systems President and Chief Executive Officer (CEO) John Chambers said he believes more consolidation is necessary in the U.S. service provider industry. "Too much competition is just as bad as too little," said Chambers, who heads the dominant provider of data network backbone equipment and warned of the need to build out the nation's broadband infrastructure for global competitiveness. Also participating on the panel were Jeffrey Katzenberg, film producer and co-founder of DreamWorks, Jonathan Miller, chairman and chief executive officer of America Online and Brian Roberts, chairman and CEO of Comcast.

Kerry to Accept Nomination at Convention
(AP)


Kerry to Accept Nomination at Convention
(AP)
05/26/2004 04:30 PM
AP - Bowing to pressure, John Kerry decided Wednesday to accept the nomination at the Democratic presidential convention in July, scuttling a plan to delay the formality so he could narrow President Bush's public money advantage.

Aventis Board Said to Accept Takeover
Bid


Aventis Board Said to Accept Takeover
Bid
04/25/2004 07:17 PM
The French-German drug company Aventis accepted a sweetened offer from once-hostile bidder Sanofi-Synthélabo, in a deal that valued Aventis at 55 $65 billion.

Web-Users Soon Will Be Able to Accept
Calls Over Internet


Web-Users Soon Will Be Able to Accept
Calls Over Internet
01/28/2004 05:24 AM
Digital Chosunilbo Jan 28 2004 9:01AM GMT

Verizon staff accept redundancy


Verizon staff accept redundancy 11/19/2003 11:50 AM
Computer Weekly Nov 19 2003 9:22AM ET

Online Stores That Accept Checks


Online Stores That Accept Checks 07/06/2004 05:27 AM
As more people worry about online credit card fraud and identity theft, while e-commerce providers worry about attracting new users, some are going to a much more old fashioned method of accepting payment: they're taking a checks. With a company named I4 Commerce acting as the middleman, many e-commerce sites now offer a "bill me later" option. I4 Commerce does a quick instant credit check and then allows the purchase (if the credit check goes smoothly). The buyer then receives an invoice a few days later which they can pay by check. I4 pays the merchant directly, so they don't have to worry if the individual pays or not. I4 claims that a very low rate (4%) default on their payments, but as one person in the article notes, that may just be because scammers haven't realized the potential yet. Also, the article doesn't note how I4 makes its money, and it seems likely that they're charging interest on these "bill me later" loans (as well as a transaction fee from the merchants using their system). Without any of the details being provided, it sounds a little questionable. There are an awful lot of "payday loan" type places that offer easy loans with ridiculously onerous terms. It's possible that I4's terms are perfectly reasonable (and the low default rate suggests that's true), but it's odd that the article doesn't clearly state what they are. Checking out their site turns up that there is, indeed, a 17.99% interest rate, but only for customers who choose not to pay the full amount within 25 days. So, the reality of this isn't so much that online stores are accepting checks, but that they're accepting "instant credit" provided by this one company.

Verizon says 21,600 employees accept
buyout


Verizon says 21,600 employees accept
buyout
11/18/2003 05:37 PM
The company doesn't yet know how many of its IT managers accepted the voluntary buyouts, which are designed to save it money.

Civil servants accept pay deal


Civil servants accept pay deal 09/13/2004 10:54 AM
Civil servants in Northern Ireland accept a pay offer from the government, voting against an all-out strike.

Goodwill Does Not Accept Mainframe
Computers


Goodwill Does Not Accept Mainframe
Computers
06/22/2005 02:06 AM
After cleaning out my closet, I dropped off a few bags of clothes at Goodwill over the weekend. Today I was wondering if I could donate a few other things I no longer want or need, so I headed over to the web site for Goodwill Industries of Silicon Valley and found their donation agreement page, which lists the items they do an do not accept. I'm reading along the "do not accept" list and it all seems pretty...

Kerry to accept Democratic ticket


Kerry to accept Democratic ticket 07/29/2004 09:59 AM
John Kerry is to wrap up the Democratic Party's convention accepting its nomination to challenge George W Bush.

Chavez to accept petition ruling


Chavez to accept petition ruling 01/27/2004 10:22 AM
Venezuela's president says he will submit to a referendum on his rule if election officials authorise it.

Palestinians Accept Conditional Truce


Palestinians Accept Conditional Truce 12/07/2003 07:10 AM
Reuters via Wired News Dec 7 2003 6:39AM ET

Bush May Accept a Settlement Plan


Bush May Accept a Settlement Plan 04/13/2004 09:08 PM
President Bush is planning to recognize Israel's right to retain some settlements in the West Bank as part of any peace accord with the Palestinians.

Apple Would Never Accept Dell’s Offer


Apple Would Never Accept Dell’s Offer 06/17/2005 03:45 PM

Report: Keyes Will Accept GOP Nomination
(AP)


Report: Keyes Will Accept GOP Nomination
(AP)
08/06/2004 05:52 AM
AP - Former presidential hopeful and talk-show host Alan Keyes has agreed to become Illinois Republicans' U.S. Senate candidate, according to a newspaper report.

Other News: Xcode 1.5


Other News: Xcode 1.5 08/05/2004 10:21 AM
AppleInsider says Xcode 1.5 is finished and due this week.

AppleScripting Xcode


AppleScripting Xcode 03/17/2005 03:38 AM
Rogue Amoeba: “Updating each one by hand, which I’ve done in the past, gets to be real painful after about the third one. Luckily, Xcode has an amazingly complete AppleScript dictionary.”

Apple: Xcode 1.5


Apple: Xcode 1.5 08/06/2004 11:37 AM
Apple posts its Xcode 1.5 update for members of Apple Developer Connection.

Set your own language preference

The following phrases have been identified by the grok system as matching this entry: safari "accept-language" blogger diacritics xcode console

















Also check out:


Grok

Ipod Porn on the
Rise

Brief Abstract of
Wikipedia's
Mesothelioma Cancer
page

Get first aid
instructions in your
cell phone

IE is crap
JSPWiki gains
podcasting support

Grant Program
I'm in so much
trouble (06:47 PM)

Reign of what?
(12:01 PM)

Konfabulicious
(06:21 PM)

Camino 0.7 (08:16
PM)

Group Looks to Forge
Anti-Spam Standards

NVIDIA, ATI Release
Dueling Graphics
Chips

Massive UT Hack
Leaks SSN Data

Q&A: PalmSource CEO
David Nagel

Microsoft Launches
Second Office Beta

OASIS Aims to
Conquer Web Services
Issue

BEA Offloads Rapid
App Software

Contiki Bringing New
Life to 8-bit
Systems?

Financial Carrot for
PHP Developers

W3C Team Talks in
March

Web Services
Description Language
(WSDL) 1.2 Working
Draft Published

Call for
Participation: W3C
Teleconference on
Collaboration

China International
Forum on WWW's
Development
Announced

W3C Hosts Technical
Plenary and
All-Group Meeting

MS shuts down site
over XP P2P leak,
but keeps on leaking

Google is expanding
its advertising
effort

France-bashing again
a popular pastime

Quiet achievers
plough on in life's
fast lane

GuruNet Simplifies
Internet Searching

How to get your name
out on Web

GuruNet resource
tool surpasses
search engines

Roogle: RSS Search
Engine

10 years and
countless hours
online later,
experts say Internet
...

Less Google At
Roogle

Thwarting The Will
Of 'We The People'

Morning and Roogle
Metrics

A Day Without Google
New Google Spam
Fighting

Future Directions
Community News: The
php|architect Grant

phpPatterns: Testing
From the Inside Out

DynamicWebPages: New
Netcraft Stats on
PHP

Site News: RDF
Update

Community News:
Bringing the Outside
In?

Community News:
Automatic Extension
Creation?

Zend: A Week
Wouldn't Be A Week
Without It

DevArticles: Making
a Date with PHP

phpTraveller: Review
of Professional PHP4
XML

Community News:
Roogle is Your
RSS-Lovin' Friend

XForms Workshop
Underway 27-28
February

Google lands Web
search patent

The Lost Art of
Conversation -
Encouraging Contact
Online

I am Jeffrey Zeldman
DOM Level 3 Core,
Load and Save
Working Drafts
Published

New direction for
Overture

what is grok?