1: <?php
2: /**
3: * PHP OpenCloud library.
4: *
5: * @copyright 2013 Rackspace Hosting, Inc. See LICENSE for information.
6: * @license https://www.apache.org/licenses/LICENSE-2.0
7: * @author Glen Campbell <glen.campbell@rackspace.com>
8: * @author Jamie Hannaford <jamie.hannaford@rackspace.com>
9: */
10:
11: namespace OpenCloud\Common;
12:
13: class Lang
14: {
15:
16: public static function translate($word = null)
17: {
18: return $word;
19: }
20:
21: public static function noslash($str)
22: {
23: while ($str && (substr($str, -1) == '/')) {
24: $str = substr($str, 0, strlen($str) - 1);
25: }
26: return $str;
27: }
28:
29: }
30: