Re: Freebsd website translation via Weblate

From: Vladlen Popolitov <vladlenpopolitov_at_list.ru>
Date: Mon, 22 Sep 2025 19:50:34 UTC
Hi Edson,
 
 I prepared prototype to generate PO files and generate ADOC files for translations.
I need some time to test these scripts. They are not production ready yet, it is version
for discussion.
 
Best regards
 
Vladlen.
 
>Среда, 17 сентября 2025, 18:58 +03:00 от Edson Brandi <ebrandi@freebsd.org>:
> 
>Hi Vladlen,
>
>Can you please do the change to reduce the number of po files to 24 as
>you mentioned above?
>Based on my testing, attempting to add 132 different files, multiplied
>by the number of languages we have in Weblate, will result in
>performance issues on the actual server.
>Once you have the files, we can configure them in Weblate :)
>
>Edson
>
>On Tue, Sep 9, 2025 at 11:49AM Vladlen Popolitov
>< vladlenpopolitov@list.ru > wrote:
>>
>>
>> Hi Edson
>>
>> Понедельник, 8 сентября 2025, 19:21 +03:00 от Edson Brandi < ebrandi@freebsd.org >:
>>
>>
>>
>>
>>
>> Have you already converted the website files to .po files? How many
>> files do we need to import into Weblate to create this project?
>>
>> I used utility tools/update_translate_template.sh, but excluded files
>> from directories website/content/en/status and website/content/en/releases.
>>
>> The result set was 132 adoc files, 4070 phrases in them (counted
>> by ‘grep msgid’ in all po files), English text volume ~900K ( counted
>> by wc for all po files — they have only English text).
>>
>> Many of these adoc files are small. I think it is possible to make
>> - small modification in tools/update_translate_template.sh to generate 1 po file
>> per directory (_indexdir.po),
>> - small modification in tools/translate.sh to use _indexdir.po before looking for
>> ‘filename.po’ when ‘filename.adoc’ is generated from po file.
>> In this case we will have 1 po file for website root directory and 23 po files for all
>> subdirectories.
>>
>> Vladlen.
>>
>>
>>