Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
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
Boris Kocherov
sdkjs
Commits
06ee0d22
Commit
06ee0d22
authored
Mar 10, 2017
by
Alexander.Trofimov
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add argument culture to asc_getFormatCells function
parent
c1e93539
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
cell/api.js
cell/api.js
+13
-3
No files found.
cell/api.js
View file @
06ee0d22
...
...
@@ -221,7 +221,7 @@ var editor;
}
return
result
;
};
spreadsheet_api
.
prototype
.
asc_getLocaleExample
=
function
(
format
,
value
,
culture
)
{
spreadsheet_api
.
prototype
.
asc_getLocaleExample
=
function
(
format
,
value
,
culture
)
{
var
cultureInfo
=
AscCommon
.
g_aCultureInfos
[
culture
]
||
AscCommon
.
g_oDefaultCultureInfo
;
var
numFormat
=
AscCommon
.
oNumFormatCache
.
get
(
format
);
var
res
;
...
...
@@ -239,8 +239,18 @@ var editor;
}
return
res
;
};
spreadsheet_api
.
prototype
.
asc_getFormatCells
=
function
(
info
)
{
return
AscCommon
.
getFormatCells
(
info
);
spreadsheet_api
.
prototype
.
asc_getFormatCells
=
function
(
info
,
culture
)
{
var
tmp
=
AscCommon
.
g_oDefaultCultureInfo
;
var
isChange
;
if
(
isChange
=
AscCommon
.
setCurrentCultureInfo
(
culture
))
{
parserHelp
.
setDigitSeparator
(
AscCommon
.
g_oDefaultCultureInfo
.
NumberDecimalSeparator
);
}
var
res
=
AscCommon
.
getFormatCells
(
info
);
if
(
isChange
)
{
AscCommon
.
setCurrentCultureInfo
(
tmp
.
LCID
);
parserHelp
.
setDigitSeparator
(
AscCommon
.
g_oDefaultCultureInfo
.
NumberDecimalSeparator
);
}
return
res
;
};
spreadsheet_api
.
prototype
.
asc_getLocaleCurrency
=
function
(
val
)
{
var
cultureInfo
=
AscCommon
.
g_aCultureInfos
[
val
];
...
...
Boris Kocherov
@bk
mentioned in commit
00810e9f
·
May 29, 2017
mentioned in commit
00810e9f
mentioned in commit 00810e9f21d6fc252a3b250473c350a9c487aa16
Toggle commit list
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