[limb-svn] r6354 - in 3.x/trunk/limb: active_record fs i18n i18n/cli

svn at limb-project.com svn at limb-project.com
Mon Oct 1 22:05:32 MSD 2007


Author: pachanga
Date: 2007-10-01 22:05:31 +0400 (Mon, 01 Oct 2007)
New Revision: 6354
URL: http://fisheye.limb-project.com/changelog/limb/?cs=6354

Modified:
   3.x/trunk/limb/active_record/common.inc.php
   3.x/trunk/limb/fs/common.inc.php
   3.x/trunk/limb/i18n/cli/I18nCliCmd.class.php
   3.x/trunk/limb/i18n/common.inc.php
   3.x/trunk/limb/i18n/toolkit.inc.php
Log:
-- eol changes

Modified: 3.x/trunk/limb/active_record/common.inc.php
===================================================================
--- 3.x/trunk/limb/active_record/common.inc.php	2007-10-01 18:05:02 UTC (rev 6353)
+++ 3.x/trunk/limb/active_record/common.inc.php	2007-10-01 18:05:31 UTC (rev 6354)
@@ -1,19 +1,19 @@
-<?php
-/*
- * Limb PHP Framework
- *
- * @link http://limb-project.com
- * @copyright  Copyright &copy; 2004-2007 BIT(http://bit-creative.com)
- * @license    LGPL http://www.gnu.org/copyleft/lesser.html
- */
-
-/**
- * @package active_record
- * @version $Id$
- */
-require_once('limb/core/common.inc.php');
-require_once('limb/dbal/common.inc.php');
-require_once(dirname(__FILE__) . '/toolkit.inc.php');
-lmb_require('limb/active_record/src/lmbActiveRecord.class.php');
-
-
+<?php
+/*
+ * Limb PHP Framework
+ *
+ * @link http://limb-project.com
+ * @copyright  Copyright &copy; 2004-2007 BIT(http://bit-creative.com)
+ * @license    LGPL http://www.gnu.org/copyleft/lesser.html
+ */
+
+/**
+ * @package active_record
+ * @version $Id$
+ */
+require_once('limb/core/common.inc.php');
+require_once('limb/dbal/common.inc.php');
+require_once(dirname(__FILE__) . '/toolkit.inc.php');
+lmb_require('limb/active_record/src/lmbActiveRecord.class.php');
+
+

Modified: 3.x/trunk/limb/fs/common.inc.php
===================================================================
--- 3.x/trunk/limb/fs/common.inc.php	2007-10-01 18:05:02 UTC (rev 6353)
+++ 3.x/trunk/limb/fs/common.inc.php	2007-10-01 18:05:31 UTC (rev 6354)
@@ -1,16 +1,16 @@
-<?php
-/*
- * Limb PHP Framework
- *
- * @link http://limb-project.com
- * @copyright  Copyright &copy; 2004-2007 BIT(http://bit-creative.com)
- * @license    LGPL http://www.gnu.org/copyleft/lesser.html
- */
-
-/**
- * @package fs
- * @version $Id$
- */
-require_once('limb/core/common.inc.php');
-
-
+<?php
+/*
+ * Limb PHP Framework
+ *
+ * @link http://limb-project.com
+ * @copyright  Copyright &copy; 2004-2007 BIT(http://bit-creative.com)
+ * @license    LGPL http://www.gnu.org/copyleft/lesser.html
+ */
+
+/**
+ * @package fs
+ * @version $Id$
+ */
+require_once('limb/core/common.inc.php');
+
+

Modified: 3.x/trunk/limb/i18n/cli/I18nCliCmd.class.php
===================================================================
--- 3.x/trunk/limb/i18n/cli/I18nCliCmd.class.php	2007-10-01 18:05:02 UTC (rev 6353)
+++ 3.x/trunk/limb/i18n/cli/I18nCliCmd.class.php	2007-10-01 18:05:31 UTC (rev 6354)
@@ -10,11 +10,11 @@
 lmb_require('limb/i18n/src/translation/lmbDictionaryUpdater.class.php');
 lmb_require('limb/i18n/src/translation/lmbQtDictionaryBackend.class.php');
 
-/**
- * class I18nCliCmd.
- *
- * @package i18n
- * @version $Id$
+/**
+ * class I18nCliCmd.
+ *
+ * @package i18n
+ * @version $Id$
  */
 class I18nCliCmd extends lmbCliBaseCmd
 {

Modified: 3.x/trunk/limb/i18n/common.inc.php
===================================================================
--- 3.x/trunk/limb/i18n/common.inc.php	2007-10-01 18:05:02 UTC (rev 6353)
+++ 3.x/trunk/limb/i18n/common.inc.php	2007-10-01 18:05:31 UTC (rev 6354)
@@ -1,55 +1,55 @@
-<?php
-/*
- * Limb PHP Framework
- *
- * @link http://limb-project.com
- * @copyright  Copyright &copy; 2004-2007 BIT(http://bit-creative.com)
- * @license    LGPL http://www.gnu.org/copyleft/lesser.html
- */
-
-/**
- * @package i18n
- * @version $Id$
- */
-require_once('limb/core/common.inc.php');
-require_once(dirname(__FILE__) . '/toolkit.inc.php');
-
-function lmb_i18n($text, $arg1 = null, $arg2 = null)
-{
-  static $toolkit;
-
-  if(!$toolkit)
-    $toolkit = lmbToolkit :: instance();
-
-  return $toolkit->translate($text, $arg1, $arg2);
-}
-
-
-function lmb_translit_russian($input, $encoding = 'utf-8')
-{
-  $encoding = strtolower($encoding);
-  if($encoding != 'utf-8')
-    $input = iconv($encoding, 'utf-8', $input);
-
-  $arrRus = array('а', 'б', 'в', 'г', 'д', 'е', 'ё', 'ж', 'з', 'и', 'й', 'к', 'л', 'м',
-                  'н', 'о', 'п', 'р', 'с', 'т', 'у', 'ф', 'х', 'ц', 'ч', 'ш', 'щ', 'ь',
-                  'ы', 'ъ', 'э', 'ю', 'я',
-                  'А', 'Б', 'В', 'Г', 'Д', 'Е', 'Ё', 'Ж', 'З', 'И', 'Й', 'К', 'Л', 'М',
-                  'Н', 'О', 'П', 'Р', 'С', 'Т', 'У', 'Ф', 'Х', 'Ц', 'Ч', 'Ш', 'Щ', 'Ь',
-                  'Ы', 'Ъ', 'Э', 'Ю', 'Я');
-  $arrEng = array('a', 'b', 'v', 'g', 'd', 'e', 'jo', 'zh', 'z', 'i', 'y', 'k', 'l', 'm',
-                  'n', 'o', 'p', 'r', 's', 't', 'u', 'f', 'kh', 'c', 'ch', 'sh', 'sch', '',
-                  'y', '', 'e', 'yu', 'ya',
-                  'A', 'B', 'V', 'G', 'D', 'E', 'JO', 'ZH', 'Z', 'I', 'Y', 'K', 'L', 'M',
-                  'N', 'O', 'P', 'R', 'S', 'T', 'U', 'F', 'KH', 'C', 'CH', 'SH', 'SCH', '',
-                  'Y', '', 'E', 'YU', 'YA');
-
-  $result = str_replace($arrRus, $arrEng, $input);
-
-  if($encoding != 'utf-8')
-    return iconv('utf-8', $encoding, $result);
-  else
-    return $result;
-}
-
-
+<?php
+/*
+ * Limb PHP Framework
+ *
+ * @link http://limb-project.com
+ * @copyright  Copyright &copy; 2004-2007 BIT(http://bit-creative.com)
+ * @license    LGPL http://www.gnu.org/copyleft/lesser.html
+ */
+
+/**
+ * @package i18n
+ * @version $Id$
+ */
+require_once('limb/core/common.inc.php');
+require_once(dirname(__FILE__) . '/toolkit.inc.php');
+
+function lmb_i18n($text, $arg1 = null, $arg2 = null)
+{
+  static $toolkit;
+
+  if(!$toolkit)
+    $toolkit = lmbToolkit :: instance();
+
+  return $toolkit->translate($text, $arg1, $arg2);
+}
+
+
+function lmb_translit_russian($input, $encoding = 'utf-8')
+{
+  $encoding = strtolower($encoding);
+  if($encoding != 'utf-8')
+    $input = iconv($encoding, 'utf-8', $input);
+
+  $arrRus = array('а', 'б', 'в', 'г', 'д', 'е', 'ё', 'ж', 'з', 'и', 'й', 'к', 'л', 'м',
+                  'н', 'о', 'п', 'р', 'с', 'т', 'у', 'ф', 'х', 'ц', 'ч', 'ш', 'щ', 'ь',
+                  'ы', 'ъ', 'э', 'ю', 'я',
+                  'А', 'Б', 'В', 'Г', 'Д', 'Е', 'Ё', 'Ж', 'З', 'И', 'Й', 'К', 'Л', 'М',
+                  'Н', 'О', 'П', 'Р', 'С', 'Т', 'У', 'Ф', 'Х', 'Ц', 'Ч', 'Ш', 'Щ', 'Ь',
+                  'Ы', 'Ъ', 'Э', 'Ю', 'Я');
+  $arrEng = array('a', 'b', 'v', 'g', 'd', 'e', 'jo', 'zh', 'z', 'i', 'y', 'k', 'l', 'm',
+                  'n', 'o', 'p', 'r', 's', 't', 'u', 'f', 'kh', 'c', 'ch', 'sh', 'sch', '',
+                  'y', '', 'e', 'yu', 'ya',
+                  'A', 'B', 'V', 'G', 'D', 'E', 'JO', 'ZH', 'Z', 'I', 'Y', 'K', 'L', 'M',
+                  'N', 'O', 'P', 'R', 'S', 'T', 'U', 'F', 'KH', 'C', 'CH', 'SH', 'SCH', '',
+                  'Y', '', 'E', 'YU', 'YA');
+
+  $result = str_replace($arrRus, $arrEng, $input);
+
+  if($encoding != 'utf-8')
+    return iconv('utf-8', $encoding, $result);
+  else
+    return $result;
+}
+
+

Modified: 3.x/trunk/limb/i18n/toolkit.inc.php
===================================================================
--- 3.x/trunk/limb/i18n/toolkit.inc.php	2007-10-01 18:05:02 UTC (rev 6353)
+++ 3.x/trunk/limb/i18n/toolkit.inc.php	2007-10-01 18:05:31 UTC (rev 6354)
@@ -1,19 +1,19 @@
-<?php
-/*
- * Limb PHP Framework
- *
- * @link http://limb-project.com
- * @copyright  Copyright &copy; 2004-2007 BIT(http://bit-creative.com)
- * @license    LGPL http://www.gnu.org/copyleft/lesser.html
- */
-
-/**
- * @package i18n
- * @version $Id$
- */
-lmb_require('limb/toolkit/src/lmbToolkit.class.php');
-lmb_require('limb/i18n/src/toolkit/lmbI18NTools.class.php');
-lmb_require('limb/fs/toolkit.inc.php');
-lmbToolkit :: merge(new lmbI18NTools());
-
-
+<?php
+/*
+ * Limb PHP Framework
+ *
+ * @link http://limb-project.com
+ * @copyright  Copyright &copy; 2004-2007 BIT(http://bit-creative.com)
+ * @license    LGPL http://www.gnu.org/copyleft/lesser.html
+ */
+
+/**
+ * @package i18n
+ * @version $Id$
+ */
+lmb_require('limb/toolkit/src/lmbToolkit.class.php');
+lmb_require('limb/i18n/src/toolkit/lmbI18NTools.class.php');
+lmb_require('limb/fs/toolkit.inc.php');
+lmbToolkit :: merge(new lmbI18NTools());
+
+



More information about the limb-svn mailing list