Commit Graph

19 Commits

Author SHA1 Message Date
Jorge Martin Espinosa bbb83c2ff0 Localazy: improve search, parallelize checks (#7261)
* Remove no longer temporary string

These are now in localazy and the sync strings CI flow was failing because we have 2 conflicting values in `temporary.xml` and `localazy.xml`

* Use the right placeholder value in `screen_local_network_opt_in_subtitle`

* Localazy: improve search, parallelize checks

The search for XML files has been narrowed down and it's several times faster now, and processing the files is now done in parallel

* Improve script to also find and delete previous files

Also add the option of having a `-v|--verbose` flag to print which files we're modifying

* Use `LocalBuildMeta` to get the app name inside `LocalNetworkPermissionDialogView`

* Allow finding all the forbidden terms in the strings and translations and then return an error exit code instead of a success one

---------

Co-authored-by: ElementBot <android@element.io>
2026-07-27 15:12:53 +02:00
Benoit Marty eb31505dc7 Copyright: Add Element Creations Ltd. copyright 2025-11-10 11:05:05 +01:00
Benoit Marty f86431e663 Copyright: Add final period 2025-11-10 10:13:41 +01:00
Jorge Martin Espinosa d5b97ed5af Use Localazy's langAliases for Indonesian (#4801) 2025-06-02 12:05:55 +02:00
Benoit Marty 97f3be3dc5 Apply dual licenses: AGPL + Element Commercial to file headers.
2 replace all actions have been performed:
- "SPDX-License-Identifier: AGPL-3.0-only" to "SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial"
- "Please see LICENSE in the repository root for full details." to "Please see LICENSE files in the repository root for full details."
2025-01-07 10:05:04 +01:00
Benoit Marty 66aa78d822 Migrate license to AGPL - sh files. 2024-09-06 17:50:45 +02:00
Benoit Marty 89e0d94d86 Fix warning: more redirection to end. 2024-06-11 17:58:24 +02:00
Benoit Marty fde7180600 Ignore errors when moving files from values-id to values-in 2024-06-11 14:39:09 +02:00
Benoit Marty 7a5c8b8053 Delete config sooner in the script.
It will give more visibility on errors if any.
2024-04-10 12:36:00 +02:00
Benoit Marty bd7db569f4 Localazy: search for forbidden term ("Element" for now) 2024-04-10 12:34:40 +02:00
Benoit Marty 77fe8f0f2b Redirect error stream to /dev/null. 2024-03-12 16:28:50 +01:00
Benoit Marty a4207d9bc9 Do not redirect output of commands to /dev/null. 2024-02-29 10:08:03 +01:00
Benoit Marty 917fc12c26 Add script to sort XML resource by names. 2024-02-23 17:45:22 +01:00
Benoit Marty 2bca187db0 Fix issue in script to download string regarding moving folders values-id to values-in
Move file and delete unwanted folder to avoid deleting other files.
2023-12-08 19:24:35 +01:00
Benoit Marty f7c79f9b89 Rename the folders values-id to values-in 2023-12-05 12:25:46 +01:00
Benoit Marty cd377edec6 Ensure files downloaded by localazy end with a new line. 2023-06-16 15:14:00 +02:00
Benoit Marty d003a9023b For usage of Python3
CI complain with:
 Traceback (most recent call last):
  File "./tools/localazy/generateLocalazyConfig.py", line 39, in <module>
    action = baseAction | {
TypeError: unsupported operand type(s) for |: 'dict' and 'dict'
2023-04-07 14:39:13 +02:00
Benoit Marty 6ff7066897 Add ability to download only English string (for developer). This is default behavior. 2023-04-05 10:58:18 +02:00
Benoit Marty 992b087303 [Strings] Add script to generate config to download Strings from Localazy. 2023-03-27 14:35:06 +02:00