Bug #13528

Some translations from the lib folder are not included in the messages files

Added by José Raddaoui Marín about 1 month ago.

Status:NewStart date:06/17/2021
Priority:MediumDue date:
Assignee:-% Done:

0%

Category:I18N
Target version:Release 2.7.0
Google Code Legacy ID: Tested version:2.6, 2.7
Sponsored:No Requires documentation:

Description

We have plenty of translatable strings in the lib folder that are not being processed and included in the messages files nor the Weblate process (search for "__(" in the lib folder).

For example, searching for "Unable to complete file import" over the entire source code only hits its declaration from Qubit.class.php and the same for those in arUpdateEsIoDocumentsJob and other jobs ...

https://github.com/artefactual/atom/blob/qa/2.x/lib/Qubit.class.php#L359
https://github.com/artefactual/atom/blob/qa/2.x/lib/job/arUpdateEsIoDocumentsJob.class.php#L33

Since we have moved the installation code from a plugin to a lib class, this will also affect the access disallow and conditional warnings:

https://github.com/artefactual/atom/blob/qa/2.x/lib/arInstall.class.php#L361-L371

However, there are some translations from the lib folder that do appear in the messages file, coming from the setting forms. For example, try searching for ...

- Application version
- Generate Finding Aid as public user

Also available in: Atom PDF