{"id":977,"date":"2015-09-17T18:34:07","date_gmt":"2015-09-17T09:34:07","guid":{"rendered":"http:\/\/matoken.org\/blog\/?p=977"},"modified":"2015-09-19T08:57:30","modified_gmt":"2015-09-18T23:57:30","slug":"ts-method-of-the-translation-of-the-translation-file","status":"publish","type":"post","link":"https:\/\/matoken.org\/blog\/2015\/09\/17\/ts-method-of-the-translation-of-the-translation-file\/","title":{"rendered":"\u7ffb\u8a33\u30d5\u30a1\u30a4\u30eb\u306e .ts \u306e\u7ffb\u8a33\u65b9\u6cd5"},"content":{"rendered":"<p>\u7ffb\u8a33\u30d5\u30a1\u30a4\u30eb\u306e <code style=\"font-family: VL Gothic;\">.ts<\/code> \u306f <code style=\"font-family: VL Gothic;\">Poedit<\/code> \u3067\u306f\u958b\u3051\u306a\u3044\uff0e<code style=\"font-family: VL Gothic;\">Qt Linguist<\/code> \u3068\u3044\u3046\u3082\u306e\u304c\u4f7f\u3048\u308b\u305d\u3046\u306a\u306e\u3067\u3000Debian \u3060\u3068 wheezy-backports \u4ee5\u964d\u306b\u5b58\u5728\u3059\u308b qttools5-dev-tools \u3092\u5c0e\u5165\u3059\u308b\uff0e<\/p>\n<pre class=\"editor-colors lang-text\"><div class=\"line\"><span class=\"text plain\"><span class=\"meta paragraph text\"><span>%&nbsp;sudo&nbsp;apt&nbsp;install&nbsp;qttools5-dev-tools<\/span><\/span><\/span><\/div><div class=\"line\"><span class=\"text plain\"><span class=\"meta paragraph text\"><span>%&nbsp;\/usr\/lib\/x86_64-linux-gnu\/qt5\/bin\/linguist<\/span><\/span><\/span><\/div><\/pre>\n<p><a data-flickr-embed=\"true\" href=\"https:\/\/www.flickr.com\/photos\/119142834@N05\/20864782534\/in\/dateposted-public\/\" title=\"20150917_18:09:30-3415\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/farm6.staticflickr.com\/5666\/20864782534_d83d98076b_o.jpg\" width=\"443\" height=\"434\" alt=\"20150917_18:09:30-3415\"><\/a><\/p>\n<p><a data-flickr-embed=\"true\" href=\"https:\/\/www.flickr.com\/photos\/119142834@N05\/20864782484\/in\/dateposted-public\/\" title=\"20150917_18:09:24-3340\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/farm6.staticflickr.com\/5648\/20864782484_a217f9527a.jpg\" width=\"500\" height=\"400\" alt=\"20150917_18:09:24-3340\"><\/a><\/p>\n<p>\u7ffb\u8a33\u3057\u3066\u4fdd\u5b58\uff0c\u300c\u30d5\u30a1\u30a4\u30eb\u300d-&gt;\u300c\u30ea\u30ea\u30fc\u30b9\u300d\u3067 <code style=\"font-family: VL Gothic;\">.ts<\/code> \u304b\u3089 <code style=\"font-family: VL Gothic;\">.qm<\/code> \u304c\u4f5c\u3089\u308c\u308b\uff0e\u3053\u308c\u3092\u30b3\u30d4\u30fc\u3057\u3066\u5bfe\u8c61\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u8d77\u52d5\u3059\u308b\u3068\u7ffb\u8a33\u304c\u53cd\u6620\u3055\u308c\u308b\u306f\u305a\uff0e<\/p>\n<pre class=\"editor-colors lang-text\"><div class=\"line\"><span class=\"text plain\"><span class=\"meta paragraph text\"><span>%&nbsp;sudo&nbsp;cp&nbsp;.\/retext_ja.??&nbsp;\/usr\/share\/retext\/locale<\/span><\/span><\/span><\/div><\/pre>\n<p>\uff1c\u8ffd\u8a18\uff1e<br \/>\n\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067\u5909\u63db\u3059\u308b\u5834\u5408\u306f <code style=\"font-family: VL Gothic;\">qtchooser<\/code> \u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u542b\u307e\u308c\u308b <code style=\"font-family: VL Gothic;\">lrelease<\/code> \u304c\u5229\u7528\u3067\u304d\u308b\uff0e<\/p>\n<pre class=\"editor-colors lang-text\"><div class=\"line\"><span class=\"text plain\"><span class=\"meta paragraph text\"><span>%&nbsp;lrelease&nbsp;.\/retext_ja.ts&nbsp;-qm&nbsp;.\/retext_ja.qm<\/span><\/span><\/span><\/div><\/pre>\n<p>\u82e5\u3057\u304f\u306f\u540c\u30d1\u30c3\u30b1\u30fc\u30b8\u306e <code style=\"font-family: VL Gothic;\">lconvert<\/code> \u3067\u3082ok\uff0e\u3053\u308c\u306f qm \u304b\u3089 ts \u3078\u306e\u5909\u63db\u3084 <code style=\"font-family: VL Gothic;\">pot \/ po \/ qph \/ xlf<\/code> \u306b\u3082\u5bfe\u5fdc\u3057\u3066\u3044\u308b\uff0e<\/p>\n<pre class=\"editor-colors lang-text\"><div class=\"line\"><span class=\"text plain\"><span class=\"meta paragraph text\"><span>%&nbsp;lconvert&nbsp;-i&nbsp;retext_ja.ts&nbsp;-o&nbsp;retext_ja2.qm<\/span><\/span><\/span><\/div><div class=\"line\"><span class=\"text plain\"><span class=\"meta paragraph text\"><span>%&nbsp;lconvert&nbsp;-if&nbsp;qm&nbsp;-i&nbsp;retext_ja.qm&nbsp;-of&nbsp;ts&nbsp;-o&nbsp;retext_ja2.ts<\/span><\/span><\/span><\/div><\/pre>\n<p>\uff1c\uff0f\u8ffd\u8a18\uff1e<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7ffb\u8a33\u30d5\u30a1\u30a4\u30eb\u306e .ts \u306f Poedit \u3067\u306f\u958b\u3051\u306a\u3044\uff0eQt Linguist \u3068\u3044\u3046\u3082\u306e\u304c\u4f7f\u3048\u308b\u305d\u3046\u306a\u306e\u3067\u3000Debian \u3060\u3068 wheezy-backports \u4ee5\u964d\u306b\u5b58\u5728\u3059\u308b qttools5-dev-tools \u3092 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"webmentions_disabled_pings":false,"webmentions_disabled":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[7,6],"tags":[276,275,290,286],"class_list":["post-977","post","type-post","status-publish","format-standard","hentry","category-debian-linux","category-linux","tag-debian-linux","tag-linux","tag-stretch","tag-286"],"_links":{"self":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/977","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/comments?post=977"}],"version-history":[{"count":0,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/977\/revisions"}],"wp:attachment":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/media?parent=977"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/categories?post=977"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/tags?post=977"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}