www-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

www/philosophy javascript-trap.zh-cn.html po/ja...


From: GNUN
Subject: www/philosophy javascript-trap.zh-cn.html po/ja...
Date: Sat, 9 Mar 2019 09:00:22 -0500 (EST)

CVSROOT:        /web/www
Module name:    www
Changes by:     GNUN <gnun>     19/03/09 09:00:22

Modified files:
        philosophy     : javascript-trap.zh-cn.html 
        philosophy/po  : javascript-trap.zh-cn-en.html 
                         javascript-trap.zh-cn.po 

Log message:
        Automatic update by GNUnited Nations.

CVSWeb URLs:
http://web.cvs.savannah.gnu.org/viewcvs/www/philosophy/javascript-trap.zh-cn.html?cvsroot=www&r1=1.10&r2=1.11
http://web.cvs.savannah.gnu.org/viewcvs/www/philosophy/po/javascript-trap.zh-cn-en.html?cvsroot=www&r1=1.9&r2=1.10
http://web.cvs.savannah.gnu.org/viewcvs/www/philosophy/po/javascript-trap.zh-cn.po?cvsroot=www&r1=1.24&r2=1.25

Patches:
Index: javascript-trap.zh-cn.html
===================================================================
RCS file: /web/www/www/philosophy/javascript-trap.zh-cn.html,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- javascript-trap.zh-cn.html  23 Feb 2019 10:31:34 -0000      1.10
+++ javascript-trap.zh-cn.html  9 Mar 2019 14:00:21 -0000       1.11
@@ -1,7 +1,7 @@
 <!--#set var="ENGLISH_PAGE" value="/philosophy/javascript-trap.en.html" -->
 
 <!--#include virtual="/server/header.zh-cn.html" -->
-<!-- Parent-Version: 1.86 -->
+<!-- Parent-Version: 1.87 -->
 
 <!-- This file is automatically generated by GNUnited Nations! -->
 <title>JavaScript的陷阱</title>
@@ -29,9 +29,12 @@
 
<p>JavaScript(正式名称是ECMAScript,但是很少有人用了)曾经用于不重要的网页è£
…
饰,比如可爱但是并不重要的导航和显示功能。可以认为这些只是HTMLæ
 ‡è®°è¯­è¨€çš„扩展,而不是真正的软件,这æ 
·å°±å¯ä»¥å¿½ç•¥å®ƒçš„问题。</p>
 
 <p>一些网站仍然这æ 
·ä½¿ç”¨JavaScript,但是有一些网站用它作为完成任务的主要程序。例如,Google
-Docs会尝试在你
的电脑里下载大约500k字节的JavaScript程序,该程序使用一种我们称之为模糊脚本(Obfuscript)的紧密æ
 ¼å¼ï¼Œæ²¡æœ‰æ³¨é‡Šï¼Œä¹Ÿå°‘有空格,而å…
¶æ–¹æ³•çš„名称只有一个字母。一个程序的源代ç 
åº”该是有利于修改程序的形式;这种紧密格式不是源代ç 
ï¼Œå…¶æºä»£ç æ²¡æœ‰æä¾›ç»™ç”¨æˆ·ã€‚</p>
+Docs会尝试在你
的电脑里下载大约500k字节的JavaScript程序,该程序使用一种我们称之为模糊脚本(Obfuscript)的紧密æ
 ¼å¼ã€‚这种格式删除了源代码里有助阅读的空æ 
¼å’Œæ³¨é‡Šï¼Œå¹¶å°†åŽŸæ¥æœ‰æ„ä¹‰çš„方法名称替换为任意的短名称,这æ
 ·äººä»¬å°±æ— æ³•ç›´æŽ¥çœ‹å‡ºè¿™äº›æ–¹æ³•åŽŸæ¥çš„意义。</p>
 
-<p>除了是非自由软件,许多这种程序是恶意软件,因
为它们<a
+<p><a
+href="/philosophy/free-sw.html">自由软件定义</a>的内容包
含着用户可以访问程序的源代码。一个程序的源代ç 
åº”该是有利于修改程序的形式&mdash;包括有利阅读的空æ 
¼å’Œåˆ†è¡Œã€è§£é‡Šæ€§æ³¨é‡Šå’Œæœ‰æ„ä¹‰çš„名称。这种紧密æ 
¼å¼ä¸æ˜¯æºä»£ç ï¼Œè€Œåªæ˜¯æ¯«æ— ç”¨å¤„的源代码替代品;其源代ç 
å¹¶æ²¡æœ‰æä¾›ç»™ç”¨æˆ·ï¼Œå› è€Œç”¨æˆ·æ— 
法了解该程序;该程序是非自由的。</p>
+
+<p>除了是非自由软件,许多这种程序是<em>恶意软件</em>,因
为它们<a
 href="http://github.com/w3c/fingerprinting-guidance/issues/8";>嗅
探用户</a>。更恶劣的是,有些站点使用服务来记录<a
 
href="https://freedom-to-tinker.com/2017/11/15/no-boundaries-exfiltration-of-personal-data-by-session-replay-scripts/";>用户浏览该页面时的所有行为</a>。该服务本来应该&ldquo;修改&rdquo;记录以抹去网站不该获得的一些敏感数据。但是,即使该功能能够可é
 
的实施,该服务的整体目的也是给予该网站它不应该获得的个人数据。</p>
 
@@ -47,9 +50,9 @@
 <p>Java小程序<sup><a
 href="#TransNote2">2</a></sup>也会在浏览器里运行,也就有同æ 
·çš„问题。一般来说,各种小程序系统都有这æ 
·çš„问题。创建一个运行小程序的自由环境仅仅
是让我们能够看到这个问题。</p>
 
-<p>理论上能够使用HTML和CSS编程,但是实际
上它不方便而且受限制;最多只是展示一些令人惊奇的黑客编程技巧。这些程序理应是自由的,不过CSS在2016年还不是影响用户自由的严重问题。</p>
+<p>理论上能够使用HTML和CSS编程,但是实际
上它不方便而且受限制;最多只是展示一些令人惊奇的黑客编程技巧。这些程序理应是自由的,不过CSS在2019年还不是影响用户自由的严重问题。</p>
 
-<p>已经有一个强大的运动,它号召网站只使用自由(有的人叫&quot;开放&quot;)的æ
 ¼å¼å’Œåè®®æ¥é€šä¿¡ï¼›å°±æ˜¯è¯´ï¼Œå®ƒä»¬çš„文档应该å…
¬å¼€ï¼Œè€Œä¸”任何人都有自由来实现。当网页带有程序时,这个æ
 ‡å‡†æ˜¯å¿…要的,但是并不充分。JavaScript本身,作为一种æ 
¼å¼ï¼Œæ˜¯è‡ªç”±çš„,而且在网站上使用JavaScript并不必
然是坏事。然而,正如以上所看到的,它也不必
然就是好事。当网站将程序转移到用户,程序只是由有文档、不受限制的语言编写并不足够;该程序å¿
…须也是自由的。&ldquo;只许把自由软件转移到用户&rdquo;必
须成为网站行为规范的准则。</p>
+<p>已经有一个强大的运动,它号召网站只使用自由(有的人叫&quot;开放&quot;)的æ
 ¼å¼å’Œåè®®æ¥é€šä¿¡ï¼›å°±æ˜¯è¯´ï¼Œå®ƒä»¬çš„文档应该å…
¬å¼€ï¼Œè€Œä¸”任何人都有自由来实现。然而,当网页带有JavaScript程序时,这个æ
 ‡å‡†å°±ä¸å¤Ÿäº†ã€‚JavaScript本身,作为一种æ 
¼å¼ï¼Œæ˜¯è‡ªç”±çš„,而且在网站上使用JavaScript并不必
然是坏事。然而,正如以上所看到的,它也不必
然就是好事&mdash;&mdash;如果JavaScript程序是非自由软件。当网站将程序转移到用户,程序只是由有文档、不受限制的语言编写并不足够;该程序å¿
…须也是自由的。&ldquo;只许把自由软件转移到用户&rdquo;必
须成为网站行为规范的准则。</p>
 
 <p>不动声色地加
载和运行非自由软件只是&quot;网络应用&quot;带来的诸多问题之一。&quot;网络应用&quot;这一术语就是用来抹杀用户软件和服务器软件的æ
 
¹æœ¬åŒºåˆ«ã€‚它可以指运行在浏览器里的特定客户端软件;它也可以指特定的服务器软件;它还可以指和特定服务器软件紧密协作的客户端软件。客户端和服务器端有不同的道德问题,即使它们如此紧密地协作,以至于可以说它们是一个软件的不同部分。本文只讨论客户端软件的问题。我们会分开讨论服务器端的软件。</p>
 
@@ -76,7 +79,7 @@
 
   <li>该程序有 Ajax 调用。</li>
 
-  <li>该程序有 <b>[&hellip;]</b> 调用。</li>
+  
<li>该程序使用带有方括号形式的动态对象属性访问,就像<b><em>object</em>[<em>property</em>]</b>这æ
 ·ã€‚</li>
 
   <li>该程序修改了 DOM。</li>
   
@@ -183,7 +186,7 @@
 <p class="unprintable"><!-- timestamp start -->
 最后更新:
 
-$Date: 2019/02/23 10:31:34 $
+$Date: 2019/03/09 14:00:21 $
 
 <!-- timestamp end -->
 </p>

Index: po/javascript-trap.zh-cn-en.html
===================================================================
RCS file: /web/www/www/philosophy/po/javascript-trap.zh-cn-en.html,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- po/javascript-trap.zh-cn-en.html    23 Feb 2019 10:31:34 -0000      1.9
+++ po/javascript-trap.zh-cn-en.html    9 Mar 2019 14:00:21 -0000       1.10
@@ -1,5 +1,5 @@
 <!--#include virtual="/server/header.html" -->
-<!-- Parent-Version: 1.86 -->
+<!-- Parent-Version: 1.87 -->
 <title>The JavaScript Trap</title>
 <!--#include virtual="/philosophy/po/javascript-trap.translist" -->
 <!--#include virtual="/server/banner.html" -->
@@ -41,16 +41,26 @@
 software, and disregard the issue.</p>
 
 <p>Some sites still use JavaScript that way, but many use it for major
-programs that do large jobs.  For instance, Google Docs tries to download into
-your machine a JavaScript program which measures half a megabyte, in a
-compacted form that we could call Obfuscript because it has no
-comments and hardly any whitespace, and the method names are one
-letter long.  The source code of a program is the preferred form for
-modifying it; the compacted code is not source code, and the real
-source code of this program is not available to the user.</p>
+programs that do large jobs.  For instance, Google Docs tries to
+install into your browser a JavaScript program which measures half a
+megabyte, in a compacted form that we could call Obfuscript.  This
+compacted form is made from the source code, by deleting the extra
+spaces that make the code readable and the explanatory remarks that
+make it comprehensible, and replacing each meaningful name in the code
+with an arbitrary short name so we can't tell what it is supposed to
+mean.</p>
+
+<p>Part of the <a href="/philosophy/free-sw.html">meaning of free
+software</a> is that users have access to the program's source code
+(its plan).  The source code of a program means the preferred form for
+programmers to modify&mdash;including helpful spacing, explanatory
+remarks, and meaningful names.  Compacted code is a bogus, useless
+substitute for source code; the real source code of these programs is
+not available to the users, so users cannot understand it; therefore
+the programs are nonfree.</p>
 
-<p>In addition to being nonfree, many of these programs are malware
-because
+<p>In addition to being nonfree, many of these programs
+are <em>malware</em> because
 they <a href="http://github.com/w3c/fingerprinting-guidance/issues/8";>snoop
 on the user</a>.  Even nastier, some sites use services which record
 <a 
href="https://freedom-to-tinker.com/2017/11/15/no-boundaries-exfiltration-of-personal-data-by-session-replay-scripts/";>all
@@ -100,20 +110,21 @@
 practice this capability is limited and inconvenient; merely to make
 it do something is an impressive hack.  Such programs ought to be
 free, but CSS is not a serious problem for users' freedom as of
-2016.</p>
+2019.</p>
 
 <p>A strong movement has developed that calls for web sites to
 communicate only through formats and protocols that are free (some say
 &quot;open&quot;); that is to say, whose documentation is published and which
-anyone is free to implement.  With the presence of programs in web
-pages, that criterion is necessary, but not sufficient.  JavaScript
+anyone is free to implement.  However, the presence of JavaScript programs
+in web pages makes that criterion insufficient.  The JavaScript language
 itself, as a format, is free, and use of JavaScript in a web site is
-not necessarily bad.  However, as we've seen above, it also isn't
-necessarily OK.  When the site transmits a program to the user, it is
+not necessarily bad.  However, as we've seen above, it can be bad&mdash;if
+the JavaScript program is nonfree.  When the site transmits a program
+to the user, it is
 not enough for the program to be written in a documented and
-unencumbered language; that program must be free, too.  &ldquo;Only free
-programs transmitted to the user&rdquo; must become part of the criterion
-for proper behavior by web sites.</p>
+unencumbered language; that program must be free, too.  &ldquo;Transmits only 
free
+programs to the user&rdquo; must become part of the criterion
+for an ethical web site.</p>
 
 <p>Silently loading and running nonfree programs is one among several
 issues raised by &quot;web applications&quot;.  The term &quot;web
@@ -160,7 +171,8 @@
 
   <li>it does Ajax calls.</li>
 
-  <li>it does <b>[&hellip;]</b> calls.</li>
+  <li>it uses bracket notation for dynamic object property access,
+which looks like <b><em>object</em>[<em>property</em>]</b>.</li>
 
   <li>it alters the DOM.</li>
   
@@ -284,7 +296,7 @@
 
 <p class="unprintable">Updated:
 <!-- timestamp start -->
-$Date: 2019/02/23 10:31:34 $
+$Date: 2019/03/09 14:00:21 $
 <!-- timestamp end -->
 </p>
 </div>

Index: po/javascript-trap.zh-cn.po
===================================================================
RCS file: /web/www/www/philosophy/po/javascript-trap.zh-cn.po,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -b -r1.24 -r1.25
--- po/javascript-trap.zh-cn.po 9 Mar 2019 13:27:06 -0000       1.24
+++ po/javascript-trap.zh-cn.po 9 Mar 2019 14:00:21 -0000       1.25
@@ -14,7 +14,6 @@
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
-"X-Outdated-Since: 2019-03-08 19:56+0000\n"
 
 #. type: Content of: <h2>
 msgid "The JavaScript Trap"
@@ -327,8 +326,8 @@
 "it uses bracket notation for dynamic object property access, which looks "
 "like <b><em>object</em>[<em>property</em>]</b>."
 msgstr ""
-"该程序使用带有方括号形式的动态对象属性访问,就像<b><em>object</"
-"em>[<em>property</em>]</b>这样。"
+"该程序使用带有方括号形式的动态对象属性访问,就像<b><em>object</em>"
+"[<em>property</em>]</b>这样。"
 
 #. type: Content of: <ul><li>
 msgid "it alters the DOM."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]