• Home
  • Most Popular
  • Submit
  • About Us
  • Contact Us

Softpile

Free Downloads

Categories
  • Home
  • Most Popular
  • Communications
  • Desktop
  • Games & Entertainment
  • Graphic Apps
  • Network & Internet
  • Security & Privacy
  • System Utilities
Alternative to itextsharp 2022.11.10347
IronPDF offers an itextsharp alternative for HTML to PDF conversion with C# code examples, documentation, and ...
VShell Server for Linux and Mac 4.8
VShell is a versatile and secure file transfer server that supports multiple protocols and is compatible ...
PDF Studio PDF Editor for Linux 2022
PDF Studio is a cost-effective PDF editor that delivers full compatibility with the PDF Standard. It's ...
VQ Probe for Linux 1.5
VQ Probe is a comprehensive software tool that enables objective and subjective video quality analysis. The ...
Resilient Server 2.3
This Debian GNU/Linux (Buster) based software has a customized partitioning scheme that enhances robustness against filesystem ...
Valentina Studio for Linux 9.6
Valentina Studio is a cross-platform GUI manager for Mac, Windows, and Linux. It allows users to ...
VPN Lifeguard for Linux 1.0.58
The software monitors VPN connection and automatically terminates apps during connection loss, re-establishes the connection and ...
G_Viewer 0.84
G_Viewer is a Linux software that serves as both a file system and photo/image viewer. It ...
Checksome File Hash Tool for Linux 1.1
This software allows for the generation and verification of file hashes. It is a quick and ...
KeyWrangler Password Manager for Linux 1.2
A password management software that is secure, offline and extensible. It offers military-grade encryption to protect ...
Home Linux FLP-i18n Download

FLP-i18n

April 18, 2005
FLP-i18n is a PHP class software that enables internationalization for web applications.
Version 2.1b2
License Other
Platform Linux
Supported Languages English
Homepage sourceforge.net
Developed by flaimo
If you're looking to manage multilanguage webpages more easily, i18n is the solution you need. With its collection of PHP classes, the i18n package provides a range of features for internationalization. The translation strings can be stored in flat text files, special Gettext files (precompiled translation files), or a MySQL database, making it an incredibly versatile tool.

i18n works independently from PHP's setlocale function, but it's important to start and end your scripts with ob_start(); session_start(); and ob_end_flush(); to avoid any issues. Once you have set up your pages correctly, you can start using the package.

The language class is an excellent place to start. Its purpose is to determine the preferred locale of the user by looking at the HTTP_ACCEPT_LANGUAGE header and the user's IP address. Creating a new object is simple; you just include('class.Language.inc.php'); and $lg = new Language();. From there, you can get your information using the various methods provided. For example, if the user has set their browser to "German – Austria" (de-at), you can use $lg->getLocale() to output de_at (the hyphen is replaced with an underscore), $lg->getLang() to output de, and $lg->getCountry() to output at. The package also allows you to get all locales, all languages, or all countries with the getUserRawArray(), getUserLangArray(), and getUserCountryArray() methods, respectively.

Of course, there are situations where the user hasn't set any specific country code, or no locale information could be found. In these cases, the default settings come into play. These are defined in the i18n_settings.ini file and can be retrieved using $lg->getDefaultLocale(), $lg->getDefaultLanguage(), and $lg->getDefaultCountry(). The i18n_settings.ini file allows you to customize many settings besides the default values, including the method for getting the translations, the extensions for the translation files, the database connection settings, and whether or not translation errors should be shown.

Finally, if you need to force a specific locale to override all other locale sources, you can use $lg_gb = new Language('en_gb'). With all these features, i18n is an excellent choice for anyone looking to manage multilanguage webpages effectively.
What's New

Version 2.1b2: N/A

Free Download 205K
336
  • Share on:

Most Popular

  1. Quicksilver Forums 1.4.2
    155
  2. Dvgrab 3.4
    95
  3. DynVPN 1.0
    82
  4. CherryTV 0.1
    80
  5. SlideMap 1.2.2
    75
  6. porm r2
    70
  7. Hills 2.0
    70
  8. crick-info 1.0
    69
  9. fuseftp 0.8
    68
  10. Swiftfox 3.0b5pre-2
    67

Related Downloads

Battlefield 2142 Linux Dedicated Server
The Battlefield 2142 Linux Dedicated Server is designed for Linux operating systems ...
smtpproxy
The SMTProxy project functions as an intermediate agent for SMTP email, offering ...
git-svn-helpers
Simplify git-svn with easy-to-use command-line tools.
Ext2 compression extension
This software is a transparent ext2 file and directory compression tool that ...
Portage
"Gentoo's standout contribution to software management is Portage." (10 words- Can be ...
Geany
Geany is a GTK2 toolkit-based text editor that functions as an integrated ...
Instrument Element
A software component that provides cloud and/or grid capabilities for distributed computing, ...
Fido
Fido is a free and open-source program designed to create a scheduled ...
HalloweenSpecial
This software features a Halloween colored theme to enhance the look and ...
Normalize
"Normalize" is a software that equalizes the volume of audio files to ...
Copyright © 1999-2025 Softpile Free Downloads
  • Most Popular
  • Submit
  • About Us
  • Contact Us
  • Privacy Policy
  • Disclaimer
  • Terms of Use

Can we use your data to tailor ads for you?

Our partners will collect data and use cookies for ad personalization and measurement.

By choosing "I agree", closing this pop-up or clicking on any element on the page, you agree to the use of cookies to help us provide you with a better user experience.

Learn how Softpile and our partners collect and use data.

You can change your choice at any time in our privacy center.

Cookie Settings

Our website stores four types of cookies. At any time you can choose which cookies you accept and which you refuse. You can read more about what cookies are and what types of cookies we store in our Cookie Policy.

are necessary for technical reasons. Without them, this website may not function properly.

are necessary for specific functionality on the website. Without them, some features may be disabled.

allow us to analyse website use and to improve the visitor's experience.

allow us to personalise your experience and to send you relevant content and offers, on this website and other websites.