Skip to content

Instantly share code, notes, and snippets.

View mathjazz's full-sized avatar

Matjaž Horvat mathjazz

View GitHub Profile
@mathjazz
mathjazz / gist:13aaeb2b00476c4802063a7cc7415957
Created May 10, 2023 09:56
Pretranslated strings for Italian Firefox Monitor Website
old_string
new_string
link_to_old_string
link_to_new_string
---------------------
breach-description = In data { $breachDate }, { $companyName } è stata violata. Una volta scoperta e verificata la violazione, è stata aggiunta al nostro database il { $addedDate }. Questa violazione includeva: { $dataClasses }
breach-description = Il { $breachDate }, { $companyName } è stato violato. Una volta scoperta e verificata la violazione, è stata aggiunta al nostro database il { $addedDate }. Questa violazione includeva: { $dataClasses }
diff --git a/translate/public/locale/en-US/translate.ftl b/translate/public/locale/en-US/translate.ftl
index 3c27702d9..d75b9b271 100644
--- a/translate/public/locale/en-US/translate.ftl
+++ b/translate/public/locale/en-US/translate.ftl
@@ -209,7 +209,7 @@ editor-KeyboardShortcuts--copy-from-next-helper-shortcut = <mod1>Ctrl</mod1> + <
## Editor machinery source indicator
## Shown when a perfect match is provided automatically from translation memory
-editor-MachinerySourceIndicator--text = Perfect match from translation memory
+editor-MachinerySourceIndicator--text = <stress>100%</stress> MATCH FROM TRANSLATION MEMORY
{
"data": {
"firefox": {
"localizations": [{
"locale": {
"code": "el"
}
}, {
"locale": {
"code": "he"
{
"data": {
"firefox": {
"localizations": [{
"locale": {
"code": "el"
}
}, {
"locale": {
"code": "he"
Sideshow:translation-service mathjazz$ make build-docker
docker build -t translation-service .
[+] Building 2.7s (11/19)
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 1.50kB 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/ubuntu:focal
Sideshow:Desktop mathjazz$ git clone https://github.com/mozilla/firefox-translations-models
Cloning into 'firefox-translations-models'...
remote: Enumerating objects: 794, done.
remote: Counting objects: 100% (437/437), done.
remote: Compressing objects: 100% (199/199), done.
remote: Total 794 (delta 60), reused 379 (delta 32), pack-reused 357
Receiving objects: 100% (794/794), 756.52 MiB | 25.58 MiB/s, done.
Resolving deltas: 100% (155/155), done.
Sideshow:Desktop mathjazz$ gzip -d firefox-translations-models/models/prod/*/*
gzip: firefox-translations-models/models/prod/csen/lex.50.50.csen.s2t.bin.gz: not in gzip format
Sideshow:translation-service mathjazz$ make setup-models
git clone https://github.com/mozilla/firefox-translations-models
Cloning into 'firefox-translations-models'...
remote: Enumerating objects: 794, done.
remote: Counting objects: 100% (437/437), done.
remote: Compressing objects: 100% (199/199), done.
remote: Total 794 (delta 60), reused 379 (delta 32), pack-reused 357
Receiving objects: 100% (794/794), 756.52 MiB | 234.00 KiB/s, done.
Resolving deltas: 100% (155/155), done.
rm -rf models
@mathjazz
mathjazz / sl
Created December 2, 2021 17:58
Albanian
Arabic
Bengali
Bulgarian
Burmese
Catalan
Chinese Simplified
Chinese Traditional
Croatian
Czech
remote: Failed to compile.
remote:
remote: /tmp/build_75af8b8d/frontend/src/modules/search/withSearch.tsx
remote: TypeScript error in /tmp/build_75af8b8d/frontend/src/modules/search/withSearch.tsx(38,13):
remote: Type 'ReactNodeArray' is not assignable to type 'string | ReactNode[]'.
remote: The type 'readonly ReactNode[]' is 'readonly' and cannot be assigned to the mutable type 'ReactNode[]'. TS2322
remote:
remote: 36 | );
remote: 37 |
remote: > 38 | base = mark(base, rule, tag);
diff --git a/pontoon/base/models.py b/pontoon/base/models.py
index 128acf66f..04b1180ef 100644
--- a/pontoon/base/models.py
+++ b/pontoon/base/models.py
@@ -439,6 +439,18 @@ class PermissionChangelog(models.Model):
)
+class AggregatedStatsQuerySet(models.QuerySet):
+ def aggregated_stats(self):