22 lines
284 B
PHP
22 lines
284 B
PHP
|
<?php
|
||
|
|
||
|
namespace OpenCloud\Common;
|
||
|
|
||
|
class Lang
|
||
|
{
|
||
|
|
||
|
public static function translate($word = null)
|
||
|
{
|
||
|
return $word;
|
||
|
}
|
||
|
|
||
|
public static function noslash($str)
|
||
|
{
|
||
|
while ($str && (substr($str, -1) == '/')) {
|
||
|
$str = substr($str, 0, strlen($str) - 1);
|
||
|
}
|
||
|
return $str;
|
||
|
}
|
||
|
|
||
|
}
|