タグ

2015年3月13日のブックマーク (2件)

  • YAML and Maps in Go

    This wasn’t exactly clear. When using the gopkg.in/yaml.v2 (or gopkg.in/yaml.v1) packages, I was confused as to what to do with my data structure. Let’s say we start off with this file.yml: description: fruits are delicious fruits: apple: - red - sweet lemon: - yellow - sour Here’s a complete example to read this file in and you get a parsed data structure out of it: package main import ( "fmt" "g

  • Conyac: GetTextを用いたローカライズ方法

    概要 GetTextはソフトウェアの国際化と地域化のための開発ライブラリ・コマンド群です。 GetTextを用いることで、開発と翻訳の役割を切り離し、効率的に作業を行うことができます。 POT, PO, MO Fileの説明 POT (Potable Object Template) - ソースファイルから生成される翻訳リソースの基となるファイル PO (Portable Object) - POT Fileを基に各言語に翻訳したファイル MO (Machine Object) - PO Fileと同じ内容が記されたバイナリ形式のファイル .potファイルや現状の.poファイルを編集し、.poファイルと.moファイルとして出力できます。 POT File と PO Fileの違い .potファイルと.poファイルは基的には同じですが、使用方法に違いがあります。 翻訳者は.potファイルを

    Conyac: GetTextを用いたローカライズ方法