qsos-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qsos-commits] qsos/apps/o3s lang.php


From: Raphaël Semeteys
Subject: [Qsos-commits] qsos/apps/o3s lang.php
Date: Sun, 17 May 2009 22:10:27 +0000

CVSROOT:        /sources/qsos
Module name:    qsos
Changes by:     Raphaël Semeteys <rsemeteys>    09/05/17 22:10:27

Added files:
        apps/o3s       : lang.php 

Log message:
        Include for localization

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qsos/apps/o3s/lang.php?cvsroot=qsos&rev=1.1

Patches:
Index: lang.php
===================================================================
RCS file: lang.php
diff -N lang.php
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ lang.php    17 May 2009 22:10:15 -0000      1.1
@@ -0,0 +1,32 @@
+<?php
+/*
+**  Copyright (C) 2009 Atos Origin 
+**
+**  Author: Raphael Semeteys <address@hidden>
+**
+**  This program is free software; you can redistribute it and/or modify
+**  it under the terms of the GNU General Public License as published by
+**  the Free Software Foundation; either version 2 of the License, or
+**  (at your option) any later version.
+**
+**  This program is distributed in the hope that it will be useful,
+**  but WITHOUT ANY WARRANTY; without even the implied warranty of
+**  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+**  GNU General Public License for more details.
+**
+**  You should have received a copy of the GNU General Public License
+**  along with this program; if not, write to the Free Software
+**  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  
USA
+**
+**
+** O3S
+** lang.php: language management
+**
+*/
+if (isset($_REQUEST['lang']) && in_array($_REQUEST['lang'], $supported_lang)) {
+  $lang = $_REQUEST['lang'];
+} else {
+  $lang = $default_lang;
+}
+include("locales/$lang.php");
+?>
\ No newline at end of file




reply via email to

[Prev in Thread] Current Thread [Next in Thread]