Units
Translation components API.
See the Weblate's Web API documentation for detailed description of the API.
GET /api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/units/?format=api&page=3
https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/units/?format=api&page=4", "previous": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/units/?format=api&page=2", "results": [ { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "First, this is the sequence of events which occurs when the user first types <command>make</command> in the port's directory. Having <filename>bsd.port.mk</filename> in another window while reading this really helps to understand it." ], "previous_source": "", "target": [ "" ], "id_hash": -310003128288105793, "content_hash": -310003128288105793, "location": "book.translate.xml:655", "context": "", "note": "(itstool) path: sect1/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 108, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 32, "source_unit": "https://translate-dev.freebsd.org/api/units/110639/?format=api", "priority": 100, "id": 190739, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=7bb2a5cc1b20aabf", "url": "https://translate-dev.freebsd.org/api/units/190739/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:01.618631Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "But do not worry, not many people understand exactly how <filename>bsd.port.mk</filename> is working... <emphasis>:-)</emphasis>" ], "previous_source": "", "target": [ "" ], "id_hash": -2599947670486746170, "content_hash": -2599947670486746170, "location": "book.translate.xml:661", "context": "", "note": "(itstool) path: sect1/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 109, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 14, "source_unit": "https://translate-dev.freebsd.org/api/units/110640/?format=api", "priority": 100, "id": 190740, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=5beb215e6a087bc6", "url": "https://translate-dev.freebsd.org/api/units/190740/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:01.628909Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "The <_:buildtarget-1/> target is run. The <_:buildtarget-2/> target is responsible for making sure that the tarball exists locally in <varname>DISTDIR</varname>. If <_:buildtarget-3/> cannot find the required files in <varname>DISTDIR</varname> it will look up the URL <varname>MASTER_SITES</varname>, which is set in the Makefile, as well as our FTP mirrors where we put distfiles as backup. It will then attempt to fetch the named distribution file with <varname>FETCH</varname>, assuming that the requesting site has direct access to the Internet. If that succeeds, it will save the file in <varname>DISTDIR</varname> for future use and proceed." ], "previous_source": "", "target": [ "" ], "id_hash": 6938803184244299509, "content_hash": 6938803184244299509, "location": "book.translate.xml:667", "context": "", "note": "(itstool) path: step/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 110, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 92, "source_unit": "https://translate-dev.freebsd.org/api/units/110641/?format=api", "priority": 100, "id": 190741, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=e04b94bb933b16f5", "url": "https://translate-dev.freebsd.org/api/units/190741/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:01.638140Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "extract" ], "previous_source": "", "target": [ "" ], "id_hash": 5494271612630215268, "content_hash": 5494271612630215268, "location": "book.translate.xml:684, book.translate.xml:785, book.translate.xml:791, book.translate.xml:6809, book.translate.xml:6852", "context": "", "note": "(itstool) path: para/buildtarget", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 111, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/110642/?format=api", "priority": 100, "id": 190742, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=cc3f92ebfa562a64", "url": "https://translate-dev.freebsd.org/api/units/190742/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:01.648203Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "The <_:buildtarget-1/> target is run. It looks for the port's distribution file (typically a compressed tarball) in <varname>DISTDIR</varname> and unpacks it into a temporary subdirectory specified by <varname>WRKDIR</varname> (defaults to <filename>work</filename>)." ], "previous_source": "", "target": [ "" ], "id_hash": 3957195635633963943, "content_hash": 3957195635633963943, "location": "book.translate.xml:684", "context": "", "note": "(itstool) path: step/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 112, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 31, "source_unit": "https://translate-dev.freebsd.org/api/units/110643/?format=api", "priority": 100, "id": 190743, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=b6eac876e8b043a7", "url": "https://translate-dev.freebsd.org/api/units/190743/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:01.658991Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "patch" ], "previous_source": "", "target": [ "" ], "id_hash": -5695732255464135, "content_hash": -5695732255464135, "location": "book.translate.xml:693, book.translate.xml:5096, book.translate.xml:6879, book.translate.xml:25161", "context": "", "note": "(itstool) path: para/buildtarget", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 113, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/110644/?format=api", "priority": 100, "id": 190744, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=7febc3c2fe2d6539", "url": "https://translate-dev.freebsd.org/api/units/190744/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:01.668232Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "The <_:buildtarget-1/> target is run. First, any patches defined in <varname>PATCHFILES</varname> are applied. Second, if any patch files named <filename>patch-<replaceable>*</replaceable></filename> are found in <varname>PATCHDIR</varname> (defaults to the <filename>files</filename> subdirectory), they are applied at this time in alphabetical order." ], "previous_source": "", "target": [ "" ], "id_hash": 7425590269216948704, "content_hash": 7425590269216948704, "location": "book.translate.xml:693", "context": "", "note": "(itstool) path: step/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 114, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 38, "source_unit": "https://translate-dev.freebsd.org/api/units/110645/?format=api", "priority": 100, "id": 190745, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=e70cff01e44601e0", "url": "https://translate-dev.freebsd.org/api/units/190745/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:01.677441Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "configure" ], "previous_source": "", "target": [ "" ], "id_hash": -3702859059831659947, "content_hash": -3702859059831659947, "location": "book.translate.xml:703, book.translate.xml:786, book.translate.xml:5097, book.translate.xml:9364, book.translate.xml:11824, book.translate.xml:23560, book.translate.xml:23562", "context": "", "note": "(itstool) path: para/buildtarget\n(itstool) path: entry/buildtarget", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 115, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/110646/?format=api", "priority": 100, "id": 190746, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=4c9ccd4dbd65a255", "url": "https://translate-dev.freebsd.org/api/units/190746/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:01.686466Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "The <_:buildtarget-1/> target is run. This can do any one of many different things." ], "previous_source": "", "target": [ "" ], "id_hash": 2659433023607853635, "content_hash": 2659433023607853635, "location": "book.translate.xml:703", "context": "", "note": "(itstool) path: step/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 116, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 14, "source_unit": "https://translate-dev.freebsd.org/api/units/110647/?format=api", "priority": 100, "id": 190747, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=a4e8343ea416d243", "url": "https://translate-dev.freebsd.org/api/units/190747/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:01.696215Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "If it exists, <filename>scripts/configure</filename> is run." ], "previous_source": "", "target": [ "" ], "id_hash": -8302924938195525964, "content_hash": -8302924938195525964, "location": "book.translate.xml:708", "context": "", "note": "(itstool) path: listitem/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 117, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 6, "source_unit": "https://translate-dev.freebsd.org/api/units/110648/?format=api", "priority": 100, "id": 190748, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=0cc615c26e1f9eb4", "url": "https://translate-dev.freebsd.org/api/units/190748/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:01.705070Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "If <varname>HAS_CONFIGURE</varname> or <varname>GNU_CONFIGURE</varname> is set, <filename>WRKSRC/configure</filename> is run." ], "previous_source": "", "target": [ "" ], "id_hash": -1568697773639045481, "content_hash": -1568697773639045481, "location": "book.translate.xml:713", "context": "", "note": "(itstool) path: listitem/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 118, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 9, "source_unit": "https://translate-dev.freebsd.org/api/units/110649/?format=api", "priority": 100, "id": 190749, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=6a3addafaa4c6e97", "url": "https://translate-dev.freebsd.org/api/units/190749/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:01.714358Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "build" ], "previous_source": "", "target": [ "" ], "id_hash": -2636477897768658921, "content_hash": -2636477897768658921, "location": "book.translate.xml:721, book.translate.xml:5098, book.translate.xml:6688, book.translate.xml:25163", "context": "", "note": "(itstool) path: para/buildtarget", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 119, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/110650/?format=api", "priority": 100, "id": 190750, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=5b69595215549817", "url": "https://translate-dev.freebsd.org/api/units/190750/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:01.724433Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "The <_:buildtarget-1/> target is run. This is responsible for descending into the port's private working directory (<varname>WRKSRC</varname>) and building it." ], "previous_source": "", "target": [ "" ], "id_hash": -5564027665265962576, "content_hash": -5564027665265962576, "location": "book.translate.xml:721", "context": "", "note": "(itstool) path: step/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 120, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 20, "source_unit": "https://translate-dev.freebsd.org/api/units/110651/?format=api", "priority": 100, "id": 190751, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=32c89a51636051b0", "url": "https://translate-dev.freebsd.org/api/units/190751/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:01.733297Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "stage" ], "previous_source": "", "target": [ "" ], "id_hash": -6066059944682642538, "content_hash": -6066059944682642538, "location": "book.translate.xml:728, book.translate.xml:740", "context": "", "note": "(itstool) path: para/buildtarget", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 121, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/110652/?format=api", "priority": 100, "id": 190752, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=2bd1069ea2f72396", "url": "https://translate-dev.freebsd.org/api/units/190752/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:01.742776Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "The <_:buildtarget-1/> target is run. This puts the final set of built files into a temporary directory (<varname>STAGEDIR</varname>, see <xref linkend=\"staging\"/>). The hierarchy of this directory mirrors that of the system on which the package will be installed." ], "previous_source": "", "target": [ "" ], "id_hash": -420611027828071753, "content_hash": -420611027828071753, "location": "book.translate.xml:728", "context": "", "note": "(itstool) path: step/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 122, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 38, "source_unit": "https://translate-dev.freebsd.org/api/units/110653/?format=api", "priority": 100, "id": 190753, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=7a29b07fa9b222b7", "url": "https://translate-dev.freebsd.org/api/units/190753/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:01.752261Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "package" ], "previous_source": "", "target": [ "" ], "id_hash": -4052244908416663653, "content_hash": -4052244908416663653, "location": "book.translate.xml:737, book.translate.xml:747", "context": "", "note": "(itstool) path: para/buildtarget", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 123, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/92625/?format=api", "priority": 100, "id": 190754, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=47c388b9baf07f9b", "url": "https://translate-dev.freebsd.org/api/units/190754/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:01.770762Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "The <_:buildtarget-1/> target is run. This creates a package using the files from the temporary directory created during the <_:buildtarget-2/> target and the port's <filename>pkg-plist</filename>." ], "previous_source": "", "target": [ "" ], "id_hash": -4759655351969574285, "content_hash": -4759655351969574285, "location": "book.translate.xml:737", "context": "", "note": "(itstool) path: step/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 124, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 25, "source_unit": "https://translate-dev.freebsd.org/api/units/110654/?format=api", "priority": 100, "id": 190755, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=3df24eacd4911273", "url": "https://translate-dev.freebsd.org/api/units/190755/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:01.779681Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "The <_:buildtarget-1/> target is run. This installs the package created during the <_:buildtarget-2/> target into the host system." ], "previous_source": "", "target": [ "" ], "id_hash": -6094352131738531834, "content_hash": -6094352131738531834, "location": "book.translate.xml:745", "context": "", "note": "(itstool) path: step/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 125, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 18, "source_unit": "https://translate-dev.freebsd.org/api/units/110655/?format=api", "priority": 100, "id": 190756, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=2b6c830683948806", "url": "https://translate-dev.freebsd.org/api/units/190756/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:01.788611Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "pre-<replaceable>something</replaceable>" ], "previous_source": "", "target": [ "" ], "id_hash": 4406450182868289676, "content_hash": 4406450182868289676, "location": "book.translate.xml:754", "context": "", "note": "(itstool) path: para/buildtarget", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 126, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/110656/?format=api", "priority": 100, "id": 190757, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=bd26db184e51c88c", "url": "https://translate-dev.freebsd.org/api/units/190757/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:01.798116Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "post-<replaceable>something</replaceable>" ], "previous_source": "", "target": [ "" ], "id_hash": 4636262471486656966, "content_hash": 4636262471486656966, "location": "book.translate.xml:756", "context": "", "note": "(itstool) path: para/buildtarget", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 127, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/110657/?format=api", "priority": 100, "id": 190758, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=c0575027626fd1c6", "url": "https://translate-dev.freebsd.org/api/units/190758/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:01.807099Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "The above are the default actions. In addition, define targets <_:buildtarget-1/> or <_:buildtarget-2/>, or put scripts with those names, in the <filename>scripts</filename> subdirectory, and they will be run before or after the default actions are done." ], "previous_source": "", "target": [ "" ], "id_hash": -4809837016042234925, "content_hash": -4809837016042234925, "location": "book.translate.xml:752", "context": "", "note": "(itstool) path: sect1/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 128, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 36, "source_unit": "https://translate-dev.freebsd.org/api/units/110658/?format=api", "priority": 100, "id": 190759, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=3d4006b7af471bd3", "url": "https://translate-dev.freebsd.org/api/units/190759/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:01.815940Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "post-extract" ], "previous_source": "", "target": [ "" ], "id_hash": 4722518505542183187, "content_hash": 4722518505542183187, "location": "book.translate.xml:762, book.translate.xml:766, book.translate.xml:979, book.translate.xml:3922, book.translate.xml:4310, book.translate.xml:8683, book.translate.xml:23296", "context": "", "note": "(itstool) path: para/buildtarget", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 129, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/110659/?format=api", "priority": 100, "id": 190760, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=c189c18f500ce913", "url": "https://translate-dev.freebsd.org/api/units/190760/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:01.825081Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "For example, if there is a <_:buildtarget-1/> target defined in the <filename>Makefile</filename>, and a file <filename>pre-build</filename> in the <filename>scripts</filename> subdirectory, the <_:buildtarget-2/> target will be called after the regular extraction actions, and <filename>pre-build</filename> will be executed before the default build rules are done. It is recommended to use <filename>Makefile</filename> targets if the actions are simple enough, because it will be easier for someone to figure out what kind of non-default action the port requires." ], "previous_source": "", "target": [ "" ], "id_hash": -8388825685707181529, "content_hash": -8388825685707181529, "location": "book.translate.xml:761", "context": "", "note": "(itstool) path: sect1/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 130, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 74, "source_unit": "https://translate-dev.freebsd.org/api/units/110660/?format=api", "priority": 100, "id": 190761, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=0b94e77c18c03227", "url": "https://translate-dev.freebsd.org/api/units/190761/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:01.834188Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "do-<replaceable>something</replaceable>" ], "previous_source": "", "target": [ "" ], "id_hash": 5954110557898897231, "content_hash": 5954110557898897231, "location": "book.translate.xml:775, book.translate.xml:780", "context": "", "note": "(itstool) path: para/buildtarget", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 131, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/110661/?format=api", "priority": 100, "id": 190762, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=d2a1400194f7774f", "url": "https://translate-dev.freebsd.org/api/units/190762/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:01.843288Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "do-extract" ], "previous_source": "", "target": [ "" ], "id_hash": 472833874476481932, "content_hash": 472833874476481932, "location": "book.translate.xml:778, book.translate.xml:790, book.translate.xml:1242, book.translate.xml:8679, book.translate.xml:20716", "context": "", "note": "(itstool) path: para/buildtarget", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 132, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/110662/?format=api", "priority": 100, "id": 190763, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=868fd7e755f13d8c", "url": "https://translate-dev.freebsd.org/api/units/190763/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:01.854431Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "The default actions are done by the <_:buildtarget-1/> targets from <filename>bsd.port.mk</filename>. For example, the commands to extract a port are in the target <_:buildtarget-2/>. If the default target does not do the job right, redefine the <_:buildtarget-3/> target in the <filename>Makefile</filename>." ], "previous_source": "", "target": [ "" ], "id_hash": -8284834832484434478, "content_hash": -8284834832484434478, "location": "book.translate.xml:774", "context": "", "note": "(itstool) path: sect1/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 133, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 41, "source_unit": "https://translate-dev.freebsd.org/api/units/110663/?format=api", "priority": 100, "id": 190764, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=0d065a9d62fb7dd2", "url": "https://translate-dev.freebsd.org/api/units/190764/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:01.865795Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "post-deinstall" ], "previous_source": "", "target": [ "" ], "id_hash": 6591530464527126996, "content_hash": 6591530464527126996, "location": "book.translate.xml:793", "context": "", "note": "(itstool) path: para/buildtarget", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 134, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/110664/?format=api", "priority": 100, "id": 190765, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=db79d208b84e11d4", "url": "https://translate-dev.freebsd.org/api/units/190765/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:01.875577Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "The <quote>main</quote> targets (for example, <_:buildtarget-1/>, <_:buildtarget-2/>, etc.) do nothing more than make sure all the stages up to that one are completed and call the real targets or scripts, and they are not intended to be changed. To fix the extraction, fix <_:buildtarget-3/>, but never ever change the way <_:buildtarget-4/> operates! Additionally, the target <_:buildtarget-5/> is invalid and is not run by the ports infrastructure." ], "previous_source": "", "target": [ "" ], "id_hash": -4588771210604170005, "content_hash": -4588771210604170005, "location": "book.translate.xml:784", "context": "", "note": "(itstool) path: note/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 135, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 66, "source_unit": "https://translate-dev.freebsd.org/api/units/110665/?format=api", "priority": 100, "id": 190766, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=405168e5746634eb", "url": "https://translate-dev.freebsd.org/api/units/190766/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:01.887804Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "Now that what goes on when the user types <command>make install</command> is better understood, let us go through the recommended steps to create the perfect port." ], "previous_source": "", "target": [ "" ], "id_hash": -4169785428414706484, "content_hash": -4169785428414706484, "location": "book.translate.xml:797", "context": "", "note": "(itstool) path: sect1/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 136, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 26, "source_unit": "https://translate-dev.freebsd.org/api/units/110666/?format=api", "priority": 100, "id": 190767, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=4621f23ecdbdcccc", "url": "https://translate-dev.freebsd.org/api/units/190767/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:01.899025Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "Getting the Original Sources" ], "previous_source": "", "target": [ "" ], "id_hash": 8532221785389554232, "content_hash": 8532221785389554232, "location": "book.translate.xml:803", "context": "", "note": "(itstool) path: sect1/title", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 137, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 4, "source_unit": "https://translate-dev.freebsd.org/api/units/110667/?format=api", "priority": 100, "id": 190768, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=f6688a8216fe5a38", "url": "https://translate-dev.freebsd.org/api/units/190768/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:01.908679Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "Get the original sources (normally) as a compressed tarball (<filename>foo.tar.gz</filename> or <filename><replaceable>foo</replaceable>.tar.bz2</filename>) and copy it into <varname>DISTDIR</varname>. Always use <emphasis>mainstream</emphasis> sources when and where possible." ], "previous_source": "", "target": [ "" ], "id_hash": -2409471229050069543, "content_hash": -2409471229050069543, "location": "book.translate.xml:805", "context": "", "note": "(itstool) path: sect1/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 138, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 25, "source_unit": "https://translate-dev.freebsd.org/api/units/110668/?format=api", "priority": 100, "id": 190769, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=5e8fd6aedff25dd9", "url": "https://translate-dev.freebsd.org/api/units/190769/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:01.918050Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "Set the variable <varname>MASTER_SITES</varname> to reflect where the original tarball resides. Shorthand definitions exist for most mainstream sites in <filename>bsd.sites.mk</filename>. Please use these sites—and the associated definitions—if at all possible, to help avoid the problem of having the same information repeated over again many times in the source base. As these sites tend to change over time, this becomes a maintenance nightmare for everyone involved. See <xref linkend=\"makefile-master_sites\"/> for details." ], "previous_source": "", "target": [ "" ], "id_hash": 7288884704291606231, "content_hash": 7288884704291606231, "location": "book.translate.xml:812", "context": "", "note": "(itstool) path: sect1/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 139, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 70, "source_unit": "https://translate-dev.freebsd.org/api/units/110669/?format=api", "priority": 100, "id": 190770, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=e527520538144ed7", "url": "https://translate-dev.freebsd.org/api/units/190770/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:01.928216Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "If there is no FTP/HTTP site that is well-connected to the net, or can only find sites that have irritatingly non-standard formats, put a copy on a reliable FTP or HTTP server (for example, a home page)." ], "previous_source": "", "target": [ "" ], "id_hash": -9106169408301321712, "content_hash": -9106169408301321712, "location": "book.translate.xml:823", "context": "", "note": "(itstool) path: sect1/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 140, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 37, "source_unit": "https://translate-dev.freebsd.org/api/units/110670/?format=api", "priority": 100, "id": 190771, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=01a0632b71abb210", "url": "https://translate-dev.freebsd.org/api/units/190771/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:01.937937Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "If a convenient and reliable place to put the distfile cannot be found, we can <quote>house</quote> it ourselves on <systemitem>ftp.FreeBSD.org</systemitem>; however, this is the least-preferred solution. The distfile must be placed into <filename>~/public_distfiles/</filename> of someone's <systemitem>freefall</systemitem> account. Ask the person who commits the port to do this. This person will also set <varname>MASTER_SITES</varname> to <literal>LOCAL/<replaceable>username</replaceable></literal> where <literal><replaceable>username</replaceable></literal> is their FreeBSD cluster login." ], "previous_source": "", "target": [ "" ], "id_hash": 3140120470400540396, "content_hash": 3140120470400540396, "location": "book.translate.xml:829", "context": "", "note": "(itstool) path: sect1/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 141, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 62, "source_unit": "https://translate-dev.freebsd.org/api/units/110671/?format=api", "priority": 100, "id": 190772, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=ab93f2ee46281eec", "url": "https://translate-dev.freebsd.org/api/units/190772/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:01.946835Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "If the port's distfile changes all the time without any kind of version update by the author, consider putting the distfile on a home page and listing it as the first <varname>MASTER_SITES</varname>. Try to talk the port author out of doing this; it really does help to establish some kind of source code control. Hosting a specific version will prevent users from getting <errorname>checksum mismatch</errorname> errors, and also reduce the workload of maintainers of our FTP site. Also, if there is only one master site for the port, it is recommended to house a backup on a home page and list it as the second <varname>MASTER_SITES</varname>." ], "previous_source": "", "target": [ "" ], "id_hash": 6012857626013401415, "content_hash": 6012857626013401415, "location": "book.translate.xml:841", "context": "", "note": "(itstool) path: sect1/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 142, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 106, "source_unit": "https://translate-dev.freebsd.org/api/units/110672/?format=api", "priority": 100, "id": 190773, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=d371f62743870147", "url": "https://translate-dev.freebsd.org/api/units/190773/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:01.956578Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "If the port requires additional patches that are available on the Internet, fetch them too and put them in <varname>DISTDIR</varname>. Do not worry if they come from a site other than where the main source tarball comes, we have a way to handle these situations (see the description of <link linkend=\"porting-patchfiles\">PATCHFILES</link> below)." ], "previous_source": "", "target": [ "" ], "id_hash": -6413992494104805842, "content_hash": -6413992494104805842, "location": "book.translate.xml:854", "context": "", "note": "(itstool) path: sect1/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 143, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 52, "source_unit": "https://translate-dev.freebsd.org/api/units/110673/?format=api", "priority": 100, "id": 190774, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=26fcebcf34dc7e2e", "url": "https://translate-dev.freebsd.org/api/units/190774/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:01.967134Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "Modifying the Port" ], "previous_source": "", "target": [ "" ], "id_hash": -1832753436076992715, "content_hash": -1832753436076992715, "location": "book.translate.xml:862", "context": "", "note": "(itstool) path: sect1/title", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 144, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 3, "source_unit": "https://translate-dev.freebsd.org/api/units/110674/?format=api", "priority": 100, "id": 190775, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=6690c075d1c11735", "url": "https://translate-dev.freebsd.org/api/units/190775/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:01.977309Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "Unpack a copy of the tarball in a private directory and make whatever changes are necessary to get the port to compile properly under the current version of FreeBSD. Keep <emphasis>careful track</emphasis> of steps, as they will be needed to automate the process shortly. Everything, including the deletion, addition, or modification of files has to be doable using an automated script or patch file when the port is finished." ], "previous_source": "", "target": [ "" ], "id_hash": -8459889954558759802, "content_hash": -8459889954558759802, "location": "book.translate.xml:864", "context": "", "note": "(itstool) path: sect1/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 145, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 69, "source_unit": "https://translate-dev.freebsd.org/api/units/110675/?format=api", "priority": 100, "id": 190776, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=0a986ee8a3a12c86", "url": "https://translate-dev.freebsd.org/api/units/190776/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:01.986958Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "If the port requires significant user interaction/customization to compile or install, take a look at one of Larry Wall's classic <application>Configure</application> scripts and perhaps do something similar. The goal of the new ports collection is to make each port as <quote>plug-and-play</quote> as possible for the end-user while using a minimum of disk space." ], "previous_source": "", "target": [ "" ], "id_hash": 1908600822440514126, "content_hash": 1908600822440514126, "location": "book.translate.xml:873", "context": "", "note": "(itstool) path: sect1/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 146, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 53, "source_unit": "https://translate-dev.freebsd.org/api/units/110676/?format=api", "priority": 100, "id": 190777, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=9a7cb655f795d24e", "url": "https://translate-dev.freebsd.org/api/units/190777/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:01.996509Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "Unless explicitly stated, patch files, scripts, and other files created and contributed to the FreeBSD ports collection are assumed to be covered by the standard BSD copyright conditions." ], "previous_source": "", "target": [ "" ], "id_hash": 9148844994794226818, "content_hash": 9148844994794226818, "location": "book.translate.xml:883", "context": "", "note": "(itstool) path: note/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 147, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 28, "source_unit": "https://translate-dev.freebsd.org/api/units/110677/?format=api", "priority": 100, "id": 190778, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=fef73a0cd3d20482", "url": "https://translate-dev.freebsd.org/api/units/190778/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:02.005846Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "Patching" ], "previous_source": "", "target": [ "" ], "id_hash": 9082436729499825098, "content_hash": 9082436729499825098, "location": "book.translate.xml:891", "context": "", "note": "(itstool) path: sect1/title", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 148, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 1, "source_unit": "https://translate-dev.freebsd.org/api/units/110678/?format=api", "priority": 100, "id": 190779, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=fe0b4c15accc33ca", "url": "https://translate-dev.freebsd.org/api/units/190779/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:02.015020Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "In the preparation of the port, files that have been added or changed can be recorded with <citerefentry><refentrytitle>diff</refentrytitle><manvolnum>1</manvolnum></citerefentry> for later feeding to <citerefentry><refentrytitle>patch</refentrytitle><manvolnum>1</manvolnum></citerefentry>. Doing this with a typical file involves saving a copy of the original file before making any changes using a <filename>.orig</filename> suffix." ], "previous_source": "", "target": [ "" ], "id_hash": 2449349632578204349, "content_hash": 2449349632578204349, "location": "book.translate.xml:893", "context": "", "note": "(itstool) path: sect1/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 149, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 45, "source_unit": "https://translate-dev.freebsd.org/api/units/110679/?format=api", "priority": 100, "id": 190780, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=a1fdd6837c8eb2bd", "url": "https://translate-dev.freebsd.org/api/units/190780/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:02.024418Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "<prompt>%</prompt> <userinput>cp <replaceable>file</replaceable> <replaceable>file</replaceable>.orig</userinput>" ], "previous_source": "", "target": [ "" ], "id_hash": 8567026590604900542, "content_hash": 8567026590604900542, "location": "book.translate.xml:899", "context": "", "note": "(itstool) path: sect1/screen", "flags": "no-wrap", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 150, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 4, "source_unit": "https://translate-dev.freebsd.org/api/units/110680/?format=api", "priority": 100, "id": 190781, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=f6e4314b4a54b8be", "url": "https://translate-dev.freebsd.org/api/units/190781/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:02.035030Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "After all changes have been made, <command>cd</command> back to the port directory. Use <command>make makepatch</command> to generate updated patch files in the <filename>files</filename> directory." ], "previous_source": "", "target": [ "" ], "id_hash": 7741764578114501676, "content_hash": 7741764578114501676, "location": "book.translate.xml:901", "context": "", "note": "(itstool) path: sect1/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 151, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 24, "source_unit": "https://translate-dev.freebsd.org/api/units/110681/?format=api", "priority": 100, "id": 190782, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=eb7045ddbd377c2c", "url": "https://translate-dev.freebsd.org/api/units/190782/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:02.044408Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "Use <varname>BINARY_ALIAS</varname> to substitute hardcoded commands during the build and avoid patching build files. See <xref linkend=\"binary-alias\"/> for more information." ], "previous_source": "", "target": [ "" ], "id_hash": 5037730554550812526, "content_hash": 5037730554550812526, "location": "book.translate.xml:907", "context": "", "note": "(itstool) path: tip/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 152, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 20, "source_unit": "https://translate-dev.freebsd.org/api/units/110682/?format=api", "priority": 100, "id": 190783, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=c5e99d3f9221ff6e", "url": "https://translate-dev.freebsd.org/api/units/190783/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:02.055561Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "General Rules for Patching" ], "previous_source": "", "target": [ "" ], "id_hash": 8821994633002853548, "content_hash": 8821994633002853548, "location": "book.translate.xml:914", "context": "", "note": "(itstool) path: sect2/title", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 153, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 4, "source_unit": "https://translate-dev.freebsd.org/api/units/110683/?format=api", "priority": 100, "id": 190784, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=fa6e0560b689a4ac", "url": "https://translate-dev.freebsd.org/api/units/190784/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:02.067107Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "Patch files are stored in <varname>PATCHDIR</varname>, usually <filename>files/</filename>, from where they will be automatically applied. All patches must be relative to <varname>WRKSRC</varname>. Typically <varname>WRKSRC</varname> is a subdirectory of <varname>WRKDIR</varname>, the directory where the distfile is extracted. Use <command>make -V WRKSRC</command> to see the actual path. The patch names are to follow these rules:" ], "previous_source": "", "target": [ "" ], "id_hash": 5098294453130243798, "content_hash": 5098294453130243798, "location": "book.translate.xml:916", "context": "", "note": "(itstool) path: sect2/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 154, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 53, "source_unit": "https://translate-dev.freebsd.org/api/units/110684/?format=api", "priority": 100, "id": 190785, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=c6c0c7cb0f2c2ed6", "url": "https://translate-dev.freebsd.org/api/units/190785/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:02.077891Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "Avoid having more than one patch modify the same file. For example, having both <filename>patch-foobar.c</filename> and <filename>patch-foobar.c2</filename> making changes to <filename>${WRKSRC}/foobar.c</filename> makes them fragile and difficult to debug." ], "previous_source": "", "target": [ "" ], "id_hash": 8869726144903200740, "content_hash": 8869726144903200740, "location": "book.translate.xml:928", "context": "", "note": "(itstool) path: listitem/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 155, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 28, "source_unit": "https://translate-dev.freebsd.org/api/units/110685/?format=api", "priority": 100, "id": 190786, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=fb1798ef59f33fe4", "url": "https://translate-dev.freebsd.org/api/units/190786/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:02.087292Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "When creating names for patch files, replace each underscore (<literal>_</literal>) with two underscores (<literal>__</literal>) and each slash (<literal>/</literal>) with one underscore (<literal>_</literal>). For example, to patch a file named <filename>src/freeglut_joystick.c</filename>, name the corresponding patch <filename>patch-src_freeglut__joystick.c</filename>. Do not name patches like <filename>patch-aa</filename> or <filename>patch-ab</filename>. Always use the path and file name in patch names. Using <command>make makepatch</command> automatically generates the correct names." ], "previous_source": "", "target": [ "" ], "id_hash": 8335673122525902965, "content_hash": 8335673122525902965, "location": "book.translate.xml:937", "context": "", "note": "(itstool) path: listitem/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 156, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 61, "source_unit": "https://translate-dev.freebsd.org/api/units/110686/?format=api", "priority": 100, "id": 190787, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=f3ae428a67ed7875", "url": "https://translate-dev.freebsd.org/api/units/190787/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:02.096963Z" }, { "translation": "https://translate-dev.freebsd.org/api/translations/freebsd-doc/boooks_porters-handbook/zh_CN/?format=api", "source": [ "A patch may modify multiple files if the changes are related and the patch is named appropriately. For example, <filename>patch-add-missing-stdlib.h</filename>." ], "previous_source": "", "target": [ "" ], "id_hash": 7972638058513432214, "content_hash": 7972638058513432214, "location": "book.translate.xml:953", "context": "", "note": "(itstool) path: listitem/para", "flags": "", "labels": [], "state": 0, "fuzzy": false, "translated": false, "approved": false, "position": 157, "has_suggestion": false, "has_comment": false, "has_failing_check": false, "num_words": 20, "source_unit": "https://translate-dev.freebsd.org/api/units/110687/?format=api", "priority": 100, "id": 190788, "web_url": "https://translate-dev.freebsd.org/translate/freebsd-doc/boooks_porters-handbook/zh_CN/?checksum=eea48012c873fe96", "url": "https://translate-dev.freebsd.org/api/units/190788/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2020-07-16T14:50:02.106788Z" } ] }{ "count": 9951, "next": "