Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
le5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Linux Educacional 5
le5
Commits
c2caffe2
Commit
c2caffe2
authored
Jan 11, 2013
by
Michael Liang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
le-interface: fix bug format date
Signed-off-by:
Michael Liang
<
ml09@c3sl.ufpr.br
>
parent
e63fe647
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
10 deletions
+19
-10
le-interface/VERSAO
le-interface/VERSAO
+1
-1
le-interface/pacote/usr/share/gnome-shell/js/ui/dateMenu.js
le-interface/pacote/usr/share/gnome-shell/js/ui/dateMenu.js
+18
-9
No files found.
le-interface/VERSAO
View file @
c2caffe2
0.0.
29
0.0.
33
le-interface/pacote/usr/share/gnome-shell/js/ui/dateMenu.js
View file @
c2caffe2
...
...
@@ -184,29 +184,38 @@ const DateMenuButton = new Lang.Class({
if
(
showDate
)
/* Translators: This is the time format with date used
in 24-hour mode. */
clockFormat
=
showSeconds
?
_
(
"
%a %b %e, %R:%S
"
)
:
_
(
"
%a %b %e, %R
"
);
// clockFormat = showSeconds ? _("%a %b %e, %R:%S")
// : _("%a %b %e, %R");
clockFormat
=
showSeconds
?
_
(
"
%A %B %e, %R:%S
"
)
:
_
(
"
%e/%m/%Y %R
"
);
//: _("%A, %e %B %Y\n %R");
else
/* Translators: This is the time format without date used
in 24-hour mode. */
clockFormat
=
showSeconds
?
_
(
"
%a %R:%S
"
)
:
_
(
"
%a %R
"
);
// clockFormat = showSeconds ? _("%a %R:%S")
// : _("%a %R");
clockFormat
=
showSeconds
?
_
(
"
%A %R:%S
"
)
:
_
(
"
%e/%m/%Y %R
"
);
break
;
case
'
12h
'
:
default
:
if
(
showDate
)
/* Translators: This is a time format with date used
for AM/PM. */
clockFormat
=
showSeconds
?
_
(
"
%a %b %e, %l:%M:%S %p
"
)
:
_
(
"
%a %b %e, %l:%M %p
"
);
//clockFormat = showSeconds ? _("%a %b %e, %l:%M:%S %p")
// : _("%a %b %e, %l:%M %p");
clockFormat
=
showSeconds
?
_
(
"
%A %B %e, %l:%M:%S %p
"
)
:
_
(
"
%e/%m/%Y %R
"
);
else
/* Translators: This is a time format without date used
for AM/PM. */
clockFormat
=
showSeconds
?
_
(
"
%a %l:%M:%S %p
"
)
:
_
(
"
%a %l:%M %p
"
);
//clockFormat = showSeconds ? _("%a %l:%M:%S %p")
// : _("%a %l:%M %p");
clockFormat
=
showSeconds
?
_
(
"
%A %l:%M:%S %p
"
)
:
_
(
"
%e/%m/%Y %R
"
);
break
;
}
let
displayDate
=
new
Date
();
this
.
_clock
.
set_text
(
displayDate
.
toLocaleFormat
(
clockFormat
));
...
...
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