Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
adb7572c
Commit
adb7572c
authored
Nov 07, 2016
by
Vincent Petry
Committed by
GitHub
Nov 07, 2016
Browse files
Merge pull request #26547 from owncloud/kill-legacy-OC_OCS
Kill legacy OC_OCS and OC_L10N
parents
7822fb4b
b24904cc
Changes
35
Hide whitespace changes
Inline
Side-by-side
apps/dav/templates/exception.php
View file @
adb7572c
<?php
/** @var array $_ */
/** @var OC
_
L10N $l */
/** @var
\
OC
P\I
L10N $l */
style
(
'core'
,
[
'styles'
,
'header'
]);
?>
...
...
apps/encryption/templates/settings-admin.php
View file @
adb7572c
<?php
/** @var array $_ */
/** @var OC
_
L10N $l */
/** @var
\
OC
P\I
L10N $l */
script
(
'encryption'
,
'settings-admin'
);
script
(
'core'
,
'multiselect'
);
style
(
'encryption'
,
'settings-admin'
);
...
...
apps/encryption/templates/settings-personal.php
View file @
adb7572c
<?php
/** @var array $_ */
/** @var OC
_
L10N $l */
/** @var
\
OC
P\I
L10N $l */
script
(
'encryption'
,
'settings-personal'
);
script
(
'core'
,
'multiselect'
);
?>
...
...
apps/federatedfilesharing/templates/settings-admin.php
View file @
adb7572c
<?php
/** @var OC
_
L10N $l */
/** @var
\
OC
P\I
L10N $l */
/** @var array $_ */
script
(
'federatedfilesharing'
,
'settings-admin'
);
?>
...
...
apps/federatedfilesharing/templates/settings-personal.php
View file @
adb7572c
<?php
/** @var OC
_
L10N $l */
/** @var
\
OC
P\I
L10N $l */
/** @var array $_ */
script
(
'federatedfilesharing'
,
'settings-personal'
);
style
(
'federatedfilesharing'
,
'settings-personal'
);
...
...
apps/federation/templates/settings-admin.php
View file @
adb7572c
...
...
@@ -2,7 +2,7 @@
/** @var array $_ */
use
OCA\Federation\TrustedServers
;
/** @var OC
_
L10N $l */
/** @var
\
OC
P\I
L10N $l */
script
(
'federation'
,
'settings-admin'
);
style
(
'federation'
,
'settings-admin'
)
?>
...
...
apps/files/lib/Helper.php
View file @
adb7572c
...
...
@@ -44,7 +44,7 @@ class Helper {
public
static
function
buildFileStorageStatistics
(
$dir
)
{
// information about storage capacities
$storageInfo
=
\
OC_Helper
::
getStorageInfo
(
$dir
);
$l
=
new
\
OC_L10N
(
'files'
);
$l
=
\
OC
::
$server
->
getL10NFactory
()
->
get
(
'files'
);
$maxUploadFileSize
=
\
OCP\Util
::
maxUploadFilesize
(
$dir
,
$storageInfo
[
'free'
]);
$maxHumanFileSize
=
\
OCP\Util
::
humanFileSize
(
$maxUploadFileSize
);
$maxHumanFileSize
=
$l
->
t
(
'Upload (max. %s)'
,
[
$maxHumanFileSize
]);
...
...
apps/files/templates/index.php
View file @
adb7572c
<?php
/** @var $l OC
_
L10N */
?>
<?php
/** @var $l
\
OC
P\I
L10N */
?>
<?php
$_
[
'appNavigation'
]
->
printPage
();
?>
<div
id=
"app-content"
>
<?php
foreach
(
$_
[
'appContents'
]
as
$content
)
{
?>
...
...
apps/files/tests/ActivityTest.php
View file @
adb7572c
...
...
@@ -79,7 +79,7 @@ class ActivityTest extends TestCase {
$this
->
l10nFactory
=
$this
->
getMockBuilder
(
'OCP\L10N\IFactory'
)
->
disableOriginalConstructor
()
->
getMock
();
$deL10n
=
$this
->
getMockBuilder
(
'OC
_
L10N'
)
$deL10n
=
$this
->
getMockBuilder
(
'
\
OC
P\I
L10N'
)
->
disableOriginalConstructor
()
->
getMock
();
$deL10n
->
expects
(
$this
->
any
())
...
...
@@ -91,8 +91,8 @@ class ActivityTest extends TestCase {
$this
->
l10nFactory
->
expects
(
$this
->
any
())
->
method
(
'get'
)
->
willReturnMap
([
[
'files'
,
null
,
new
\
OC_L10N
(
'files'
,
'en'
)],
[
'files'
,
'en'
,
new
\
OC_L10N
(
'files'
,
'en'
)],
[
'files'
,
null
,
\
OC
::
$server
->
getL10NFactory
()
->
get
(
'files'
,
'en'
)],
[
'files'
,
'en'
,
\
OC
::
$server
->
getL10NFactory
()
->
get
(
'files'
,
'en'
)],
[
'files'
,
'de'
,
$deL10n
],
]);
...
...
apps/files/tests/Controller/ViewControllerTest.php
View file @
adb7572c
...
...
@@ -26,7 +26,6 @@ namespace OCA\Files\Tests\Controller;
use
OCA\Files\Controller\ViewController
;
use
OCP\AppFramework\Http
;
use
OCP\Files\NotFoundException
;
use
OCP\IUser
;
use
OCP\Template
;
use
Test\TestCase
;
...
...
@@ -47,27 +46,27 @@ use OCP\App\IAppManager;
* @package OCA\Files\Tests\Controller
*/
class
ViewControllerTest
extends
TestCase
{
/** @var IRequest */
/** @var IRequest
| \PHPUnit_Framework_MockObject_MockObject
*/
private
$request
;
/** @var IURLGenerator */
/** @var IURLGenerator
| \PHPUnit_Framework_MockObject_MockObject
*/
private
$urlGenerator
;
/** @var INavigationManager */
private
$navigationManager
;
/** @var IL10N */
private
$l10n
;
/** @var IConfig */
/** @var IConfig
| \PHPUnit_Framework_MockObject_MockObject
*/
private
$config
;
/** @var EventDispatcherInterface */
private
$eventDispatcher
;
/** @var ViewController */
/** @var ViewController
| \PHPUnit_Framework_MockObject_MockObject
*/
private
$viewController
;
/** @var IUser */
private
$user
;
/** @var IUserSession */
private
$userSession
;
/** @var IAppManager */
/** @var IAppManager
| \PHPUnit_Framework_MockObject_MockObject
*/
private
$appManager
;
/** @var Folder */
/** @var Folder
| \PHPUnit_Framework_MockObject_MockObject
*/
private
$rootFolder
;
public
function
setUp
()
{
...
...
@@ -190,7 +189,7 @@ class ViewControllerTest extends TestCase {
'appname'
=>
'files'
,
'script'
=>
'list.php'
,
'order'
=>
0
,
'name'
=>
new
\
OC_L10N_String
(
new
\
OC_L10N
(
'files'
),
'All files'
,
[]),
'name'
=>
new
\
OC_L10N_String
(
\
OC
::
$server
->
getL10NFactory
()
->
get
(
'files'
),
'All files'
,
[]),
'active'
=>
false
,
'icon'
=>
''
,
],
...
...
@@ -208,7 +207,7 @@ class ViewControllerTest extends TestCase {
'appname'
=>
'files_sharing'
,
'script'
=>
'list.php'
,
'order'
=>
10
,
'name'
=>
new
\
OC_L10N_String
(
new
\
OC_L10N
(
'files_sharing'
),
'Shared with you'
,
[]),
'name'
=>
new
\
OC_L10N_String
(
\
OC
::
$server
->
getL10NFactory
()
->
get
(
'files_sharing'
),
'Shared with you'
,
[]),
'active'
=>
false
,
'icon'
=>
''
,
],
...
...
@@ -217,7 +216,7 @@ class ViewControllerTest extends TestCase {
'appname'
=>
'files_sharing'
,
'script'
=>
'list.php'
,
'order'
=>
15
,
'name'
=>
new
\
OC_L10N_String
(
new
\
OC_L10N
(
'files_sharing'
),
'Shared with others'
,
[]),
'name'
=>
new
\
OC_L10N_String
(
\
OC
::
$server
->
getL10NFactory
()
->
get
(
'files_sharing'
),
'Shared with others'
,
[]),
'active'
=>
false
,
'icon'
=>
''
,
],
...
...
@@ -226,7 +225,7 @@ class ViewControllerTest extends TestCase {
'appname'
=>
'files_sharing'
,
'script'
=>
'list.php'
,
'order'
=>
20
,
'name'
=>
new
\
OC_L10N_String
(
new
\
OC_L10N
(
'files_sharing'
),
'Shared by link'
,
[]),
'name'
=>
new
\
OC_L10N_String
(
\
OC
::
$server
->
getL10NFactory
()
->
get
(
'files_sharing'
),
'Shared by link'
,
[]),
'active'
=>
false
,
'icon'
=>
''
,
],
...
...
@@ -235,7 +234,7 @@ class ViewControllerTest extends TestCase {
'appname'
=>
'systemtags'
,
'script'
=>
'list.php'
,
'order'
=>
25
,
'name'
=>
new
\
OC_L10N_String
(
new
\
OC_L10N
(
'systemtags'
),
'Tags'
,
[]),
'name'
=>
new
\
OC_L10N_String
(
\
OC
::
$server
->
getL10NFactory
()
->
get
(
'systemtags'
),
'Tags'
,
[]),
'active'
=>
false
,
'icon'
=>
''
,
],
...
...
@@ -244,7 +243,7 @@ class ViewControllerTest extends TestCase {
'appname'
=>
'files_trashbin'
,
'script'
=>
'list.php'
,
'order'
=>
50
,
'name'
=>
new
\
OC_L10N_String
(
new
\
OC_L10N
(
'files_trashbin'
),
'Deleted files'
,
[]),
'name'
=>
new
\
OC_L10N_String
(
\
OC
::
$server
->
getL10NFactory
()
->
get
(
'files_trashbin'
),
'Deleted files'
,
[]),
'active'
=>
false
,
'icon'
=>
''
,
],
...
...
apps/files_external/tests/Command/ListCommandTest.php
View file @
adb7572c
...
...
@@ -48,7 +48,7 @@ class ListCommandTest extends CommandTest {
}
public
function
testListAuthIdentifier
()
{
$l10n
=
$this
->
createMock
(
'\OC
_
L10N'
,
null
,
[],
''
,
false
);
$l10n
=
$this
->
createMock
(
'\OC
P\I
L10N'
,
null
,
[],
''
,
false
);
$session
=
$this
->
createMock
(
'\OCP\ISession'
);
$crypto
=
$this
->
createMock
(
'\OCP\Security\ICrypto'
);
$instance
=
$this
->
getInstance
();
...
...
apps/files_sharing/templates/authenticate.php
View file @
adb7572c
<?php
/** @var $_ array */
/** @var $l OC
_
L10N */
/** @var $l
\
OC
P\I
L10N */
style
(
'files_sharing'
,
'authenticate'
);
script
(
'files_sharing'
,
'authenticate'
);
?>
...
...
apps/files_sharing/templates/list.php
View file @
adb7572c
<?php
/** @var $l OC
_
L10N */
?>
<?php
/** @var $l
\
OC
P\I
L10N */
?>
<div
id=
'notification'
></div>
<div
id=
"emptycontent"
class=
"hidden"
></div>
...
...
apps/files_sharing/templates/public.php
View file @
adb7572c
<?php
/** @var $l OC
_
L10N */
/** @var $l
\
OC
P\I
L10N */
/** @var $theme OC_Defaults */
/** @var $_ array */
...
...
apps/files_trashbin/templates/index.php
View file @
adb7572c
<?php
/** @var $l OC
_
L10N */
?>
<?php
/** @var $l
\
OC
P\I
L10N */
?>
<div
id=
"controls"
>
<div
id=
"file_action_panel"
></div>
</div>
...
...
core/templates/404.php
View file @
adb7572c
<?php
/** @var $_ array */
/** @var $l OC
_
L10N */
/** @var $l
\
OC
P\I
L10N */
/** @var $theme OC_Theme */
// @codeCoverageIgnoreStart
if
(
!
isset
(
$_
))
{
//also provide standalone error page
...
...
core/templates/exception.php
View file @
adb7572c
<?php
/** @var array $_ */
/** @var OC
_
L10N $l */
/** @var
\
OC
P\I
L10N $l */
style
(
'core'
,
[
'styles'
,
'header'
]);
?>
...
...
core/templates/login.php
View file @
adb7572c
<?php
/** @var $l OC
_
L10N */
?>
<?php
/** @var $l
\
OC
P\I
L10N */
?>
<?php
vendor_script
(
'jsTimezoneDetect/jstz'
);
script
(
'core'
,
[
...
...
core/templates/twofactorshowchallenge.php
View file @
adb7572c
<?php
/** @var $l OC
_
L10N */
/** @var $l
\
OC
P\I
L10N */
/** @var $_ array */
/* @var $error boolean */
$error
=
$_
[
'error'
];
...
...
lib/private/L10N/Factory.php
View file @
adb7572c
...
...
@@ -276,7 +276,7 @@ class Factory implements IFactory {
* @param string $lang
* @return string[]
*/
// FIXME This method is only public, until OC
_
L10N does not need it anymore,
// FIXME This method is only public, until
\
OC
P\I
L10N does not need it anymore,
// FIXME This is also the reason, why it is not in the public interface
public
function
getL10nFilesForApp
(
$app
,
$lang
)
{
$languageFiles
=
[];
...
...
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment