2012年7月17日星期二

Dive into python 的我的翻译XIII


       [原文] P117
Now imagine that the name of the dialect is coming from somewhere outside the program, maybe from a database or from a user−inputted value on a form. You can use any number of server−side Python scripting architectures to dynamically generate web pages;

[pope译] 现在想象一下一个来自于系统外部的的方言{dialect},可能是数据库或是用户输入的一种类型的值。你可以使用任何python的服务器脚本构建{architectures}动态的web 页面;([?]any number of server-side Python scripting architectures 应该如何翻译呢?);

[net 译: http://woodpecker.org.cn/diveintopython/html_processing/all_together.html ]
现在设想一下方言的名字是从程序外面的某个地方来的,也许是从一个数据库中,或从一个表格中的用户输入的值中。您可以使用任意多的服务端 Python 脚本架构来动态地生成网页;

【popexizhi:
1.from a user -inputted value on a form
[pope译] 用户输入的一种类型的值
[net 译]从一个表格中的用户输入的值中
分析一下,自己的翻译把on a form全部都忘了,这个net的翻译“一个表格”也还勉强过去吧,但是现在鉴于后面提到的是server 感觉 这里翻译为表单,是指浏览器中展示的那种比较合适一些吧!
[pope改进翻译] 来自于用户的表单输入值

2.any number of server-side Python scripting architectures
[net 译]任意多的服务端 Python 脚本架构
这里自己当初不知如何翻译,现在看来 是有问题,net的翻译读来中文也有问题 ,这个Python scripting architectures 是对server-side的扩展说明吧,是不是翻译为“Python构架的服务器端 ”会好理解一点儿呢?:)
[pope改进翻译] 任意数量的Python构架的服务器端

3.dynamically generate web pages
[pope译] (构建{architectures})动态的web 页面
[net 译] 动态地生成网页
这个没什么,直接翻译没错,我来写的是 any number of server-side Python scripting architectures dynamically generate web pages .放到一起 自己倒是倾向原来的方法generate 可以在中文翻译中意译是被省略了,try一下[pope改进翻译]  你可以使用任意数量的python服务器构建动态页面。



this function could take a URL and a dialect name (both strings) in the query string of a web page request, and output the "translated" web page
[pope译] 这个函数携带url和在web 页面的请求中{request}有方言{dialect}名称(都是字符串)请求的的字符,并且输出这个“翻译过”的web页面。

[net 译: http://woodpecker.org.cn/diveintopython/html_processing/all_together.html ]
这个函数将接收在页面请求的查询字符串中的一个 URL 和一个方言名字 (两个都是字符串) ,接着输出 “翻译” 后的网页。
【popexizhi:
1.a URL and a dialect name(both strings) in the query string of a web page request
[pope译]url和在web 页面的请求中{request}有方言{dialect}名称(都是字符串)请求的的字符,
[net 译]在页面请求的查询字符串中的一个 URL 和一个方言名字
嘻嘻,自己把url 也是in the query string of a web page request的给丢了:)


[thinking]
 这个是关于 上面那个函数的用途了,但是有一个问题,作者这里为什么特别说了一下any numeber of serve这个不是在部署上考虑的吗?难道程序在这个问题上有语言级别的特殊要求和处理吗?是个问题以后关注一下。    

没有评论:

发表评论