Hi,
I have translated these off-line using the potrans.py script available
at https://github.com/milossramek/translation-scripts (the weblate
subdirectory), it took maybe 20 minutes (500 strings)

the workflow:
1. get the script and configure your environment (described in
documentation)
2. download translation files to a local repository: "./potrans.py -p ui
download"
3. export untranslated to csv: "./potrans.py -p ui -u export >
untranslated.csv"  (without the -u switch all strings are exported)
4. translate the csv in libreoffice, save as translated.csv (sort the
table according the column Source, translation of numerous identical
strings is then very fast. Not all string need be translated this way)
5. import to the local repository: "./potrans.py -p ui -c translated.csv
import"
5a. Check what has changed in the repository: "./potrans.py -p ui diff"
6. upload to the server "./potrans.py -p ui upload"
 
I am currently its only user and I would appreciate your comments :), thanks
Milos

On 1/23/21 12:44 AM, Olivier Hallot wrote:
> Hi
>
> 1) The recent additions of LibreOffice UI has some "stock" strings
> repeated in many files. For example
>
> https://translations.documentfoundation.org/translate/libo_ui-master/dbaccessmessages/pt_BR/?q=state:%3Ctranslated
>
> _Add
> _Cancel
> _Delete
> _OK
> ...
> Up to 13 new strings like these above.
>
> Is there a way to apply a translated string to all occurrences of these
> "stock" strings in the many weblate projects?
>
> So far I had to go one by one and it is dull.
>
> 2) even adding a translation to say, "_Yes", my translated string is not
> offered in the memory translation for the next occurrence of "_Yes".
>
> TM does not seem record new translations recently (for the given stock
> strings)
>
> Thanks


-- 
email & jabber: [email protected]


-- 
To unsubscribe e-mail to: [email protected]
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/l10n/
Privacy Policy: https://www.documentfoundation.org/privacy

Reply via email to