Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

date localization 1) step

  • Loading branch information...
commit ef103813c717a48a5f96c62e2930e8319e4d694b 1 parent 843a5f1
@jarnix authored
Showing with 25 additions and 0 deletions.
  1. +25 −0 library/php/classes/Nf/Localization.php
View
25 library/php/classes/Nf/Localization.php
@@ -0,0 +1,25 @@
+<?php
+
+namespace Nf;
+
+class Localization extends Singleton
+{
+
+ /*
+ démarrage bootstrap : locale définie
+
+ */
+
+ protected static $_instance;
+
+ protected static $_currentLocale='fr_FR';
+
+ public static function normalizeLocale($str) {
+ $str=str_replace('-', '_', $str);
+ $arr=explode('_', $str);
+ $out=strtolower($arr[0]) . '_' . strtoupper($arr[1]);
+ return $out;
+ }
+
+
+}
Please sign in to comment.
Something went wrong with that request. Please try again.