Changeset 38950
- Timestamp:
- 07/01/11 23:22:30 (23 months ago)
- Location:
- websites/twicli
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
websites/twicli/lang.js
r38931 r38950 57 57 'Are you sure to report $1 as spam?': ['本当に $1 をスパムとして報告しますか?','真的要举报 $1 么?'], 58 58 'An external plugin is specified. This plugin can fully access to your account.\nAre you sure to load this?': ['外部プラグインが指定されています。このプラグインはあなたのアカウントに自由にアクセス可能になります。本当にロードしてもよろしいですか?','你欲加载外部地址上的插件。这个插件将自由访问你的帐号信息。确认加载?'], 59 'Cannot access to direct messages. Please re-auth twicli for DM access.': ['ダイレクトメッセージにアクセスできません。お手数ですが再度認証を行ってください。'], 59 60 'An old HTML file is loaded. Please reload it. If the problem is not fixed, please try erasing caches.': ['古いHTMLファイルがロードされています。リロードしてみて下さい。それでも解決しない場合はキャッシュを削除してみて下さい。'] 60 61 }; -
websites/twicli/twicli.js
r38946 r38950 432 432 } 433 433 434 function logout( ) {435 if (! confirm(_('Are you sure to logout? You need to re-authenticate twicli at next launch.')))434 function logout(force) { 435 if (!force && !confirm(_('Are you sure to logout? You need to re-authenticate twicli at next launch.'))) 436 436 return; 437 437 callPlugins('logout'); … … 442 442 } 443 443 444 function error(str) { 444 function error(str, err) { 445 console.log(err); 446 if (err && err[0] && err[0].code == 93) { 447 if (confirm(_('Cannot access to direct messages. Please re-auth twicli for DM access.'))) 448 logout(true); 449 return; 450 } 445 451 if (str.indexOf('Rate limit exceeded.') == 0) { 446 452 if (ratelimit_reset_time && new Date < ratelimit_reset_time) … … 933 939 function twDirect1(tw) { 934 940 if (tw.error) return error(tw.error); 941 if (tw.errors) return error(tw.errors[0].message, tw.errors); 935 942 direct1 = tw; 936 943 if (direct2) … … 939 946 function twDirect2(tw) { 940 947 if (tw.error) return error(tw.error); 948 if (tw.errors) return error(tw.errors[0].message, tw.errors); 941 949 direct2 = tw; 942 950 if (direct1) … … 965 973 function twDirectCheck(tw) { 966 974 if (tw.error) return error(tw.error); 975 if (tw.errors) return error(tw.errors[0].message, tw.errors); 967 976 if (!tw || tw.length == 0) return false; 968 977 var id = tw[0].id_str || tw[0].id;
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)