Web Translation tool

Oliver Kellogg olivermkellogg at gmail.com
Fri Apr 5 19:55:16 BST 2024


I had come across that exact question and made a script that does this (for
eo), see
https://websvn.kde.org/trunk/l10n-support/eo/scripts/svncopy2po.sh?view=log
It  is somewhat specific for my purposes, e.g. the language is hard coded
and on creating the pot -> po copy a further script is called which
pre-translates commonly found strings using a translation database (
initpo.pl)
but with a bit of stripping down it could be useful.

Hope this helps,

Oliver


On Fri, Apr 5, 2024 at 7:38 PM Yaron Shahrabani <sh.yaron at gmail.com> wrote:

> I failed to explain.
> I can update the existing po files with the pot equivalent from the
> templates.
> But if the po file is missing, bit there is a pot file it won't be created
> automatically.
> Does that make sense?
>
> On Tue, 2 Apr 2024, 20:59 Łukasz Wojniłowicz, <
> lukasz.wojnilowicz at gmail.com> wrote:
>
>> Hi,
>>
>> do you know that you can svn checkout
>> svn+ssh://svn@svn.kde.org/home/kde/trunk/l10n-kf6/templates for the
>> right side of your picture and have it updated automatically afterwards?
>> Templates are common for all languages.
>>
>> Cheers,
>> Łukasz
>>
>> On Mon, 1 Apr 2024 14:18:50 +0300
>> Yaron Shahrabani <sh.yaron at gmail.com> wrote:
>>
>> > Hey,
>> > This is the diagram:
>> >
>> >         Local copy                        Template copy
>> >       ┌──────────────────────┐         ┌─────────────────────────────┐
>> >       │  alpaka.po           │         │  alpaka.pot                 │
>> >       │                      │         │                             │
>> >       │  alpaka._desktop_.po │         │  alpaka._desktop_.pot       │
>> >       │                      │         │                             │
>> >       │                      │         │  org.kde.alpaka.metainfo.pot│
>> >
>> >       └──────────────────────┘         └─────────────────────────────┘
>> >
>> > Let's assume that I translated the part on the left and these files
>> > are 100% complete, when I'm updating my local copy against the SVN
>> > I'm not getting any new updates unless scripty merged them with their
>> > corresponding POT files.
>> > For existing files, it works great, but if I have new files (in the
>> > templates) I can't fetch them automatically unless I'm either
>> > fetching them manually from the templates or looking at the UI and
>> > finding that there are missing strings in an app I've already fully
>> > translated.
>> >
>> > I hope it makes sense.
>> > Yaron Shahrabani
>> >
>> > <DevOps - Hebrew translator>
>> >
>> >
>> >
>> > On Mon, Apr 1, 2024 at 10:46 AM Łukasz Wojniłowicz <
>> > lukasz.wojnilowicz at gmail.com> wrote:
>> >
>> > > Hi, and no problem.
>> > >
>> > > On Sun, 31 Mar 2024 12:22:23 +0300
>> > > Yaron Shahrabani <sh.yaron at gmail.com> wrote:
>> > >
>> > > > Hi, and thank you for your patience and for going deeper into this
>> > > > with me. This is what I'm experiencing (Hypothetically because I
>> > > > can't remember where it was precisely):
>> > > > Several months ago, I downloaded a package with 3 POT files.
>> > > > Several months later, a fourth file appeared (usually the _json
>> > > > one).
>> > >
>> > > A package like a tarball?
>> > >
>> > > > My local repo appears complete, and there's no way for me to know
>> > > > that there's a new POT file just by syncing my copy. I either
>> > > > need to look at the web UI or make a comparison with the
>> > > > templates.
>> > >
>> > > Have you already tried using projects in Lokalize and "svn
>> > > update" command on templates (aka POT files)?
>> > >
>> > > > I can indeed write a script to solve that but given the time I can
>> > > > spend, I'd instead look at the web UI and solve this manually.
>> > > > Localization platforms inform you when a new module/file is
>> > > > added, so you don't need to check manually in addition to all the
>> > > > other operations that don't require any manual involvement.
>> > >
>> > > Cheers,
>> > > Łukasz
>> > >
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-i18n-doc/attachments/20240405/cf163b48/attachment-0001.htm>


More information about the kde-i18n-doc mailing list