Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

Please add in new Updates HC2, support zh_CN language for cameras


Question

Posted

Dear developer Fibaro,

 

Please look my problem with 

Please login or register to see this link.

 

IP camera  DS-2CD2132-I  and you have Plugin. 

 

Stream video work good, but when I try make Photo, it's send file 1.8Kb .jpg e-mail.

 

I open this file with .txt and see this error:

 

 

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache, must-revalidate">
<meta http-equiv="expires" content="0">
<title>index</title>
<script type="text/javascript" src="doc/script/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="doc/script/jquery.cookie.js"></script>
<script language="JavaScript"> 
if (navigator.appName == 'Netscape' || navigator.appName == "Opera")
{
    var sysLanguage= navigator.language.toLowerCase();
}
else
{
    var sysLanguage= navigator.browserLanguage.toLowerCase();
}
var szLanguage = sysLanguage.substring(0,2);
if(szLanguage == "zh") {  //中文需要区分简体和繁体   
var arSysLan = sysLanguage.split("-");
    if (arSysLan.length === 2) {
var szLanguage = arSysLan[0].toLowerCase() + "_" + arSysLan[1].toUpperCase();
if(arSysLan[1].toLowerCase() === "cn") {
$.cookie('language', 'zh');
} else {
$.cookie('language', szLanguage);
}
}
} else {
    $.cookie('language', szLanguage);
}
/*var arSysLan = sysLanguage.split("-");
if (arSysLan.length === 2) {
var szLanguage = arSysLan[0].toLowerCase() + "_" + arSysLan[1].toUpperCase();
if (arSysLan[0].toLowerCase() === "zh") { // 在支持繁体中文前,zh_HK和zh_TW都显示zh_CN
szLanguage = "zh_CN";
}
$.cookie('language', szLanguage);
} else {
//alert("The system language is not supported!");
}*/
self.moveTo(0,0);   //使其IE窗口最大化
self.resizeTo(screen.availWidth,screen.availHeight);
$.cookie('updateTips', 'true');
var nowDate = new Date();
window.location.href = "doc/page/login.asp?_"+nowDate.getTime();
</script> 
</head>
<body>
<table cellspacing="0" cellpadding="0">
  <tr>
    <td></td>
  </tr>
</table>
</body>
</html>
 
Then I Understand this HIKVISION camera from CHINE not original, and have CHINE language
 
$.cookie('language', szLanguage);
} else {
//alert("The system language is not supported!");
}*/
self.moveTo(0,0);   //使其IE窗口最大化
 
 
Can you add FIX to next Update please with support this MAKE PHOTO camera from HC2.
 
THANK YOU. 

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...