diff options
author | Björn Schießle <schiessle@owncloud.com> | 2013-06-12 15:15:08 +0200 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2013-06-12 15:15:08 +0200 |
commit | b29e01d5cf4b1d149373e4b70e83510d7e7cd50f (patch) | |
tree | b1041186b97b317f7ab9c03e4f7b0c236aca3de6 /lib | |
parent | 918906f04287f12e10c812f719d205a0f2cd6a7b (diff) | |
download | nextcloud-server-b29e01d5cf4b1d149373e4b70e83510d7e7cd50f.tar.gz nextcloud-server-b29e01d5cf4b1d149373e4b70e83510d7e7cd50f.zip |
keep all strings in one place to make it easier to change them
Diffstat (limited to 'lib')
-rw-r--r-- | lib/defaults.php | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/lib/defaults.php b/lib/defaults.php new file mode 100644 index 00000000000..59f8d976fe9 --- /dev/null +++ b/lib/defaults.php @@ -0,0 +1,49 @@ +<?php + +class OC_Defaults { + + private static $communityEntity = "ownCloud"; + private static $communityName = "ownCloud"; + private static $communityBaseUrl = "http://owncloud.org"; + private static $communitySlogan = "web services under your control"; + + private static $enterpriseEntity = "ownCloud Inc."; + private static $enterpriseName = "ownCloud Enterprise Edition"; + private static $enterpriseBaseUrl = "https://owncloud.com"; + private static $enterpriseSlogan = "Your Cloud, Your Data, Your Way!"; + + + public static function getBaseUrl() { + if (OC_Util::getEditionString() === '') { + return self::$communityBaseUrl; + } else { + return self::$enterpriseBaseUrl; + } + } + + public static function getName() { + if (OC_Util::getEditionString() === '') { + return self::$communityName; + } else { + return self::$enterpriseName; + } + } + + public static function getEntity() { + if (OC_Util::getEditionString() === '') { + return self::$communityEntity; + } else { + return self::$enterpriseEntity; + } + } + + public static function getSlogan() { + $l = OC_L10N::get('core'); + if (OC_Util::getEditionString() === '') { + return $l->t(self::$communitySlogan); + } else { + return self::$enterpriseSlogan; + } + } + +}
\ No newline at end of file |