Fix resource header, add version header
[gitphp.git] / include / Resource.class.php
blob:a/include/Resource.class.php -> blob:b/include/Resource.class.php
--- a/include/Resource.class.php
+++ b/include/Resource.class.php
@@ -16,6 +16,11 @@
  * Constant of the locale cookie in the user's browser
  */
 define('GITPHP_LOCALE_COOKIE', 'GitPHPLocale');
+
+/**
+ * Locale cookie lifetime
+ */
+define('GITPHP_LOCALE_COOKIE_LIFETIME', 60*60*24*365);		// 1 year
 
 /**
  * Resource factory class
@@ -118,6 +123,10 @@
 				return 'English';
 			case 'fr_FR':
 				return 'Français';
+			case 'de_DE':
+				return 'Deutsch';
+			case 'ru_RU':
+				return 'Русский';
 			case 'zz_Debug':
 				return 'Gibberish';
 		}

comments