Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gVZPB-0006Iw-13 for pgsql-translators@arkaria.postgresql.org; Sat, 08 Dec 2018 10:00:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gVZP9-00051O-5x for pgsql-translators@arkaria.postgresql.org; Sat, 08 Dec 2018 10:00:11 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gVZP8-00051H-QG for pgsql-translators@lists.postgresql.org; Sat, 08 Dec 2018 10:00:11 +0000 Received: from mail-lf1-x141.google.com ([2a00:1450:4864:20::141]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gVZP5-0001v6-2g for pgsql-translators@postgresql.org; Sat, 08 Dec 2018 10:00:09 +0000 Received: by mail-lf1-x141.google.com with SMTP id l10so4757757lfh.9 for ; Sat, 08 Dec 2018 02:00:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=/VLAxD+reb9q++QCzGQShPGGbKzw17hTIkC2FDaQ6fY=; b=heoRobU732U9sVG59ZAHsCqiv2W/YMUbZUL1PWjr7aT8XCNjgPcBVA5w9Q+cpNAnHZ u5IR9JVBLG/NwfsqtrmhBpQzSdCOmIlQBwfKrtg1tCa/cCLhKjLdpThW33+c437jW9Gd tGNEFCoO9P183n2yeow+Vl1ddhfZrPeYlkR0NkwPYAF6zrqOodNd3+pHS3D/oDT0fR75 4YXedVsrgXXc+TAp3t6bU64gWg4JzEuGoRe1q/IarO8S9q4snowRfMN9fSFX7e/UHa51 onapjqBoZJPUaDr2S00RGPAB1Mu7enZuC8Su1jDqx/7NGTEK40eFUjVt1yOKMPWUyIcK fvhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=/VLAxD+reb9q++QCzGQShPGGbKzw17hTIkC2FDaQ6fY=; b=WwWhYwa5c5eieYjyUuIF/6cQHpwXOasLD2yX4yxlRozUloqQQK1DAb3hsEl+n4jmR4 10ZGckiwOWZZFC4J7jF/4pGMIzywpHEr+MKUTLJS8BPSUg6BjEh9cuG2ITzV/IMzSKTn WArjsM1LyhfGbnWyeMDP92xlqhVuYM/BRBnxGB9FqmD0kgO7kLeqTwLulivtU5rj8uS1 y3mVb70Sv4qBK85lNkcUf9NzLkxWTAktP7BFZzkDFJ51Bf6PeBHFG8fjZVD7MSAuTPE2 BTbvBqZmoNsIYbcOTNAs086qqOgIIs0IZgE8dIzxMO8tE+5/GRGOF/ajqXtqVyYbp56I 492g== X-Gm-Message-State: AA+aEWZYegLKFjx440Z0/RK42EU6xPCcEuq+leL7EQDUO6AM7lXV1Yp0 2u0QKBodJ0Deh4lNtGNAx/j/93Ej X-Google-Smtp-Source: AFSGD/X+vCFDolkpwhp1WvAmkpmQ0PFN1kMXq0zALa9JePQ/7IXomjQRwg+9tw1uA2kVprt2q/11zQ== X-Received: by 2002:a19:c650:: with SMTP id w77mr3221175lff.56.1544263203386; Sat, 08 Dec 2018 02:00:03 -0800 (PST) Received: from [1.0.0.7] ([178.155.4.177]) by smtp.gmail.com with ESMTPSA id p186sm1056911lfd.83.2018.12.08.02.00.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 08 Dec 2018 02:00:02 -0800 (PST) Subject: Re: API for babel.postgresql.org To: Pavlo Golub Cc: Peter Eisentraut , pgsql-translators@postgresql.org References: From: Alexander Lakhin Message-ID: <94b47d78-b0f0-c708-fa7f-beb93a103b2b@gmail.com> Date: Sat, 8 Dec 2018 13:00:01 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="------------4DE19FA1C928334108ECCC13" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------4DE19FA1C928334108ECCC13 Content-Type: multipart/alternative; boundary="------------6C4AD6094C6D00B339C9F0F7" --------------6C4AD6094C6D00B339C9F0F7 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 08.12.2018 11:13, Pavlo Golub wrote: > > > I can share my scripts if it can be useful for you. > > > Yes, please. Would be awesome. Thanks > Please look at the attached archive. After extracting it, you should place pology (I use 0.12) in pg-messages/ and run ./update-po.sh. (The script with create .tmp with the temporary files, so you can remove it later if you wish.) You will get all united po's in postgresql/. It supposed that you will work with them using some l10n tools. (I use Lokalize). After translation you  can run ./scatter.sh and get all the messages scattered by versions in .tmp/messages-$VER.git. The scripts are intended for 'ru' translation, but you can easily switch to another language. Any feedback is welcome. Best regards, Alexander --------------6C4AD6094C6D00B339C9F0F7 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

08.12.2018 11:13, Pavlo Golub wrote:


I can share my scripts if it can be useful for you.

Yes, please. Would be awesome. Thanks


Please look at the attached archive. After extracting it, you should place pology (I use 0.12) in pg-messages/ and run ./update-po.sh.
(The script with create .tmp with the temporary files, so you can remove it later if you wish.)
You will get all united po's in postgresql/. It supposed that you will work with them using some l10n tools. (I use Lokalize).
After translation you  can run ./scatter.sh and get all the messages scattered by versions in .tmp/messages-$VER.git.
The scripts are intended for 'ru' translation, but you can easily switch to another language.
Any feedback is welcome.

Best regards,
Alexander



--------------6C4AD6094C6D00B339C9F0F7-- --------------4DE19FA1C928334108ECCC13 Content-Type: application/x-bzip; name="pg-messages.tar.bz2" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="pg-messages.tar.bz2" QlpoOTFBWSZTWcSUSJQACGz/kt6QACB/9//7f+f/+v////4EAABAABhgB/8nsZAaBoBoAAAA BqZJNqbRTTzUg9QeRpqaNPUMjRp6QZDQAAAAAOGhoyaNGjTQyMhhAGQAyDTQAAMgZAOGhoya NGjTQyMhhAGQAyDTQAAMgZAGJNShiBoyaG1NDR6jQDIADQAAAAaDQOGhoyaNGjTQyMhhAGQA yDTQAAMgZAEiRNAQ0AIaI0wjTRTYUMIzJomjTZRpo2QjaE9wj+31n7cUuMO5PMhmVsadohBo GIq5eayViD8UwR96KxQNDEgbaSqQobBDt+nh7rfX5aeYltqb9HAbBFP9hQK+0ZNQgxQaWJvJ fiSIXE2AJuch5rBWva/9NZLYjeRUpQIqm4A+l90CUhdKAABhCK7i61tUlCINTVO+mfT4lidC GFHFHEBEvBBIzpb0Ag4QVFa9RhdKaH7umcpjFvbmHEI8aPCgaLRHT4RuYJArEkB7UrT5YWum a3GoZmgdOX3XTq+oYvDXEQdhy2tlkxwcls9wEzhEmKnPyHxgZEFRkX+Ky//2YkX97KdEC26y AahnLwD4aQ+6JAMGXFajphTjDM27NTbdU8VGiZncIQknHfnSAU5ibDkPEM6ZiqBXcJFdcroV OUbC2IDsoAUlz4a5nmDLSOEe9SuLd6qjXwiuh6T8JleRRsiRUglDePRZhAzJINPkRuC0jYMP PzQGjhw5agqP38BnyHBB5QY0coHZdhfhv2ngjmtvDypYaiA+V/oSCF5Eigig0xEEicyamMOo cmSGlA4aEfG/pSgkSAgIA50iSRznFH3Dyk4O0IyH0pGdB0lvTQikBYBH864ItC5FSRQOgPUu cDGKlZNKYMGJkFAvSqAGjq9s/BAyKvg2KTJIQRRTo3bxvB5TRQNoDjNcNe3moAaFiYcUCazC SSSR7Eq3diD/qsZemc8KIMw+6V23dqkH2nSWhUv7HaFez++fA8aVoW9R0S8WWlEzNj6OjNL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