Ana Sayfa / Kod ve Scriptler / PHP Multilanguage Class PHPMLC

PHP Multilanguage Class PHPMLC

Web Sitelerine Çok Dilli Özellik Eklemek İçin PHP Sınıfı

  • Yayın tarihi7 Haziran 2021
  • Nerede çalışırPHP 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
  • Paket içeriği.php, .css, .html, .db, JavaScript .js
  • Son güncelleme21 Temmuz 2021
  • Canlı demoVar
PHP Multilanguage Class PHPMLC

Overview

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.