Re: Automatic file.pot to lng/file.po downloader script

[email protected] Tue, 23 Dec 2025 10:24:22 +0900
Newsgroups gmane.comp.kde.devel.internationalization-and-documentation
Message-ID <[email protected]>
Lokalize shows files that only have a template together with partially and fully translated files if you set up the directory structure right, like if you have

templates/messages/foo/foo.pot

templates/messages/bar/bar.pot

my-lang/messages/foo/foo.po

[no bar.po in my-lang]

then in a Lokalize project/workspace opened as my-lang/index.lokalize, it would show

messages/

foo/

foo.po

bar/

bar.pot

Then when opening bar.pot, Lokalize automatically copies the template to your target language.

Symlinks work as expected.

---

I also recommend doing an svn checkout even if you aren't a committer, as it allows you to grep for all po files for your language for all KDE projects. Use svn checkout on the anonymous read-only URL shown on websvn.kde.org to make a local copy; use svn update in the copy to pull changes from the server; if you use the read-only URL there is no risk of messing things up on the server.

Currently translations are in SVN while templates have moved to a git repository (https://invent.kde.org/localization/l10n-templates).

2025/12/23 7:40 Agron <[email protected]>:

Hi all,

Does anyone have a script that downloads all .pot files and places them in the correct folder for a specific language? If there is no existing .po of course.This would be very helpful for my current workflow.

Additionally, I am curious why these .pot files aren't automatically saved as .po files for existing languages on the server.

If anyone has a script they could share, I would greatly appreciate it.

Thanks,

//Agron