Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
c745e1eb
Commit
c745e1eb
authored
Jun 22, 2015
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cherry-pick only those languages from Moment which we support in converse.js
parent
98f6ea8a
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
63 additions
and
10 deletions
+63
-10
bower.json
bower.json
+1
-1
converse.js
converse.js
+5
-4
main.js
main.js
+19
-1
spec/chatbox.js
spec/chatbox.js
+1
-0
src/deps-full.js
src/deps-full.js
+1
-1
src/deps-no-otr.js
src/deps-no-otr.js
+1
-1
src/deps-website-no-otr.js
src/deps-website-no-otr.js
+1
-1
src/deps-website.js
src/deps-website.js
+1
-1
src/locales.js
src/locales.js
+2
-0
src/moment_locales.js
src/moment_locales.js
+31
-0
No files found.
bower.json
View file @
c745e1eb
...
...
@@ -22,7 +22,7 @@
"almond"
:
"~0.3.0"
,
"requirejs-text"
:
"~2.0.12"
,
"requirejs-tpl-jcbrand"
:
"*"
,
"momentjs"
:
"~2.
6.0
"
,
"momentjs"
:
"~2.
10.3
"
,
"jquery.browser"
:
">=0.0.7"
,
"jquery-easing-original"
:
"https://raw.githubusercontent.com/jcbrand/jquery.easing/7de3458b1845a72c1f407debf6b223c8446396bf/jquery.easing.1.3.js"
,
"bootstrap"
:
"~3.2.0"
,
...
...
converse.js
View file @
c745e1eb
...
...
@@ -6126,14 +6126,15 @@
}
},
'
env
'
:
{
'
jQuery
'
:
$
,
'
Strophe
'
:
Strophe
,
'
$build
'
:
$build
,
'
$iq
'
:
$iq
,
'
$pres
'
:
$pres
,
'
$msg
'
:
$msg
,
'
$pres
'
:
$pres
,
'
Strophe
'
:
Strophe
,
'
_
'
:
_
,
'
b64_sha1
'
:
b64_sha1
'
b64_sha1
'
:
b64_sha1
,
'
jQuery
'
:
$
,
'
moment
'
:
moment
}
};
}));
main.js
View file @
c745e1eb
...
...
@@ -26,7 +26,7 @@ require.config({
"
jquery-private
"
:
"
src/jquery-private
"
,
"
jquery.browser
"
:
"
components/jquery.browser/dist/jquery.browser
"
,
"
jquery.easing
"
:
"
components/jquery-easing-original/index
"
,
// XXX: Only required for https://conversejs.org website
"
moment
"
:
"
components/momentjs/min/moment
-with-langs
"
,
"
moment
"
:
"
components/momentjs/min/moment
.min
"
,
"
strophe-base64
"
:
"
components/strophejs/src/base64
"
,
"
strophe-bosh
"
:
"
components/strophejs/src/bosh
"
,
"
strophe-core
"
:
"
components/strophejs/src/core
"
,
...
...
@@ -83,6 +83,24 @@ require.config({
"
uk
"
:
"
locale/uk/LC_MESSAGES/converse.json
"
,
"
zh
"
:
"
locale/zh/LC_MESSAGES/converse.json
"
,
"
moment_with_locales
"
:
"
src/moment_locales
"
,
'
moment_af
'
:
"
components/momentjs/locale/af
"
,
'
moment_de
'
:
"
components/momentjs/locale/de
"
,
'
moment_es
'
:
"
components/momentjs/locale/es
"
,
'
moment_fr
'
:
"
components/momentjs/locale/fr
"
,
'
moment_he
'
:
"
components/momentjs/locale/he
"
,
'
moment_hu
'
:
"
components/momentjs/locale/hu
"
,
'
moment_id
'
:
"
components/momentjs/locale/id
"
,
'
moment_it
'
:
"
components/momentjs/locale/it
"
,
'
moment_ja
'
:
"
components/momentjs/locale/ja
"
,
'
moment_nb
'
:
"
components/momentjs/locale/nb
"
,
'
moment_nl
'
:
"
components/momentjs/locale/nl
"
,
'
moment_pl
'
:
"
components/momentjs/locale/pl
"
,
'
moment_pt-br
'
:
"
components/momentjs/locale/pt-br
"
,
'
moment_ru
'
:
"
components/momentjs/locale/ru
"
,
'
moment_uk
'
:
"
components/momentjs/locale/uk
"
,
'
moment_zh
'
:
"
components/momentjs/locale/zh-cn
"
,
// Templates
"
action
"
:
"
src/templates/action
"
,
"
add_contact_dropdown
"
:
"
src/templates/add_contact_dropdown
"
,
...
...
spec/chatbox.js
View file @
c745e1eb
...
...
@@ -10,6 +10,7 @@
}
(
this
,
function
(
$
,
mock
,
test_utils
)
{
var
$msg
=
converse_api
.
env
.
$msg
;
var
Strophe
=
converse_api
.
env
.
Strophe
;
var
moment
=
converse_api
.
env
.
moment
;
return
describe
(
"
Chatboxes
"
,
$
.
proxy
(
function
(
mock
,
test_utils
)
{
describe
(
"
A Chatbox
"
,
$
.
proxy
(
function
()
{
...
...
src/deps-full.js
View file @
c745e1eb
...
...
@@ -2,7 +2,7 @@ define("converse-dependencies", [
"
jquery
"
,
"
utils
"
,
"
otr
"
,
"
moment
"
,
"
moment
_with_locales
"
,
"
strophe
"
,
"
strophe.vcard
"
,
"
strophe.disco
"
,
...
...
src/deps-no-otr.js
View file @
c745e1eb
define
(
"
converse-dependencies
"
,
[
"
jquery
"
,
"
utils
"
,
"
moment
"
,
"
moment
_with_locales
"
,
"
strophe
"
,
"
strophe.vcard
"
,
"
strophe.disco
"
,
...
...
src/deps-website-no-otr.js
View file @
c745e1eb
define
(
"
converse-dependencies
"
,
[
"
jquery
"
,
"
utils
"
,
"
moment
"
,
"
moment
_with_locales
"
,
"
strophe
"
,
"
strophe.vcard
"
,
"
strophe.disco
"
,
...
...
src/deps-website.js
View file @
c745e1eb
...
...
@@ -3,7 +3,7 @@ define("converse-dependencies", [
"
underscore
"
,
"
utils
"
,
"
otr
"
,
"
moment
"
,
"
moment
_with_locales
"
,
"
strophe
"
,
"
strophe.vcard
"
,
"
strophe.disco
"
,
...
...
src/locales.js
View file @
c745e1eb
...
...
@@ -3,6 +3,8 @@
*
* Translations take up a lot of space and you are therefore advised to remove
* from here any languages that you don't need.
*
* See also src/moment_locales.js
*/
(
function
(
root
,
factory
)
{
define
(
"
locales
"
,
[
'
jquery
'
,
'
jed
'
,
...
...
src/moment_locales.js
0 → 100644
View file @
c745e1eb
/*
* This file specifies the supported locales for moment.js.
*
* Translations take up a lot of space and you are therefore advised to remove
* from here any languages that you don't need.
*
* See also src/locales.js
*/
(
function
(
root
,
factory
)
{
define
(
"
moment_with_locales
"
,
[
'
moment
'
,
// Everything below can be removed except for moment itself.
'
moment_af
'
,
'
moment_de
'
,
'
moment_es
'
,
'
moment_fr
'
,
'
moment_he
'
,
'
moment_hu
'
,
'
moment_id
'
,
'
moment_it
'
,
'
moment_ja
'
,
'
moment_nb
'
,
'
moment_nl
'
,
'
moment_pl
'
,
'
moment_pt-br
'
,
'
moment_ru
'
,
'
moment_uk
'
,
'
moment_zh
'
],
function
(
moment
)
{
return
moment
;
});
})(
this
);
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