Unit Instance
Units API.
See the Weblate's Web API documentation for detailed description of the API.
GET /api/units/1161122/?format=api
https://translate-dev.freebsd.org/api/translations/documentation/booksporters-handbookplist_index/en/?format=api", "source": [ "actions: [file(1)]\narguments: true\npost-install: <<EOD\n case \"%1\" in\n /*) sample_file=\"%1\" ;;\n *) sample_file=\"%D/%1\" ;;\n esac\n target_file=\"${sample_file%.sample}\"\n set -- %@\n if [ $# -eq 2 ]; then\n target_file=${2}\n fi\n case \"${target_file}\" in\n /*) target_file=\"${target_file}\" ;;\n *) target_file=\"%D/${target_file}\" ;;\n esac\n if ! [ -f \"${target_file}\" ]; then\n /bin/cp -p \"${sample_file}\" \"${target_file}\" && \\\n /bin/chmod u+w \"${target_file}\"\n fi\nEOD\npre-deinstall: <<EOD\n case \"%1\" in\n /*) sample_file=\"%1\" ;;\n *) sample_file=\"%D/%1\" ;;\n esac\n target_file=\"${sample_file%.sample}\"\n set -- %@\n if [ $# -eq 2 ]; then\n set -- %@\n target_file=${2}\n fi\n case \"${target_file}\" in\n /*) target_file=\"${target_file}\" ;;\n *) target_file=\"%D/${target_file}\" ;;\n esac\n if cmp -s \"${target_file}\" \"${sample_file}\"; then\n rm -f \"${target_file}\"\n else\n echo \"You may need to manually remove ${target_file} if it is no longer needed.\"\n fi\nEOD\n" ], "previous_source": "", "target": [ "actions: [file(1)]\narguments: true\npost-install: <<EOD\n case \"%1\" in\n /*) sample_file=\"%1\" ;;\n *) sample_file=\"%D/%1\" ;;\n esac\n target_file=\"${sample_file%.sample}\"\n set -- %@\n if [ $# -eq 2 ]; then\n target_file=${2}\n fi\n case \"${target_file}\" in\n /*) target_file=\"${target_file}\" ;;\n *) target_file=\"%D/${target_file}\" ;;\n esac\n if ! [ -f \"${target_file}\" ]; then\n /bin/cp -p \"${sample_file}\" \"${target_file}\" && \\\n /bin/chmod u+w \"${target_file}\"\n fi\nEOD\npre-deinstall: <<EOD\n case \"%1\" in\n /*) sample_file=\"%1\" ;;\n *) sample_file=\"%D/%1\" ;;\n esac\n target_file=\"${sample_file%.sample}\"\n set -- %@\n if [ $# -eq 2 ]; then\n set -- %@\n target_file=${2}\n fi\n case \"${target_file}\" in\n /*) target_file=\"${target_file}\" ;;\n *) target_file=\"%D/${target_file}\" ;;\n esac\n if cmp -s \"${target_file}\" \"${sample_file}\"; then\n rm -f \"${target_file}\"\n else\n echo \"You may need to manually remove ${target_file} if it is no longer needed.\"\n fi\nEOD\n" ], "id_hash": -417901472695729015, "content_hash": -417901472695729015, "location": "documentation/content/en/books/porters-handbook/plist/_index.adoc:692", "context": "", "note": "type: delimited block . 4", "flags": "no-wrap", "labels": [], "state": 100, "fuzzy": false, "translated": true, "approved": false, "position": 184, "has_suggestion": false, "has_comment": false, "has_failing_check": true, "num_words": 121, "source_unit": "https://translate-dev.freebsd.org/api/units/1161122/?format=api", "priority": 100, "id": 1161122, "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksporters-handbookplist_index/en/?checksum=7a3350d320dbc489", "url": "https://translate-dev.freebsd.org/api/units/1161122/?format=api", "explanation": "", "extra_flags": "", "pending": false, "timestamp": "2021-05-23T13:26:42.705182Z" }{ "translation": "