Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
47566b0c
Commit
47566b0c
authored
13 years ago
by
Georg Ehrke
Browse files
Options
Downloads
Patches
Plain Diff
stop using of OC_L10N::tA
parent
19f2ce69
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
apps/calendar/templates/calendar.php
+4
-4
4 additions, 4 deletions
apps/calendar/templates/calendar.php
with
4 additions
and
4 deletions
apps/calendar/templates/calendar.php
+
4
−
4
View file @
47566b0c
...
@@ -2,10 +2,10 @@
...
@@ -2,10 +2,10 @@
var
defaultView
=
'
<?php
echo
OCP\Config
::
getUserValue
(
OCP\USER
::
getUser
(),
'calendar'
,
'currentview'
,
'month'
)
?>
'
;
var
defaultView
=
'
<?php
echo
OCP\Config
::
getUserValue
(
OCP\USER
::
getUser
(),
'calendar'
,
'currentview'
,
'month'
)
?>
'
;
var
eventSources
=
<?php
echo
json_encode
(
$_
[
'eventSources'
])
?>
;
var
eventSources
=
<?php
echo
json_encode
(
$_
[
'eventSources'
])
?>
;
var
categories
=
<?php
echo
json_encode
(
$_
[
'categories'
]);
?>
;
var
categories
=
<?php
echo
json_encode
(
$_
[
'categories'
]);
?>
;
var
dayNames
=
<?php
echo
json_encode
(
$l
->
tA
(
array
(
'Sunday'
,
'Monday'
,
'Tuesday'
,
'Wednesday'
,
'Thursday'
,
'Friday'
,
'
Saturday
'
)))
?>
;
var
dayNames
=
new
Array
(
"
<?php
echo
$l
->
t
(
"Sunday"
);
?>
"
,
"
<?php
echo
$l
->
t
(
"Monday"
);
?>
"
,
"
<?php
echo
$l
->
t
(
"Tuesday"
);
?>
"
,
"
<?php
echo
$l
->
t
(
"Wednesday"
);
?>
"
,
"
<?php
echo
$l
->
t
(
"Thursday"
);
?>
"
,
"
<?php
echo
$l
->
t
(
"Friday"
);
?>
"
,
"
<?php
echo
$l
->
t
(
"
Saturday
"
);
?>
"
)
;
var
dayNamesShort
=
<?php
echo
json_encode
(
$l
->
tA
(
array
(
'Sun.'
,
'Mon.'
,
'Tue.'
,
'Wed.'
,
'Thu.'
,
'Fri.'
,
'Sat.'
)))
?>
;
var
dayNamesShort
=
new
Array
(
"
<?php
echo
$l
->
t
(
"Sun."
);
?>
"
,
"
<?php
echo
$l
->
t
(
"Mon."
);
?>
"
,
"
<?php
echo
$l
->
t
(
"Tue."
);
?>
"
,
"
<?php
echo
$l
->
t
(
"Wed."
);
?>
"
,
"
<?php
echo
$l
->
t
(
"Thu."
);
?>
"
,
"
<?php
echo
$l
->
t
(
"Fri."
);
?>
"
,
"
<?php
echo
$l
->
t
(
"Sat."
);
?>
"
)
;
var
monthNames
=
<?php
echo
json_encode
(
$l
->
tA
(
array
(
'January'
,
'February'
,
'March'
,
'April'
,
'May'
,
'June'
,
'July'
,
'August'
,
'September'
,
'October'
,
'November'
,
'
December
'
)))
?>
;
var
monthNames
=
new
Array
(
"
<?php
echo
$l
->
t
(
"January"
);
?>
"
,
"
<?php
echo
$l
->
t
(
"February"
);
?>
"
,
"
<?php
echo
$l
->
t
(
"March"
);
?>
"
,
"
<?php
echo
$l
->
t
(
"April"
);
?>
"
,
"
<?php
echo
$l
->
t
(
"May"
);
?>
"
,
"
<?php
echo
$l
->
t
(
"June"
);
?>
"
,
"
<?php
echo
$l
->
t
(
"July"
);
?>
"
,
"
<?php
echo
$l
->
t
(
"August"
);
?>
"
,
"
<?php
echo
$l
->
t
(
"September"
);
?>
"
,
"
<?php
echo
$l
->
t
(
"October"
);
?>
"
,
"
<?php
echo
$l
->
t
(
"November"
);
?>
"
,
"
<?php
echo
$l
->
t
(
"
December
"
);
?>
"
)
;
var
monthNamesShort
=
<?php
echo
json_encode
(
$l
->
tA
(
array
(
'Jan.'
,
'Feb.'
,
'Mar.'
,
'Apr.'
,
'May.'
,
'Jun.'
,
'Jul.'
,
'Aug.'
,
'Sep.'
,
'Oct.'
,
'Nov.'
,
'Dec.'
)))
?>
;
var
monthNamesShort
=
new
Array
(
"
<?php
echo
$l
->
t
(
"Jan."
);
?>
"
,
"
<?php
echo
$l
->
t
(
"Feb."
);
?>
"
,
"
<?php
echo
$l
->
t
(
"Mar."
);
?>
"
,
"
<?php
echo
$l
->
t
(
"Apr."
);
?>
"
,
"
<?php
echo
$l
->
t
(
"May."
);
?>
"
,
"
<?php
echo
$l
->
t
(
"Jun."
);
?>
"
,
"
<?php
echo
$l
->
t
(
"Jul."
);
?>
"
,
"
<?php
echo
$l
->
t
(
"Aug."
);
?>
"
,
"
<?php
echo
$l
->
t
(
"Sep."
);
?>
"
,
"
<?php
echo
$l
->
t
(
"Oct."
);
?>
"
,
"
<?php
echo
$l
->
t
(
"Nov."
);
?>
"
,
"
<?php
echo
$l
->
t
(
"Dec."
);
?>
"
)
;
var
agendatime
=
'
<?php
echo
((
int
)
OCP\Config
::
getUserValue
(
OCP\USER
::
getUser
(),
'calendar'
,
'timeformat'
,
'24'
)
==
24
?
'HH:mm'
:
'hh:mm tt'
);
?>
{ -
<?php
echo
((
int
)
OCP\Config
::
getUserValue
(
OCP\USER
::
getUser
(),
'calendar'
,
'timeformat'
,
'24'
)
==
24
?
'HH:mm'
:
'hh:mm tt'
);
?>
}
'
;
var
agendatime
=
'
<?php
echo
((
int
)
OCP\Config
::
getUserValue
(
OCP\USER
::
getUser
(),
'calendar'
,
'timeformat'
,
'24'
)
==
24
?
'HH:mm'
:
'hh:mm tt'
);
?>
{ -
<?php
echo
((
int
)
OCP\Config
::
getUserValue
(
OCP\USER
::
getUser
(),
'calendar'
,
'timeformat'
,
'24'
)
==
24
?
'HH:mm'
:
'hh:mm tt'
);
?>
}
'
;
var
defaulttime
=
'
<?php
echo
((
int
)
OCP\Config
::
getUserValue
(
OCP\USER
::
getUser
(),
'calendar'
,
'timeformat'
,
'24'
)
==
24
?
'HH:mm'
:
'hh:mm tt'
);
?>
'
;
var
defaulttime
=
'
<?php
echo
((
int
)
OCP\Config
::
getUserValue
(
OCP\USER
::
getUser
(),
'calendar'
,
'timeformat'
,
'24'
)
==
24
?
'HH:mm'
:
'hh:mm tt'
);
?>
'
;
var
allDayText
=
'
<?php
echo
addslashes
(
$l
->
t
(
'All day'
))
?>
'
;
var
allDayText
=
'
<?php
echo
addslashes
(
$l
->
t
(
'All day'
))
?>
'
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment