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
5620f007
Commit
5620f007
authored
Oct 29, 2014
by
Guillermo Bonvehí
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix locale set during initialize not being used in utils.translation
parent
ac6f2590
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
converse.js
converse.js
+1
-1
src/utils.js
src/utils.js
+2
-2
No files found.
converse.js
View file @
5620f007
...
...
@@ -300,7 +300,7 @@
// Translation machinery
// ---------------------
var
__
=
utils
.
__
;
var
__
=
$
.
proxy
(
utils
.
__
,
this
)
;
var
___
=
utils
.
___
;
// Translation aware constants
// ---------------------------
...
...
src/utils.js
View file @
5620f007
...
...
@@ -30,7 +30,7 @@ define(["jquery"], function ($) {
var
utils
=
{
// Translation machinery
// ---------------------
__
:
$
.
proxy
(
function
(
str
)
{
__
:
function
(
str
)
{
// Translation factory
if
(
this
.
i18n
===
undefined
)
{
this
.
i18n
=
locales
.
en
;
...
...
@@ -41,7 +41,7 @@ define(["jquery"], function ($) {
}
else
{
return
t
.
fetch
();
}
},
this
),
},
___
:
function
(
str
)
{
/* XXX: This is part of a hack to get gettext to scan strings to be
...
...
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