|
unsecured loans uk loan house insurance buy to let |
PHP User Agent Language Detection
This script detects your system language as reported by the requesting user agent. It uses the PHP $_SERVER["HTTP_ACCEPT_LANGUAGE"] method. Please note: the script will only be able to determine the languages sent by the user agent visiting the site; the actual system language[s] is as far as we know not accessible to this type of detection.
The script returns a two dimensional array of values. Each language has the following returned:
- Full language id – example: ‘en-us’
- Primary language id – example: ‘en’
- Full language string – example: ‘English (United States)
- Primary language string – example: ‘English’
Since some systems have many languages installed, the script returns an array of those languages, the first array in that series is the primary language, the second the secondary, and so on.
Download :
http://cid-446dea32ef7318f7.skydrive.live.com/self.aspx/.Public/php|_language|_detection.php
Notepad++ 5.1.3 - Free Source Code Editor
Notepad++ is a free source code editor (and Notepad replacement), which supports several programming languages, running under the MS Windows environment. It also gives the extra functionality to define a user’s own language for the syntax folding and syntax highlighting. You can print your source code in color. It allows a user to edit the different document in the same time, and even to edit the same document synchronizely in 2 different views. It supports full drag and drop.
The programming languages supported by Notepad++ are :
ASP, Ada, ASCII art, Assembly, AutoIt, BAT, C, C#, C++, Caml, CSS, doxygen, FORTRAN, HTML, Haskell, Java, JavaScript, KiXtart, Lisp, Lua, makefile, Matlab, Objective-C, Pascal, Perl, PHP, PostScript, Python, Ruby, Scheme, Unix Shell Script, Smalltalk, SQL, Tcl, TeX, Verilog, VHDL, VB/VBScript, XML.
This project, based on the Scintilla edit component (a very powerful editor component), written in C++ with pure win32 api and STL (that ensures the higher execution speed and smaller size of the program), is under the GPL Licence.
Continue Reading »
Add Language Translation to your Website
The most popular free Web-based language translation tools are offered by Google, AltaVista Babelfish and WorldLingo. Using these services, web audiences who speak English, French, Spanish, German, Italian, Portuguese, Dutch, Greek, Chinese (Traditional and Simplified), Japanese, Korean or Russian will be able to translate websites into their native language.
With over 65% of web users speaking a language other than English, providing the means of translating websites with English content to another language is very essential. Your multilingual website becomes more accessible and popular if users can translate your website content into their native language.
There are two methods to let your visitors easily translate your website:
Method ONE: All these services provide a translation box. To translate a webpage, you simply type in the URL of the website, choose the source and target language, and click the Translate button. [World Lingo, Google Translate, BabelFish Translate]
Method TWO: Here we will integrate the translation form in the website itself without requiring the user to visit any external page for translation. Your web visitors will be able to translate foreign language content into their native language by simply clicking the country flag icon. (Notice the top right corner of this page to see the various country flag icons). Simply cut and paste the code into your pages.
Continue Reading »
