On Sun, 03 May 2009, Szak�ts Viktor wrote:

Hi,

> I've just tried to update a half-translated (HU) .pot file from hbmk2
> source,
> but didn't succeed. Maybe I'm missing something. The goal would be
> to retain still existing in source translations while deleting no longer
> existing ones.
> If I try to regenerate .pot file with Harbour -j option, it will simply
> overwrite existing file, so it's no good. Then I've tried hbi18n -m
> (merge) option, and it indeed merged the old .pot with the newly
> generated one, but it didn't delete no longer existing items.
> What is the way update .pot files from source?

If I understand what you need then you want to take some clean .pot
file generated by Harbour and make some automatic translation for
sentences which are already translated in some other files.
You can find tools which makes such operations designed for gettext.
Harbour hb18n does not have such functionality but I can add it using
some new switch, f.e.:
   -a       add automatic translations to 1-st .pot file using translations
            from other .pot or .hbl files

> [ I have a local tool that does this (with some house specific tweak),
> but I wanted to use Harbour tools only. This tool would move deleted
> entries to a backup file because it may contain useful content. Also,
> new entries are marked with date of addition to help translators. ]

I'm not sure we are talking about the same functionality.
Will the above -a option cover your needs?

best regards,
Przemek
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to