PHP Multilanguage Class PHPMLCPHP Multilanguage Class PHPMLC
PHP Class to Implement Multilanguage Feature to WebsitePHP Multilanguage Class PHPMLC
PHP Class to Implement Multilanguage Feature to WebsiteOverview
PHP Multilanguage Class (PHPMLC) is a PHP class for adding multilanguage support to
php websites and scripts.
With the version 2, now it is possible to translate dynamic values that are stored in the database on the fly using
google translate api.
With the administration panel it is easy to manage languages and translations of the website.
Public Methods
- __construct()
- getDBConn()
- getLastErrorMessage()
- init()
- fetchActiveLanguages()
- setCurrentLanguage()
- setAutoCreateNonExistingKeys()
- selectDefaultLanguage()
- selectLanguageFromGetParameter()
- getActiveLanguages()
- getActiveLanguageDetails()
- getCurrentLanguage()
- getDefaultLanguageCode()
- getCurrentLanguageCode()
- getLanguageName()
- fetchKey()
- updateKeyDynamicSourceHashFromSourceTranslation()
- createKey()
- deleteKey()
- doesTranslationKeyExist()
- getDynamic()
- get()
- set()
- delete()
- fetch()
- setGoogleTranslateApiKey()
- translate()
- makeRequest()
- makePostRequest()
- All public methods are documented.
Demo
You can access online demo with the following links:
Please use following credentials to login admin panel:
username: admin
password: password
Please note that no changes are allowed in the demo mode.
Documentation
PHP Multilanguage Class (PHPMLC) comes with full documentation.
Online documentation is available.
Class Requirements
- PHP 5.2+
- SQLite 3
- curl extension to consume google translate api
Features
- Easy-to-implement, Fully Documented, Advanced PHP Class
- Support for Google Translate API
- Support for Dynamic Translations
- Predefined 111 Languages Supported By Google Translate API
- Usage of SQLite database for Mobility
- Fast Algorithm
- Support for custom $_GET parameter to Switch Language
Requirements
- PHP version 5.2+
- SQLite 3+
- PHP cURL support should be active on webserver.
Instructions
Full documentation is included in package.
Online documentation is also available.
Other items by this author
Category | Scripts & Code / PHP Scripts / Miscellaneous |
First release | 7 June 2021 |
Last update | 21 July 2021 |
Software version | PHP 7.0, PHP 7.1, PHP 7.2, PHP 7.3, PHP 7.4, PHP 8.0, PHP 5.2, PHP 5.3, PHP 5.4, PHP 5.5, PHP 5.6 |
Files included | .php, .css, .html, .db, Javascript .js |
Tags | translation, localization, multilanguage, internationalization, dynamic translation, google translate api, multilingual website, php class, multiple language support |