forked from dr-dimitru/Lang-Switcher
-
Notifications
You must be signed in to change notification settings - Fork 1
PHP + MySQL Multi Language Switcher. Based on HTTP-headers, SESSION, COOKIE. Controlled by GET or POST requests.
License
veliovgroup/Lang-Switcher
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
---------------------|INSTALLATION|--------------------- Install: - Create table for languages like: +-----------+-------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-----------+-------------+------+-----+---------+----------------+ | id |int(11) | NO | PRI | | auto_increment | | lang |varchar(10) | YES | | NULL | | | fb_lang |varchar(10) | YES | | NULL | | | text_lang |varchar(20) | YES | | NULL | | +-----------+-------------+------+-----+---------+----------------+ !IMPORTANT: Connection to MySQL needs to be thru mysqli connector Or you may adopt code for other connector or DB type - Content of table must be like: +----+-------+---------+ | id | lang | fb_lang | +----+-------+---------+ | ru | ru_RU | Русский | | en | en_US | English | +----+-------+---------+ - Require_once lang_switcher.php at very top right after mysql connection setup on every page where you need to switch the language ============================|LICENSE|==================================== Copyright 2012 Veliov Group: Dmitriy A. Golev Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
About
PHP + MySQL Multi Language Switcher. Based on HTTP-headers, SESSION, COOKIE. Controlled by GET or POST requests.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published