AdGuardHome/scripts/translations/main.go

523 lines
11 KiB
Go
Raw Normal View History

Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
// translations downloads translations, uploads translations, prints summary
// for translations, prints unused strings.
package main
import (
Pull request 1778: AG-20200-translation-script-update-auto Merge in DNS/adguard-home from AG-20200-translation-script-update-auto to master Squashed commit of the following: commit 22c68f8443c59a5ba7ff7cd33c395f6dcf321e04 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 18:08:40 2023 +0300 scripts: imp err more commit a6ea94b75c4bb09868f45f5c61d62622acf36d0c Merge: 69749b17 2a0d0629 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 17:38:05 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 69749b1767bd49d27c96ac17ef049f6ff6827f86 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 17:37:27 2023 +0300 scripts: imp err commit 6d3eb3270e6fcbe94e9c8f73d654b65a15abcb37 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 13:10:08 2023 +0300 scripts: imp err msg commit a95e3383f1c27b73eaa570dbe8e008c2bdf22be5 Merge: 16caba76 3575aa05 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 12:06:28 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 16caba76f0a16d70542f6fa0d6d83b134c630da4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 12:05:49 2023 +0300 scripts: fix err commit 3566193a7db677420722938c98089a40809c8739 Merge: 55efdeb8 da9008ab Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 30 13:13:54 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 55efdeb80b44183767b188109f1e21aac2fa9839 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 30 13:13:05 2023 +0300 scripts: simplify commit 4a090a6f015e4adb9d5a3f6e3c3c5294daf67f1d Merge: 571b2a29 c576d505 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 29 14:10:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 571b2a29777e694971cc02c895328d733b411803 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 29 14:09:17 2023 +0300 scripts: fix log msg commit 6e92a76c4b9b1240501612878d5f42b3058cba32 Merge: 207c8bac 487675b9 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 18:01:58 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 207c8bacd4818c496b409cee96a4b6f65fbf8c24 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 18:01:23 2023 +0300 scripts: add verbose flag commit e82270f53ce5cf8b1fdb39bff6367fd800483abb Merge: 11761bdc 132ec556 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 15:09:21 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 11761bdc3d9fd10221d0c21d993db0983d9e222f Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 15:08:39 2023 +0300 scripts: upd readme commit cdac6cf37022e67d4a45be587210765294e96270 Merge: 5f824358 df61741f Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 23 16:28:37 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 5f82435847d74bf12a7b450b70d9326a57c99da6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 23 16:27:01 2023 +0300 scripts: add locale update auto
2023-04-03 18:22:15 +03:00
"bufio"
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
"bytes"
"encoding/json"
"fmt"
"net/url"
"os"
Pull request 1778: AG-20200-translation-script-update-auto Merge in DNS/adguard-home from AG-20200-translation-script-update-auto to master Squashed commit of the following: commit 22c68f8443c59a5ba7ff7cd33c395f6dcf321e04 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 18:08:40 2023 +0300 scripts: imp err more commit a6ea94b75c4bb09868f45f5c61d62622acf36d0c Merge: 69749b17 2a0d0629 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 17:38:05 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 69749b1767bd49d27c96ac17ef049f6ff6827f86 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 17:37:27 2023 +0300 scripts: imp err commit 6d3eb3270e6fcbe94e9c8f73d654b65a15abcb37 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 13:10:08 2023 +0300 scripts: imp err msg commit a95e3383f1c27b73eaa570dbe8e008c2bdf22be5 Merge: 16caba76 3575aa05 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 12:06:28 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 16caba76f0a16d70542f6fa0d6d83b134c630da4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 12:05:49 2023 +0300 scripts: fix err commit 3566193a7db677420722938c98089a40809c8739 Merge: 55efdeb8 da9008ab Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 30 13:13:54 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 55efdeb80b44183767b188109f1e21aac2fa9839 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 30 13:13:05 2023 +0300 scripts: simplify commit 4a090a6f015e4adb9d5a3f6e3c3c5294daf67f1d Merge: 571b2a29 c576d505 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 29 14:10:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 571b2a29777e694971cc02c895328d733b411803 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 29 14:09:17 2023 +0300 scripts: fix log msg commit 6e92a76c4b9b1240501612878d5f42b3058cba32 Merge: 207c8bac 487675b9 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 18:01:58 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 207c8bacd4818c496b409cee96a4b6f65fbf8c24 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 18:01:23 2023 +0300 scripts: add verbose flag commit e82270f53ce5cf8b1fdb39bff6367fd800483abb Merge: 11761bdc 132ec556 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 15:09:21 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 11761bdc3d9fd10221d0c21d993db0983d9e222f Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 15:08:39 2023 +0300 scripts: upd readme commit cdac6cf37022e67d4a45be587210765294e96270 Merge: 5f824358 df61741f Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 23 16:28:37 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 5f82435847d74bf12a7b450b70d9326a57c99da6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 23 16:27:01 2023 +0300 scripts: add locale update auto
2023-04-03 18:22:15 +03:00
"os/exec"
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
"path/filepath"
"strings"
"time"
Pull request 1778: AG-20200-translation-script-update-auto Merge in DNS/adguard-home from AG-20200-translation-script-update-auto to master Squashed commit of the following: commit 22c68f8443c59a5ba7ff7cd33c395f6dcf321e04 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 18:08:40 2023 +0300 scripts: imp err more commit a6ea94b75c4bb09868f45f5c61d62622acf36d0c Merge: 69749b17 2a0d0629 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 17:38:05 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 69749b1767bd49d27c96ac17ef049f6ff6827f86 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 17:37:27 2023 +0300 scripts: imp err commit 6d3eb3270e6fcbe94e9c8f73d654b65a15abcb37 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 13:10:08 2023 +0300 scripts: imp err msg commit a95e3383f1c27b73eaa570dbe8e008c2bdf22be5 Merge: 16caba76 3575aa05 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 12:06:28 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 16caba76f0a16d70542f6fa0d6d83b134c630da4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 12:05:49 2023 +0300 scripts: fix err commit 3566193a7db677420722938c98089a40809c8739 Merge: 55efdeb8 da9008ab Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 30 13:13:54 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 55efdeb80b44183767b188109f1e21aac2fa9839 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 30 13:13:05 2023 +0300 scripts: simplify commit 4a090a6f015e4adb9d5a3f6e3c3c5294daf67f1d Merge: 571b2a29 c576d505 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 29 14:10:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 571b2a29777e694971cc02c895328d733b411803 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 29 14:09:17 2023 +0300 scripts: fix log msg commit 6e92a76c4b9b1240501612878d5f42b3058cba32 Merge: 207c8bac 487675b9 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 18:01:58 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 207c8bacd4818c496b409cee96a4b6f65fbf8c24 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 18:01:23 2023 +0300 scripts: add verbose flag commit e82270f53ce5cf8b1fdb39bff6367fd800483abb Merge: 11761bdc 132ec556 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 15:09:21 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 11761bdc3d9fd10221d0c21d993db0983d9e222f Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 15:08:39 2023 +0300 scripts: upd readme commit cdac6cf37022e67d4a45be587210765294e96270 Merge: 5f824358 df61741f Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 23 16:28:37 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 5f82435847d74bf12a7b450b70d9326a57c99da6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 23 16:27:01 2023 +0300 scripts: add locale update auto
2023-04-03 18:22:15 +03:00
"github.com/AdguardTeam/AdGuardHome/internal/aghos"
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
"github.com/AdguardTeam/golibs/errors"
"github.com/AdguardTeam/golibs/log"
"golang.org/x/exp/maps"
"golang.org/x/exp/slices"
)
const (
twoskyConfFile = "./.twosky.json"
localesDir = "./client/src/__locales"
defaultBaseFile = "en.json"
defaultProjectID = "home"
srcDir = "./client/src"
twoskyURI = "https://twosky.int.agrd.dev/api/v1"
readLimit = 1 * 1024 * 1024
uploadTimeout = 10 * time.Second
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
)
// blockerLangCodes is the codes of languages which need to be fully translated.
var blockerLangCodes = []langCode{
"de",
"en",
"es",
"fr",
"it",
"ja",
"ko",
"pt-br",
"pt-pt",
"ru",
"zh-cn",
"zh-tw",
}
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
// langCode is a language code.
type langCode string
// languages is a map, where key is language code and value is display name.
type languages map[langCode]string
// textlabel is a text label of localization.
type textLabel string
// locales is a map, where key is text label and value is translation.
type locales map[textLabel]string
func main() {
if len(os.Args) == 1 {
usage("need a command")
}
if os.Args[1] == "help" {
usage("")
}
conf, err := readTwoskyConfig()
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
check(err)
var cli *twoskyClient
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
switch os.Args[1] {
case "summary":
err = summary(conf.Languages)
case "download":
cli, err = conf.toClient()
check(err)
err = cli.download()
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
case "unused":
Pull request 1778: AG-20200-translation-script-update-auto Merge in DNS/adguard-home from AG-20200-translation-script-update-auto to master Squashed commit of the following: commit 22c68f8443c59a5ba7ff7cd33c395f6dcf321e04 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 18:08:40 2023 +0300 scripts: imp err more commit a6ea94b75c4bb09868f45f5c61d62622acf36d0c Merge: 69749b17 2a0d0629 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 17:38:05 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 69749b1767bd49d27c96ac17ef049f6ff6827f86 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 17:37:27 2023 +0300 scripts: imp err commit 6d3eb3270e6fcbe94e9c8f73d654b65a15abcb37 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 13:10:08 2023 +0300 scripts: imp err msg commit a95e3383f1c27b73eaa570dbe8e008c2bdf22be5 Merge: 16caba76 3575aa05 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 12:06:28 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 16caba76f0a16d70542f6fa0d6d83b134c630da4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 12:05:49 2023 +0300 scripts: fix err commit 3566193a7db677420722938c98089a40809c8739 Merge: 55efdeb8 da9008ab Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 30 13:13:54 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 55efdeb80b44183767b188109f1e21aac2fa9839 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 30 13:13:05 2023 +0300 scripts: simplify commit 4a090a6f015e4adb9d5a3f6e3c3c5294daf67f1d Merge: 571b2a29 c576d505 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 29 14:10:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 571b2a29777e694971cc02c895328d733b411803 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 29 14:09:17 2023 +0300 scripts: fix log msg commit 6e92a76c4b9b1240501612878d5f42b3058cba32 Merge: 207c8bac 487675b9 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 18:01:58 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 207c8bacd4818c496b409cee96a4b6f65fbf8c24 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 18:01:23 2023 +0300 scripts: add verbose flag commit e82270f53ce5cf8b1fdb39bff6367fd800483abb Merge: 11761bdc 132ec556 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 15:09:21 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 11761bdc3d9fd10221d0c21d993db0983d9e222f Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 15:08:39 2023 +0300 scripts: upd readme commit cdac6cf37022e67d4a45be587210765294e96270 Merge: 5f824358 df61741f Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 23 16:28:37 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 5f82435847d74bf12a7b450b70d9326a57c99da6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 23 16:27:01 2023 +0300 scripts: add locale update auto
2023-04-03 18:22:15 +03:00
err = unused(conf.LocalizableFiles[0])
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
case "upload":
cli, err = conf.toClient()
check(err)
err = cli.upload()
Pull request 1778: AG-20200-translation-script-update-auto Merge in DNS/adguard-home from AG-20200-translation-script-update-auto to master Squashed commit of the following: commit 22c68f8443c59a5ba7ff7cd33c395f6dcf321e04 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 18:08:40 2023 +0300 scripts: imp err more commit a6ea94b75c4bb09868f45f5c61d62622acf36d0c Merge: 69749b17 2a0d0629 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 17:38:05 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 69749b1767bd49d27c96ac17ef049f6ff6827f86 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 17:37:27 2023 +0300 scripts: imp err commit 6d3eb3270e6fcbe94e9c8f73d654b65a15abcb37 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 13:10:08 2023 +0300 scripts: imp err msg commit a95e3383f1c27b73eaa570dbe8e008c2bdf22be5 Merge: 16caba76 3575aa05 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 12:06:28 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 16caba76f0a16d70542f6fa0d6d83b134c630da4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 12:05:49 2023 +0300 scripts: fix err commit 3566193a7db677420722938c98089a40809c8739 Merge: 55efdeb8 da9008ab Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 30 13:13:54 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 55efdeb80b44183767b188109f1e21aac2fa9839 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 30 13:13:05 2023 +0300 scripts: simplify commit 4a090a6f015e4adb9d5a3f6e3c3c5294daf67f1d Merge: 571b2a29 c576d505 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 29 14:10:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 571b2a29777e694971cc02c895328d733b411803 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 29 14:09:17 2023 +0300 scripts: fix log msg commit 6e92a76c4b9b1240501612878d5f42b3058cba32 Merge: 207c8bac 487675b9 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 18:01:58 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 207c8bacd4818c496b409cee96a4b6f65fbf8c24 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 18:01:23 2023 +0300 scripts: add verbose flag commit e82270f53ce5cf8b1fdb39bff6367fd800483abb Merge: 11761bdc 132ec556 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 15:09:21 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 11761bdc3d9fd10221d0c21d993db0983d9e222f Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 15:08:39 2023 +0300 scripts: upd readme commit cdac6cf37022e67d4a45be587210765294e96270 Merge: 5f824358 df61741f Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 23 16:28:37 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 5f82435847d74bf12a7b450b70d9326a57c99da6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 23 16:27:01 2023 +0300 scripts: add locale update auto
2023-04-03 18:22:15 +03:00
case "auto-add":
err = autoAdd(conf.LocalizableFiles[0])
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
default:
usage("unknown command")
}
Pull request 1778: AG-20200-translation-script-update-auto Merge in DNS/adguard-home from AG-20200-translation-script-update-auto to master Squashed commit of the following: commit 22c68f8443c59a5ba7ff7cd33c395f6dcf321e04 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 18:08:40 2023 +0300 scripts: imp err more commit a6ea94b75c4bb09868f45f5c61d62622acf36d0c Merge: 69749b17 2a0d0629 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 17:38:05 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 69749b1767bd49d27c96ac17ef049f6ff6827f86 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 17:37:27 2023 +0300 scripts: imp err commit 6d3eb3270e6fcbe94e9c8f73d654b65a15abcb37 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 13:10:08 2023 +0300 scripts: imp err msg commit a95e3383f1c27b73eaa570dbe8e008c2bdf22be5 Merge: 16caba76 3575aa05 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 12:06:28 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 16caba76f0a16d70542f6fa0d6d83b134c630da4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 12:05:49 2023 +0300 scripts: fix err commit 3566193a7db677420722938c98089a40809c8739 Merge: 55efdeb8 da9008ab Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 30 13:13:54 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 55efdeb80b44183767b188109f1e21aac2fa9839 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 30 13:13:05 2023 +0300 scripts: simplify commit 4a090a6f015e4adb9d5a3f6e3c3c5294daf67f1d Merge: 571b2a29 c576d505 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 29 14:10:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 571b2a29777e694971cc02c895328d733b411803 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 29 14:09:17 2023 +0300 scripts: fix log msg commit 6e92a76c4b9b1240501612878d5f42b3058cba32 Merge: 207c8bac 487675b9 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 18:01:58 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 207c8bacd4818c496b409cee96a4b6f65fbf8c24 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 18:01:23 2023 +0300 scripts: add verbose flag commit e82270f53ce5cf8b1fdb39bff6367fd800483abb Merge: 11761bdc 132ec556 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 15:09:21 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 11761bdc3d9fd10221d0c21d993db0983d9e222f Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 15:08:39 2023 +0300 scripts: upd readme commit cdac6cf37022e67d4a45be587210765294e96270 Merge: 5f824358 df61741f Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 23 16:28:37 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 5f82435847d74bf12a7b450b70d9326a57c99da6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 23 16:27:01 2023 +0300 scripts: add locale update auto
2023-04-03 18:22:15 +03:00
check(err)
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
}
// check is a simple error-checking helper for scripts.
func check(err error) {
if err != nil {
panic(err)
}
}
// usage prints usage. If addStr is not empty print addStr and exit with code
// 1, otherwise exit with code 0.
func usage(addStr string) {
const usageStr = `Usage: go run main.go <command> [<args>]
Commands:
help
Print usage.
summary
Print summary.
download [-n <count>]
Pull request 1778: AG-20200-translation-script-update-auto Merge in DNS/adguard-home from AG-20200-translation-script-update-auto to master Squashed commit of the following: commit 22c68f8443c59a5ba7ff7cd33c395f6dcf321e04 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 18:08:40 2023 +0300 scripts: imp err more commit a6ea94b75c4bb09868f45f5c61d62622acf36d0c Merge: 69749b17 2a0d0629 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 17:38:05 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 69749b1767bd49d27c96ac17ef049f6ff6827f86 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 17:37:27 2023 +0300 scripts: imp err commit 6d3eb3270e6fcbe94e9c8f73d654b65a15abcb37 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 13:10:08 2023 +0300 scripts: imp err msg commit a95e3383f1c27b73eaa570dbe8e008c2bdf22be5 Merge: 16caba76 3575aa05 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 12:06:28 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 16caba76f0a16d70542f6fa0d6d83b134c630da4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 12:05:49 2023 +0300 scripts: fix err commit 3566193a7db677420722938c98089a40809c8739 Merge: 55efdeb8 da9008ab Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 30 13:13:54 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 55efdeb80b44183767b188109f1e21aac2fa9839 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 30 13:13:05 2023 +0300 scripts: simplify commit 4a090a6f015e4adb9d5a3f6e3c3c5294daf67f1d Merge: 571b2a29 c576d505 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 29 14:10:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 571b2a29777e694971cc02c895328d733b411803 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 29 14:09:17 2023 +0300 scripts: fix log msg commit 6e92a76c4b9b1240501612878d5f42b3058cba32 Merge: 207c8bac 487675b9 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 18:01:58 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 207c8bacd4818c496b409cee96a4b6f65fbf8c24 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 18:01:23 2023 +0300 scripts: add verbose flag commit e82270f53ce5cf8b1fdb39bff6367fd800483abb Merge: 11761bdc 132ec556 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 15:09:21 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 11761bdc3d9fd10221d0c21d993db0983d9e222f Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 15:08:39 2023 +0300 scripts: upd readme commit cdac6cf37022e67d4a45be587210765294e96270 Merge: 5f824358 df61741f Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 23 16:28:37 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 5f82435847d74bf12a7b450b70d9326a57c99da6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 23 16:27:01 2023 +0300 scripts: add locale update auto
2023-04-03 18:22:15 +03:00
Download translations. count is a number of concurrent downloads.
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
unused
Print unused strings.
upload
Pull request 1778: AG-20200-translation-script-update-auto Merge in DNS/adguard-home from AG-20200-translation-script-update-auto to master Squashed commit of the following: commit 22c68f8443c59a5ba7ff7cd33c395f6dcf321e04 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 18:08:40 2023 +0300 scripts: imp err more commit a6ea94b75c4bb09868f45f5c61d62622acf36d0c Merge: 69749b17 2a0d0629 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 17:38:05 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 69749b1767bd49d27c96ac17ef049f6ff6827f86 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 17:37:27 2023 +0300 scripts: imp err commit 6d3eb3270e6fcbe94e9c8f73d654b65a15abcb37 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 13:10:08 2023 +0300 scripts: imp err msg commit a95e3383f1c27b73eaa570dbe8e008c2bdf22be5 Merge: 16caba76 3575aa05 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 12:06:28 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 16caba76f0a16d70542f6fa0d6d83b134c630da4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 12:05:49 2023 +0300 scripts: fix err commit 3566193a7db677420722938c98089a40809c8739 Merge: 55efdeb8 da9008ab Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 30 13:13:54 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 55efdeb80b44183767b188109f1e21aac2fa9839 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 30 13:13:05 2023 +0300 scripts: simplify commit 4a090a6f015e4adb9d5a3f6e3c3c5294daf67f1d Merge: 571b2a29 c576d505 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 29 14:10:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 571b2a29777e694971cc02c895328d733b411803 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 29 14:09:17 2023 +0300 scripts: fix log msg commit 6e92a76c4b9b1240501612878d5f42b3058cba32 Merge: 207c8bac 487675b9 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 18:01:58 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 207c8bacd4818c496b409cee96a4b6f65fbf8c24 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 18:01:23 2023 +0300 scripts: add verbose flag commit e82270f53ce5cf8b1fdb39bff6367fd800483abb Merge: 11761bdc 132ec556 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 15:09:21 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 11761bdc3d9fd10221d0c21d993db0983d9e222f Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 15:08:39 2023 +0300 scripts: upd readme commit cdac6cf37022e67d4a45be587210765294e96270 Merge: 5f824358 df61741f Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 23 16:28:37 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 5f82435847d74bf12a7b450b70d9326a57c99da6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 23 16:27:01 2023 +0300 scripts: add locale update auto
2023-04-03 18:22:15 +03:00
Upload translations.
auto-add
Add locales with additions to the git and restore locales with
deletions.`
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
if addStr != "" {
fmt.Printf("%s\n%s\n", addStr, usageStr)
os.Exit(1)
}
fmt.Println(usageStr)
os.Exit(0)
}
// twoskyConfig is the configuration structure for localization.
type twoskyConfig struct {
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
Languages languages `json:"languages"`
ProjectID string `json:"project_id"`
BaseLangcode langCode `json:"base_locale"`
LocalizableFiles []string `json:"localizable_files"`
}
// readTwoskyConfig returns twosky configuration.
func readTwoskyConfig() (t *twoskyConfig, err error) {
defer func() { err = errors.Annotate(err, "parsing twosky config: %w") }()
Pull request 1778: AG-20200-translation-script-update-auto Merge in DNS/adguard-home from AG-20200-translation-script-update-auto to master Squashed commit of the following: commit 22c68f8443c59a5ba7ff7cd33c395f6dcf321e04 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 18:08:40 2023 +0300 scripts: imp err more commit a6ea94b75c4bb09868f45f5c61d62622acf36d0c Merge: 69749b17 2a0d0629 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 17:38:05 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 69749b1767bd49d27c96ac17ef049f6ff6827f86 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 17:37:27 2023 +0300 scripts: imp err commit 6d3eb3270e6fcbe94e9c8f73d654b65a15abcb37 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 13:10:08 2023 +0300 scripts: imp err msg commit a95e3383f1c27b73eaa570dbe8e008c2bdf22be5 Merge: 16caba76 3575aa05 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 12:06:28 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 16caba76f0a16d70542f6fa0d6d83b134c630da4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 12:05:49 2023 +0300 scripts: fix err commit 3566193a7db677420722938c98089a40809c8739 Merge: 55efdeb8 da9008ab Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 30 13:13:54 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 55efdeb80b44183767b188109f1e21aac2fa9839 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 30 13:13:05 2023 +0300 scripts: simplify commit 4a090a6f015e4adb9d5a3f6e3c3c5294daf67f1d Merge: 571b2a29 c576d505 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 29 14:10:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 571b2a29777e694971cc02c895328d733b411803 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 29 14:09:17 2023 +0300 scripts: fix log msg commit 6e92a76c4b9b1240501612878d5f42b3058cba32 Merge: 207c8bac 487675b9 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 18:01:58 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 207c8bacd4818c496b409cee96a4b6f65fbf8c24 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 18:01:23 2023 +0300 scripts: add verbose flag commit e82270f53ce5cf8b1fdb39bff6367fd800483abb Merge: 11761bdc 132ec556 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 15:09:21 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 11761bdc3d9fd10221d0c21d993db0983d9e222f Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 15:08:39 2023 +0300 scripts: upd readme commit cdac6cf37022e67d4a45be587210765294e96270 Merge: 5f824358 df61741f Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 23 16:28:37 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 5f82435847d74bf12a7b450b70d9326a57c99da6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 23 16:27:01 2023 +0300 scripts: add locale update auto
2023-04-03 18:22:15 +03:00
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
b, err := os.ReadFile(twoskyConfFile)
if err != nil {
// Don't wrap the error since it's informative enough as is.
return nil, err
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
}
var tsc []twoskyConfig
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
err = json.Unmarshal(b, &tsc)
if err != nil {
err = fmt.Errorf("unmarshalling %q: %w", twoskyConfFile, err)
return nil, err
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
}
if len(tsc) == 0 {
err = fmt.Errorf("%q is empty", twoskyConfFile)
return nil, err
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
}
conf := tsc[0]
for _, lang := range conf.Languages {
if lang == "" {
return nil, errors.Error("language is empty")
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
}
}
Pull request 1778: AG-20200-translation-script-update-auto Merge in DNS/adguard-home from AG-20200-translation-script-update-auto to master Squashed commit of the following: commit 22c68f8443c59a5ba7ff7cd33c395f6dcf321e04 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 18:08:40 2023 +0300 scripts: imp err more commit a6ea94b75c4bb09868f45f5c61d62622acf36d0c Merge: 69749b17 2a0d0629 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 17:38:05 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 69749b1767bd49d27c96ac17ef049f6ff6827f86 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 17:37:27 2023 +0300 scripts: imp err commit 6d3eb3270e6fcbe94e9c8f73d654b65a15abcb37 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 13:10:08 2023 +0300 scripts: imp err msg commit a95e3383f1c27b73eaa570dbe8e008c2bdf22be5 Merge: 16caba76 3575aa05 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 12:06:28 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 16caba76f0a16d70542f6fa0d6d83b134c630da4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 12:05:49 2023 +0300 scripts: fix err commit 3566193a7db677420722938c98089a40809c8739 Merge: 55efdeb8 da9008ab Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 30 13:13:54 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 55efdeb80b44183767b188109f1e21aac2fa9839 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 30 13:13:05 2023 +0300 scripts: simplify commit 4a090a6f015e4adb9d5a3f6e3c3c5294daf67f1d Merge: 571b2a29 c576d505 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 29 14:10:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 571b2a29777e694971cc02c895328d733b411803 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 29 14:09:17 2023 +0300 scripts: fix log msg commit 6e92a76c4b9b1240501612878d5f42b3058cba32 Merge: 207c8bac 487675b9 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 18:01:58 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 207c8bacd4818c496b409cee96a4b6f65fbf8c24 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 18:01:23 2023 +0300 scripts: add verbose flag commit e82270f53ce5cf8b1fdb39bff6367fd800483abb Merge: 11761bdc 132ec556 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 15:09:21 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 11761bdc3d9fd10221d0c21d993db0983d9e222f Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 15:08:39 2023 +0300 scripts: upd readme commit cdac6cf37022e67d4a45be587210765294e96270 Merge: 5f824358 df61741f Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 23 16:28:37 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 5f82435847d74bf12a7b450b70d9326a57c99da6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 23 16:27:01 2023 +0300 scripts: add locale update auto
2023-04-03 18:22:15 +03:00
if len(conf.LocalizableFiles) == 0 {
return nil, errors.Error("no localizable files specified")
}
return &conf, nil
}
// twoskyClient is the twosky client with methods for download and upload
// translations.
type twoskyClient struct {
// uri is the base URL.
uri *url.URL
// projectID is the name of the project.
projectID string
// baseLang is the base language code.
baseLang langCode
// langs is the list of codes of languages to download.
langs []langCode
}
// toClient reads values from environment variables or defaults, validates
// them, and returns the twosky client.
func (t *twoskyConfig) toClient() (cli *twoskyClient, err error) {
defer func() { err = errors.Annotate(err, "filling config: %w") }()
uriStr := os.Getenv("TWOSKY_URI")
if uriStr == "" {
uriStr = twoskyURI
}
uri, err := url.Parse(uriStr)
if err != nil {
return nil, err
}
projectID := os.Getenv("TWOSKY_PROJECT_ID")
if projectID == "" {
projectID = defaultProjectID
}
baseLang := t.BaseLangcode
uLangStr := os.Getenv("UPLOAD_LANGUAGE")
if uLangStr != "" {
baseLang = langCode(uLangStr)
}
langs := maps.Keys(t.Languages)
dlLangStr := os.Getenv("DOWNLOAD_LANGUAGES")
if dlLangStr == "blocker" {
langs = blockerLangCodes
} else if dlLangStr != "" {
var dlLangs []langCode
dlLangs, err = validateLanguageStr(dlLangStr, t.Languages)
if err != nil {
return nil, err
}
langs = dlLangs
Pull request 1778: AG-20200-translation-script-update-auto Merge in DNS/adguard-home from AG-20200-translation-script-update-auto to master Squashed commit of the following: commit 22c68f8443c59a5ba7ff7cd33c395f6dcf321e04 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 18:08:40 2023 +0300 scripts: imp err more commit a6ea94b75c4bb09868f45f5c61d62622acf36d0c Merge: 69749b17 2a0d0629 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 17:38:05 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 69749b1767bd49d27c96ac17ef049f6ff6827f86 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 17:37:27 2023 +0300 scripts: imp err commit 6d3eb3270e6fcbe94e9c8f73d654b65a15abcb37 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 13:10:08 2023 +0300 scripts: imp err msg commit a95e3383f1c27b73eaa570dbe8e008c2bdf22be5 Merge: 16caba76 3575aa05 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 12:06:28 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 16caba76f0a16d70542f6fa0d6d83b134c630da4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 12:05:49 2023 +0300 scripts: fix err commit 3566193a7db677420722938c98089a40809c8739 Merge: 55efdeb8 da9008ab Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 30 13:13:54 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 55efdeb80b44183767b188109f1e21aac2fa9839 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 30 13:13:05 2023 +0300 scripts: simplify commit 4a090a6f015e4adb9d5a3f6e3c3c5294daf67f1d Merge: 571b2a29 c576d505 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 29 14:10:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 571b2a29777e694971cc02c895328d733b411803 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 29 14:09:17 2023 +0300 scripts: fix log msg commit 6e92a76c4b9b1240501612878d5f42b3058cba32 Merge: 207c8bac 487675b9 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 18:01:58 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 207c8bacd4818c496b409cee96a4b6f65fbf8c24 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 18:01:23 2023 +0300 scripts: add verbose flag commit e82270f53ce5cf8b1fdb39bff6367fd800483abb Merge: 11761bdc 132ec556 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 15:09:21 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 11761bdc3d9fd10221d0c21d993db0983d9e222f Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 15:08:39 2023 +0300 scripts: upd readme commit cdac6cf37022e67d4a45be587210765294e96270 Merge: 5f824358 df61741f Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 23 16:28:37 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 5f82435847d74bf12a7b450b70d9326a57c99da6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 23 16:27:01 2023 +0300 scripts: add locale update auto
2023-04-03 18:22:15 +03:00
}
return &twoskyClient{
uri: uri,
projectID: projectID,
baseLang: baseLang,
langs: langs,
}, nil
}
// validateLanguageStr validates languages codes that contain in the str and
// returns them or error.
func validateLanguageStr(str string, all languages) (langs []langCode, err error) {
codes := strings.Fields(str)
langs = make([]langCode, 0, len(codes))
for _, k := range codes {
lc := langCode(k)
_, ok := all[lc]
if !ok {
return nil, fmt.Errorf("validating languages: unexpected language code %q", k)
}
langs = append(langs, lc)
}
return langs, nil
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
}
// readLocales reads file with name fn and returns a map, where key is text
// label and value is localization.
func readLocales(fn string) (loc locales, err error) {
b, err := os.ReadFile(fn)
if err != nil {
// Don't wrap the error since it's informative enough as is.
return nil, err
}
loc = make(locales)
err = json.Unmarshal(b, &loc)
if err != nil {
err = fmt.Errorf("unmarshalling %q: %w", fn, err)
return nil, err
}
return loc, nil
}
// summary prints summary for translations.
func summary(langs languages) (err error) {
basePath := filepath.Join(localesDir, defaultBaseFile)
baseLoc, err := readLocales(basePath)
if err != nil {
return fmt.Errorf("summary: %w", err)
}
size := float64(len(baseLoc))
keys := maps.Keys(langs)
slices.Sort(keys)
for _, lang := range keys {
name := filepath.Join(localesDir, string(lang)+".json")
if name == basePath {
continue
}
var loc locales
loc, err = readLocales(name)
if err != nil {
return fmt.Errorf("summary: reading locales: %w", err)
}
f := float64(len(loc)) * 100 / size
blocker := ""
// N is small enough to not raise performance questions.
ok := slices.Contains(blockerLangCodes, lang)
if ok {
blocker = " (blocker)"
}
fmt.Printf("%s\t %6.2f %%%s\n", lang, f, blocker)
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
}
return nil
}
// unused prints unused text labels.
func unused(basePath string) (err error) {
defer func() { err = errors.Annotate(err, "unused: %w") }()
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
baseLoc, err := readLocales(basePath)
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
if err != nil {
return err
}
locDir := filepath.Clean(localesDir)
js, err := findJS(locDir)
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
if err != nil {
return err
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
}
return findUnused(js, baseLoc)
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
}
// findJS returns list of JavaScript and JSON files or error.
func findJS(locDir string) (fileNames []string, err error) {
walkFn := func(name string, _ os.FileInfo, err error) error {
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
if err != nil {
Pull request 1778: AG-20200-translation-script-update-auto Merge in DNS/adguard-home from AG-20200-translation-script-update-auto to master Squashed commit of the following: commit 22c68f8443c59a5ba7ff7cd33c395f6dcf321e04 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 18:08:40 2023 +0300 scripts: imp err more commit a6ea94b75c4bb09868f45f5c61d62622acf36d0c Merge: 69749b17 2a0d0629 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 17:38:05 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 69749b1767bd49d27c96ac17ef049f6ff6827f86 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 17:37:27 2023 +0300 scripts: imp err commit 6d3eb3270e6fcbe94e9c8f73d654b65a15abcb37 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 13:10:08 2023 +0300 scripts: imp err msg commit a95e3383f1c27b73eaa570dbe8e008c2bdf22be5 Merge: 16caba76 3575aa05 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 12:06:28 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 16caba76f0a16d70542f6fa0d6d83b134c630da4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 12:05:49 2023 +0300 scripts: fix err commit 3566193a7db677420722938c98089a40809c8739 Merge: 55efdeb8 da9008ab Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 30 13:13:54 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 55efdeb80b44183767b188109f1e21aac2fa9839 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 30 13:13:05 2023 +0300 scripts: simplify commit 4a090a6f015e4adb9d5a3f6e3c3c5294daf67f1d Merge: 571b2a29 c576d505 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 29 14:10:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 571b2a29777e694971cc02c895328d733b411803 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 29 14:09:17 2023 +0300 scripts: fix log msg commit 6e92a76c4b9b1240501612878d5f42b3058cba32 Merge: 207c8bac 487675b9 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 18:01:58 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 207c8bacd4818c496b409cee96a4b6f65fbf8c24 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 18:01:23 2023 +0300 scripts: add verbose flag commit e82270f53ce5cf8b1fdb39bff6367fd800483abb Merge: 11761bdc 132ec556 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 15:09:21 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 11761bdc3d9fd10221d0c21d993db0983d9e222f Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 15:08:39 2023 +0300 scripts: upd readme commit cdac6cf37022e67d4a45be587210765294e96270 Merge: 5f824358 df61741f Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 23 16:28:37 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 5f82435847d74bf12a7b450b70d9326a57c99da6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 23 16:27:01 2023 +0300 scripts: add locale update auto
2023-04-03 18:22:15 +03:00
log.Info("warning: accessing a path %q: %s", name, err)
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
return nil
}
if strings.HasPrefix(name, locDir) {
return nil
}
ext := filepath.Ext(name)
if ext == ".js" || ext == ".json" {
fileNames = append(fileNames, name)
}
return nil
}
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
err = filepath.Walk(srcDir, walkFn)
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
if err != nil {
return nil, fmt.Errorf("filepath walking %q: %w", srcDir, err)
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
}
return fileNames, nil
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
}
Pull request 1778: AG-20200-translation-script-update-auto Merge in DNS/adguard-home from AG-20200-translation-script-update-auto to master Squashed commit of the following: commit 22c68f8443c59a5ba7ff7cd33c395f6dcf321e04 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 18:08:40 2023 +0300 scripts: imp err more commit a6ea94b75c4bb09868f45f5c61d62622acf36d0c Merge: 69749b17 2a0d0629 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 17:38:05 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 69749b1767bd49d27c96ac17ef049f6ff6827f86 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 17:37:27 2023 +0300 scripts: imp err commit 6d3eb3270e6fcbe94e9c8f73d654b65a15abcb37 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 13:10:08 2023 +0300 scripts: imp err msg commit a95e3383f1c27b73eaa570dbe8e008c2bdf22be5 Merge: 16caba76 3575aa05 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 12:06:28 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 16caba76f0a16d70542f6fa0d6d83b134c630da4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 12:05:49 2023 +0300 scripts: fix err commit 3566193a7db677420722938c98089a40809c8739 Merge: 55efdeb8 da9008ab Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 30 13:13:54 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 55efdeb80b44183767b188109f1e21aac2fa9839 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 30 13:13:05 2023 +0300 scripts: simplify commit 4a090a6f015e4adb9d5a3f6e3c3c5294daf67f1d Merge: 571b2a29 c576d505 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 29 14:10:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 571b2a29777e694971cc02c895328d733b411803 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 29 14:09:17 2023 +0300 scripts: fix log msg commit 6e92a76c4b9b1240501612878d5f42b3058cba32 Merge: 207c8bac 487675b9 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 18:01:58 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 207c8bacd4818c496b409cee96a4b6f65fbf8c24 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 18:01:23 2023 +0300 scripts: add verbose flag commit e82270f53ce5cf8b1fdb39bff6367fd800483abb Merge: 11761bdc 132ec556 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 15:09:21 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 11761bdc3d9fd10221d0c21d993db0983d9e222f Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 15:08:39 2023 +0300 scripts: upd readme commit cdac6cf37022e67d4a45be587210765294e96270 Merge: 5f824358 df61741f Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 23 16:28:37 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 5f82435847d74bf12a7b450b70d9326a57c99da6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 23 16:27:01 2023 +0300 scripts: add locale update auto
2023-04-03 18:22:15 +03:00
// findUnused prints unused text labels from fileNames.
func findUnused(fileNames []string, loc locales) (err error) {
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
knownUsed := []textLabel{
"blocking_mode_refused",
"blocking_mode_nxdomain",
"blocking_mode_custom_ip",
}
for _, v := range knownUsed {
delete(loc, v)
}
for _, fn := range fileNames {
var buf []byte
buf, err = os.ReadFile(fn)
if err != nil {
Pull request 1778: AG-20200-translation-script-update-auto Merge in DNS/adguard-home from AG-20200-translation-script-update-auto to master Squashed commit of the following: commit 22c68f8443c59a5ba7ff7cd33c395f6dcf321e04 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 18:08:40 2023 +0300 scripts: imp err more commit a6ea94b75c4bb09868f45f5c61d62622acf36d0c Merge: 69749b17 2a0d0629 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 17:38:05 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 69749b1767bd49d27c96ac17ef049f6ff6827f86 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 17:37:27 2023 +0300 scripts: imp err commit 6d3eb3270e6fcbe94e9c8f73d654b65a15abcb37 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 13:10:08 2023 +0300 scripts: imp err msg commit a95e3383f1c27b73eaa570dbe8e008c2bdf22be5 Merge: 16caba76 3575aa05 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 12:06:28 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 16caba76f0a16d70542f6fa0d6d83b134c630da4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 12:05:49 2023 +0300 scripts: fix err commit 3566193a7db677420722938c98089a40809c8739 Merge: 55efdeb8 da9008ab Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 30 13:13:54 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 55efdeb80b44183767b188109f1e21aac2fa9839 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 30 13:13:05 2023 +0300 scripts: simplify commit 4a090a6f015e4adb9d5a3f6e3c3c5294daf67f1d Merge: 571b2a29 c576d505 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 29 14:10:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 571b2a29777e694971cc02c895328d733b411803 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 29 14:09:17 2023 +0300 scripts: fix log msg commit 6e92a76c4b9b1240501612878d5f42b3058cba32 Merge: 207c8bac 487675b9 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 18:01:58 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 207c8bacd4818c496b409cee96a4b6f65fbf8c24 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 18:01:23 2023 +0300 scripts: add verbose flag commit e82270f53ce5cf8b1fdb39bff6367fd800483abb Merge: 11761bdc 132ec556 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 15:09:21 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 11761bdc3d9fd10221d0c21d993db0983d9e222f Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 15:08:39 2023 +0300 scripts: upd readme commit cdac6cf37022e67d4a45be587210765294e96270 Merge: 5f824358 df61741f Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 23 16:28:37 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 5f82435847d74bf12a7b450b70d9326a57c99da6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 23 16:27:01 2023 +0300 scripts: add locale update auto
2023-04-03 18:22:15 +03:00
return fmt.Errorf("finding unused: %w", err)
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
}
for k := range loc {
if bytes.Contains(buf, []byte(k)) {
delete(loc, k)
}
}
}
keys := maps.Keys(loc)
slices.Sort(keys)
for _, v := range keys {
fmt.Println(v)
}
Pull request 1778: AG-20200-translation-script-update-auto Merge in DNS/adguard-home from AG-20200-translation-script-update-auto to master Squashed commit of the following: commit 22c68f8443c59a5ba7ff7cd33c395f6dcf321e04 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 18:08:40 2023 +0300 scripts: imp err more commit a6ea94b75c4bb09868f45f5c61d62622acf36d0c Merge: 69749b17 2a0d0629 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 17:38:05 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 69749b1767bd49d27c96ac17ef049f6ff6827f86 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 17:37:27 2023 +0300 scripts: imp err commit 6d3eb3270e6fcbe94e9c8f73d654b65a15abcb37 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 13:10:08 2023 +0300 scripts: imp err msg commit a95e3383f1c27b73eaa570dbe8e008c2bdf22be5 Merge: 16caba76 3575aa05 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 12:06:28 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 16caba76f0a16d70542f6fa0d6d83b134c630da4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 12:05:49 2023 +0300 scripts: fix err commit 3566193a7db677420722938c98089a40809c8739 Merge: 55efdeb8 da9008ab Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 30 13:13:54 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 55efdeb80b44183767b188109f1e21aac2fa9839 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 30 13:13:05 2023 +0300 scripts: simplify commit 4a090a6f015e4adb9d5a3f6e3c3c5294daf67f1d Merge: 571b2a29 c576d505 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 29 14:10:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 571b2a29777e694971cc02c895328d733b411803 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 29 14:09:17 2023 +0300 scripts: fix log msg commit 6e92a76c4b9b1240501612878d5f42b3058cba32 Merge: 207c8bac 487675b9 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 18:01:58 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 207c8bacd4818c496b409cee96a4b6f65fbf8c24 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 18:01:23 2023 +0300 scripts: add verbose flag commit e82270f53ce5cf8b1fdb39bff6367fd800483abb Merge: 11761bdc 132ec556 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 15:09:21 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 11761bdc3d9fd10221d0c21d993db0983d9e222f Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 15:08:39 2023 +0300 scripts: upd readme commit cdac6cf37022e67d4a45be587210765294e96270 Merge: 5f824358 df61741f Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 23 16:28:37 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 5f82435847d74bf12a7b450b70d9326a57c99da6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 23 16:27:01 2023 +0300 scripts: add locale update auto
2023-04-03 18:22:15 +03:00
return nil
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
}
// autoAdd adds locales with additions to the git and restores locales with
// deletions.
func autoAdd(basePath string) (err error) {
defer func() { err = errors.Annotate(err, "auto add: %w") }()
Pull request 1789: AG-20200-translation-script-fix-upload Merge in DNS/adguard-home from AG-20200-translation-script-fix-upload to master Squashed commit of the following: commit 4d898926828dc438c29b0ae7cbad70d8dea0b8de Merge: 41ad204b 487675b9 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 13:30:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script-fix-upload commit 41ad204bc3ce52ecc61e95261b9519cfc0af9abe Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 13:29:26 2023 +0300 scripts: imp more commit 5ea4821ee49638ad9011809faba0316a753a078b Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 12:38:22 2023 +0300 scripts: imp code commit 253a72fd0e195c7603883322885b7206ed434918 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 12:04:16 2023 +0300 scripts: add docs commit bfd70e338c78fd5b0292480d7f54f396593e98ca Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 10:56:05 2023 +0300 scripts: imp more commit 547b82785f210cc137903cb5b7e2ee41b2a20e59 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 10:08:16 2023 +0300 scripts: imp code commit a788e5ef8a3aa2633cc9fb64c83534f1d4080ef7 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 20:14:55 2023 +0300 scripts: add multipart commit 39d352edf85288a51931dea5b758bc74dd08e19d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 18:35:08 2023 +0300 scripts: fix more commit bcbf155135c53789cc5c6c2c7c8b57dd471e4ea2 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 17:47:40 2023 +0300 scripts: fix upload
2023-03-28 18:02:32 +03:00
adds, dels, err := changedLocales()
Pull request 1789: AG-20200-translation-script-fix-upload Merge in DNS/adguard-home from AG-20200-translation-script-fix-upload to master Squashed commit of the following: commit 4d898926828dc438c29b0ae7cbad70d8dea0b8de Merge: 41ad204b 487675b9 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 13:30:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script-fix-upload commit 41ad204bc3ce52ecc61e95261b9519cfc0af9abe Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 13:29:26 2023 +0300 scripts: imp more commit 5ea4821ee49638ad9011809faba0316a753a078b Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 12:38:22 2023 +0300 scripts: imp code commit 253a72fd0e195c7603883322885b7206ed434918 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 12:04:16 2023 +0300 scripts: add docs commit bfd70e338c78fd5b0292480d7f54f396593e98ca Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 10:56:05 2023 +0300 scripts: imp more commit 547b82785f210cc137903cb5b7e2ee41b2a20e59 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 10:08:16 2023 +0300 scripts: imp code commit a788e5ef8a3aa2633cc9fb64c83534f1d4080ef7 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 20:14:55 2023 +0300 scripts: add multipart commit 39d352edf85288a51931dea5b758bc74dd08e19d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 18:35:08 2023 +0300 scripts: fix more commit bcbf155135c53789cc5c6c2c7c8b57dd471e4ea2 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 17:47:40 2023 +0300 scripts: fix upload
2023-03-28 18:02:32 +03:00
if err != nil {
// Don't wrap the error since it's informative enough as is.
return err
Pull request 1789: AG-20200-translation-script-fix-upload Merge in DNS/adguard-home from AG-20200-translation-script-fix-upload to master Squashed commit of the following: commit 4d898926828dc438c29b0ae7cbad70d8dea0b8de Merge: 41ad204b 487675b9 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 13:30:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script-fix-upload commit 41ad204bc3ce52ecc61e95261b9519cfc0af9abe Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 13:29:26 2023 +0300 scripts: imp more commit 5ea4821ee49638ad9011809faba0316a753a078b Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 12:38:22 2023 +0300 scripts: imp code commit 253a72fd0e195c7603883322885b7206ed434918 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 12:04:16 2023 +0300 scripts: add docs commit bfd70e338c78fd5b0292480d7f54f396593e98ca Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 10:56:05 2023 +0300 scripts: imp more commit 547b82785f210cc137903cb5b7e2ee41b2a20e59 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 10:08:16 2023 +0300 scripts: imp code commit a788e5ef8a3aa2633cc9fb64c83534f1d4080ef7 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 20:14:55 2023 +0300 scripts: add multipart commit 39d352edf85288a51931dea5b758bc74dd08e19d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 18:35:08 2023 +0300 scripts: fix more commit bcbf155135c53789cc5c6c2c7c8b57dd471e4ea2 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 17:47:40 2023 +0300 scripts: fix upload
2023-03-28 18:02:32 +03:00
}
if slices.Contains(dels, basePath) {
return errors.Error("base locale contains deletions")
Pull request 1789: AG-20200-translation-script-fix-upload Merge in DNS/adguard-home from AG-20200-translation-script-fix-upload to master Squashed commit of the following: commit 4d898926828dc438c29b0ae7cbad70d8dea0b8de Merge: 41ad204b 487675b9 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 13:30:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script-fix-upload commit 41ad204bc3ce52ecc61e95261b9519cfc0af9abe Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 13:29:26 2023 +0300 scripts: imp more commit 5ea4821ee49638ad9011809faba0316a753a078b Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 12:38:22 2023 +0300 scripts: imp code commit 253a72fd0e195c7603883322885b7206ed434918 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 12:04:16 2023 +0300 scripts: add docs commit bfd70e338c78fd5b0292480d7f54f396593e98ca Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 10:56:05 2023 +0300 scripts: imp more commit 547b82785f210cc137903cb5b7e2ee41b2a20e59 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 10:08:16 2023 +0300 scripts: imp code commit a788e5ef8a3aa2633cc9fb64c83534f1d4080ef7 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 20:14:55 2023 +0300 scripts: add multipart commit 39d352edf85288a51931dea5b758bc74dd08e19d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 18:35:08 2023 +0300 scripts: fix more commit bcbf155135c53789cc5c6c2c7c8b57dd471e4ea2 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 17:47:40 2023 +0300 scripts: fix upload
2023-03-28 18:02:32 +03:00
}
err = handleAdds(adds)
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
if err != nil {
// Don't wrap the error since it's informative enough as is.
return nil
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
}
err = handleDels(dels)
Pull request 1789: AG-20200-translation-script-fix-upload Merge in DNS/adguard-home from AG-20200-translation-script-fix-upload to master Squashed commit of the following: commit 4d898926828dc438c29b0ae7cbad70d8dea0b8de Merge: 41ad204b 487675b9 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 13:30:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script-fix-upload commit 41ad204bc3ce52ecc61e95261b9519cfc0af9abe Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 13:29:26 2023 +0300 scripts: imp more commit 5ea4821ee49638ad9011809faba0316a753a078b Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 12:38:22 2023 +0300 scripts: imp code commit 253a72fd0e195c7603883322885b7206ed434918 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 12:04:16 2023 +0300 scripts: add docs commit bfd70e338c78fd5b0292480d7f54f396593e98ca Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 10:56:05 2023 +0300 scripts: imp more commit 547b82785f210cc137903cb5b7e2ee41b2a20e59 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 10:08:16 2023 +0300 scripts: imp code commit a788e5ef8a3aa2633cc9fb64c83534f1d4080ef7 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 20:14:55 2023 +0300 scripts: add multipart commit 39d352edf85288a51931dea5b758bc74dd08e19d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 18:35:08 2023 +0300 scripts: fix more commit bcbf155135c53789cc5c6c2c7c8b57dd471e4ea2 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 17:47:40 2023 +0300 scripts: fix upload
2023-03-28 18:02:32 +03:00
if err != nil {
// Don't wrap the error since it's informative enough as is.
return nil
Pull request 1789: AG-20200-translation-script-fix-upload Merge in DNS/adguard-home from AG-20200-translation-script-fix-upload to master Squashed commit of the following: commit 4d898926828dc438c29b0ae7cbad70d8dea0b8de Merge: 41ad204b 487675b9 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 13:30:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script-fix-upload commit 41ad204bc3ce52ecc61e95261b9519cfc0af9abe Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 13:29:26 2023 +0300 scripts: imp more commit 5ea4821ee49638ad9011809faba0316a753a078b Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 12:38:22 2023 +0300 scripts: imp code commit 253a72fd0e195c7603883322885b7206ed434918 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 12:04:16 2023 +0300 scripts: add docs commit bfd70e338c78fd5b0292480d7f54f396593e98ca Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 10:56:05 2023 +0300 scripts: imp more commit 547b82785f210cc137903cb5b7e2ee41b2a20e59 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 10:08:16 2023 +0300 scripts: imp code commit a788e5ef8a3aa2633cc9fb64c83534f1d4080ef7 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 20:14:55 2023 +0300 scripts: add multipart commit 39d352edf85288a51931dea5b758bc74dd08e19d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 18:35:08 2023 +0300 scripts: fix more commit bcbf155135c53789cc5c6c2c7c8b57dd471e4ea2 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 17:47:40 2023 +0300 scripts: fix upload
2023-03-28 18:02:32 +03:00
}
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
return nil
Pull request 1789: AG-20200-translation-script-fix-upload Merge in DNS/adguard-home from AG-20200-translation-script-fix-upload to master Squashed commit of the following: commit 4d898926828dc438c29b0ae7cbad70d8dea0b8de Merge: 41ad204b 487675b9 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 13:30:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script-fix-upload commit 41ad204bc3ce52ecc61e95261b9519cfc0af9abe Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 13:29:26 2023 +0300 scripts: imp more commit 5ea4821ee49638ad9011809faba0316a753a078b Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 12:38:22 2023 +0300 scripts: imp code commit 253a72fd0e195c7603883322885b7206ed434918 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 12:04:16 2023 +0300 scripts: add docs commit bfd70e338c78fd5b0292480d7f54f396593e98ca Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 10:56:05 2023 +0300 scripts: imp more commit 547b82785f210cc137903cb5b7e2ee41b2a20e59 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 10:08:16 2023 +0300 scripts: imp code commit a788e5ef8a3aa2633cc9fb64c83534f1d4080ef7 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 20:14:55 2023 +0300 scripts: add multipart commit 39d352edf85288a51931dea5b758bc74dd08e19d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 18:35:08 2023 +0300 scripts: fix more commit bcbf155135c53789cc5c6c2c7c8b57dd471e4ea2 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 17:47:40 2023 +0300 scripts: fix upload
2023-03-28 18:02:32 +03:00
}
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
// handleAdds adds locales with additions to the git.
func handleAdds(locales []string) (err error) {
if len(locales) == 0 {
return nil
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
}
args := append([]string{"add"}, locales...)
code, out, err := aghos.RunCommand("git", args...)
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
if err != nil || code != 0 {
return fmt.Errorf("git add exited with code %d output %q: %w", code, out, err)
Pull request 1763: AG-20200-translation-script Merge in DNS/adguard-home from AG-20200-translation-script to master Squashed commit of the following: commit 3113b77c0312219f8134324caa232a53c42a3988 Merge: bbd784ab f736d85e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 17:41:08 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit bbd784ab817955f3342d140644a3199d558c22b8 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 13:23:48 2023 +0300 scripts: imp code commit 7d379ab1fc2ae9858f8e7e3754de9be3d23153b6 Merge: 4f6278ad 1daabb97 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 21 12:01:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 4f6278adb28287205a4fc89239e7ba776a15ff7a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Fri Mar 17 14:27:32 2023 +0300 scripts: imp error handling commit 64e307a591cfeac1986d477a55bcc714636663bc Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:41:39 2023 +0300 scripts: imp code commit fe06df88f2bb3fc0de83f83deea26652485a22d4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 15:23:20 2023 +0300 scripts: add docs commit 15d65a075373586fc31a595d7c831b80752d7cf2 Merge: ddd3cacd 9f7a582d Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:04:16 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ddd3cacd507ca861c4d9d5f7600bdcc2c3068315 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 16 13:03:11 2023 +0300 scripts: imp code commit 4e8ebdc199f0c0ff4e7c7b8ae71483cca6c4d428 Merge: 73fedefa c6706445 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:36 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 73fedefa4ceaf2273648afe5816f1903d96ba213 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 15 12:25:04 2023 +0300 scripts: fix chlog commit 780b0a257b6b2e684cfe8a49e4c4d22bcd4056ec Merge: ef70d192 595484e0 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:58:24 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit ef70d192555a9ef2acd6dd1caeb4f05a10a1de63 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 14 14:57:36 2023 +0300 scripts: upd readme commit e28655826c8c5ce6ddf3cc904201681286a6be87 Merge: cae3b769 a2053526 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:28:47 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit cae3b769dfa6906653b32104169ae4a08a2c3723 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 13 14:27:29 2023 +0300 scripts: rm translations js commit 77e2e3480b52a70b8ef9be8f1edf581cca2a1a3a Merge: 99e2382a c11a52d6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:04:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script commit 99e2382a161dee0bff30ae488d8b42565330d82e Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 7 16:03:19 2023 +0300 scripts: add translations go
2023-03-21 17:43:48 +03:00
}
return nil
}
Pull request 1778: AG-20200-translation-script-update-auto Merge in DNS/adguard-home from AG-20200-translation-script-update-auto to master Squashed commit of the following: commit 22c68f8443c59a5ba7ff7cd33c395f6dcf321e04 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 18:08:40 2023 +0300 scripts: imp err more commit a6ea94b75c4bb09868f45f5c61d62622acf36d0c Merge: 69749b17 2a0d0629 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 17:38:05 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 69749b1767bd49d27c96ac17ef049f6ff6827f86 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 17:37:27 2023 +0300 scripts: imp err commit 6d3eb3270e6fcbe94e9c8f73d654b65a15abcb37 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 13:10:08 2023 +0300 scripts: imp err msg commit a95e3383f1c27b73eaa570dbe8e008c2bdf22be5 Merge: 16caba76 3575aa05 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 12:06:28 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 16caba76f0a16d70542f6fa0d6d83b134c630da4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 12:05:49 2023 +0300 scripts: fix err commit 3566193a7db677420722938c98089a40809c8739 Merge: 55efdeb8 da9008ab Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 30 13:13:54 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 55efdeb80b44183767b188109f1e21aac2fa9839 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 30 13:13:05 2023 +0300 scripts: simplify commit 4a090a6f015e4adb9d5a3f6e3c3c5294daf67f1d Merge: 571b2a29 c576d505 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 29 14:10:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 571b2a29777e694971cc02c895328d733b411803 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 29 14:09:17 2023 +0300 scripts: fix log msg commit 6e92a76c4b9b1240501612878d5f42b3058cba32 Merge: 207c8bac 487675b9 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 18:01:58 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 207c8bacd4818c496b409cee96a4b6f65fbf8c24 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 18:01:23 2023 +0300 scripts: add verbose flag commit e82270f53ce5cf8b1fdb39bff6367fd800483abb Merge: 11761bdc 132ec556 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 15:09:21 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 11761bdc3d9fd10221d0c21d993db0983d9e222f Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 15:08:39 2023 +0300 scripts: upd readme commit cdac6cf37022e67d4a45be587210765294e96270 Merge: 5f824358 df61741f Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 23 16:28:37 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 5f82435847d74bf12a7b450b70d9326a57c99da6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 23 16:27:01 2023 +0300 scripts: add locale update auto
2023-04-03 18:22:15 +03:00
// handleDels restores locales with deletions.
func handleDels(locales []string) (err error) {
if len(locales) == 0 {
return nil
Pull request 1778: AG-20200-translation-script-update-auto Merge in DNS/adguard-home from AG-20200-translation-script-update-auto to master Squashed commit of the following: commit 22c68f8443c59a5ba7ff7cd33c395f6dcf321e04 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 18:08:40 2023 +0300 scripts: imp err more commit a6ea94b75c4bb09868f45f5c61d62622acf36d0c Merge: 69749b17 2a0d0629 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 17:38:05 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 69749b1767bd49d27c96ac17ef049f6ff6827f86 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 17:37:27 2023 +0300 scripts: imp err commit 6d3eb3270e6fcbe94e9c8f73d654b65a15abcb37 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 13:10:08 2023 +0300 scripts: imp err msg commit a95e3383f1c27b73eaa570dbe8e008c2bdf22be5 Merge: 16caba76 3575aa05 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 12:06:28 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 16caba76f0a16d70542f6fa0d6d83b134c630da4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 12:05:49 2023 +0300 scripts: fix err commit 3566193a7db677420722938c98089a40809c8739 Merge: 55efdeb8 da9008ab Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 30 13:13:54 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 55efdeb80b44183767b188109f1e21aac2fa9839 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 30 13:13:05 2023 +0300 scripts: simplify commit 4a090a6f015e4adb9d5a3f6e3c3c5294daf67f1d Merge: 571b2a29 c576d505 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 29 14:10:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 571b2a29777e694971cc02c895328d733b411803 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 29 14:09:17 2023 +0300 scripts: fix log msg commit 6e92a76c4b9b1240501612878d5f42b3058cba32 Merge: 207c8bac 487675b9 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 18:01:58 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 207c8bacd4818c496b409cee96a4b6f65fbf8c24 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 18:01:23 2023 +0300 scripts: add verbose flag commit e82270f53ce5cf8b1fdb39bff6367fd800483abb Merge: 11761bdc 132ec556 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 15:09:21 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 11761bdc3d9fd10221d0c21d993db0983d9e222f Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 15:08:39 2023 +0300 scripts: upd readme commit cdac6cf37022e67d4a45be587210765294e96270 Merge: 5f824358 df61741f Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 23 16:28:37 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 5f82435847d74bf12a7b450b70d9326a57c99da6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 23 16:27:01 2023 +0300 scripts: add locale update auto
2023-04-03 18:22:15 +03:00
}
args := append([]string{"restore"}, locales...)
code, out, err := aghos.RunCommand("git", args...)
Pull request 1778: AG-20200-translation-script-update-auto Merge in DNS/adguard-home from AG-20200-translation-script-update-auto to master Squashed commit of the following: commit 22c68f8443c59a5ba7ff7cd33c395f6dcf321e04 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 18:08:40 2023 +0300 scripts: imp err more commit a6ea94b75c4bb09868f45f5c61d62622acf36d0c Merge: 69749b17 2a0d0629 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 17:38:05 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 69749b1767bd49d27c96ac17ef049f6ff6827f86 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 17:37:27 2023 +0300 scripts: imp err commit 6d3eb3270e6fcbe94e9c8f73d654b65a15abcb37 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 13:10:08 2023 +0300 scripts: imp err msg commit a95e3383f1c27b73eaa570dbe8e008c2bdf22be5 Merge: 16caba76 3575aa05 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 12:06:28 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 16caba76f0a16d70542f6fa0d6d83b134c630da4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 12:05:49 2023 +0300 scripts: fix err commit 3566193a7db677420722938c98089a40809c8739 Merge: 55efdeb8 da9008ab Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 30 13:13:54 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 55efdeb80b44183767b188109f1e21aac2fa9839 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 30 13:13:05 2023 +0300 scripts: simplify commit 4a090a6f015e4adb9d5a3f6e3c3c5294daf67f1d Merge: 571b2a29 c576d505 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 29 14:10:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 571b2a29777e694971cc02c895328d733b411803 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 29 14:09:17 2023 +0300 scripts: fix log msg commit 6e92a76c4b9b1240501612878d5f42b3058cba32 Merge: 207c8bac 487675b9 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 18:01:58 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 207c8bacd4818c496b409cee96a4b6f65fbf8c24 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 18:01:23 2023 +0300 scripts: add verbose flag commit e82270f53ce5cf8b1fdb39bff6367fd800483abb Merge: 11761bdc 132ec556 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 15:09:21 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 11761bdc3d9fd10221d0c21d993db0983d9e222f Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 15:08:39 2023 +0300 scripts: upd readme commit cdac6cf37022e67d4a45be587210765294e96270 Merge: 5f824358 df61741f Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 23 16:28:37 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 5f82435847d74bf12a7b450b70d9326a57c99da6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 23 16:27:01 2023 +0300 scripts: add locale update auto
2023-04-03 18:22:15 +03:00
if err != nil || code != 0 {
return fmt.Errorf("git restore exited with code %d output %q: %w", code, out, err)
Pull request 1778: AG-20200-translation-script-update-auto Merge in DNS/adguard-home from AG-20200-translation-script-update-auto to master Squashed commit of the following: commit 22c68f8443c59a5ba7ff7cd33c395f6dcf321e04 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 18:08:40 2023 +0300 scripts: imp err more commit a6ea94b75c4bb09868f45f5c61d62622acf36d0c Merge: 69749b17 2a0d0629 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 17:38:05 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 69749b1767bd49d27c96ac17ef049f6ff6827f86 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 17:37:27 2023 +0300 scripts: imp err commit 6d3eb3270e6fcbe94e9c8f73d654b65a15abcb37 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 13:10:08 2023 +0300 scripts: imp err msg commit a95e3383f1c27b73eaa570dbe8e008c2bdf22be5 Merge: 16caba76 3575aa05 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 12:06:28 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 16caba76f0a16d70542f6fa0d6d83b134c630da4 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Apr 3 12:05:49 2023 +0300 scripts: fix err commit 3566193a7db677420722938c98089a40809c8739 Merge: 55efdeb8 da9008ab Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 30 13:13:54 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 55efdeb80b44183767b188109f1e21aac2fa9839 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 30 13:13:05 2023 +0300 scripts: simplify commit 4a090a6f015e4adb9d5a3f6e3c3c5294daf67f1d Merge: 571b2a29 c576d505 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 29 14:10:06 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 571b2a29777e694971cc02c895328d733b411803 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Wed Mar 29 14:09:17 2023 +0300 scripts: fix log msg commit 6e92a76c4b9b1240501612878d5f42b3058cba32 Merge: 207c8bac 487675b9 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 18:01:58 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 207c8bacd4818c496b409cee96a4b6f65fbf8c24 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Tue Mar 28 18:01:23 2023 +0300 scripts: add verbose flag commit e82270f53ce5cf8b1fdb39bff6367fd800483abb Merge: 11761bdc 132ec556 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 15:09:21 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 11761bdc3d9fd10221d0c21d993db0983d9e222f Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Mon Mar 27 15:08:39 2023 +0300 scripts: upd readme commit cdac6cf37022e67d4a45be587210765294e96270 Merge: 5f824358 df61741f Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 23 16:28:37 2023 +0300 Merge branch 'master' into AG-20200-translation-script-update-auto commit 5f82435847d74bf12a7b450b70d9326a57c99da6 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Mar 23 16:27:01 2023 +0300 scripts: add locale update auto
2023-04-03 18:22:15 +03:00
}
return nil
}
// changedLocales returns cleaned paths of locales with changes or error. adds
// is the list of locales with only additions. dels is the list of locales
// with only deletions.
func changedLocales() (adds, dels []string, err error) {
defer func() { err = errors.Annotate(err, "getting changes: %w") }()
cmd := exec.Command("git", "diff", "--numstat", localesDir)
stdout, err := cmd.StdoutPipe()
if err != nil {
return nil, nil, fmt.Errorf("piping: %w", err)
}
err = cmd.Start()
if err != nil {
return nil, nil, fmt.Errorf("starting: %w", err)
}
scanner := bufio.NewScanner(stdout)
for scanner.Scan() {
line := scanner.Text()
fields := strings.Fields(line)
if len(fields) < 3 {
return nil, nil, fmt.Errorf("invalid input: %q", line)
}
path := fields[2]
if fields[0] == "0" {
dels = append(dels, path)
} else if fields[1] == "0" {
adds = append(adds, path)
}
}
err = scanner.Err()
if err != nil {
return nil, nil, fmt.Errorf("scanning: %w", err)
}
err = cmd.Wait()
if err != nil {
return nil, nil, fmt.Errorf("waiting: %w", err)
}
return adds, dels, nil
}