Skip to content

Instantly share code, notes, and snippets.

View mathjazz's full-sized avatar

Matjaž Horvat mathjazz

View GitHub Profile
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):
'reactivate-confirm-copy =\n O seu acesso a { $name } irá continuar e o seu ciclo de faturação¶\n e pagamento irão permanecer. O seu próximo débito será de¶\n { $amount } para o cartão que termina em { $last } em { $endDate }.'
'reactivate-confirm-copy =\n O seu acesso a { $name } irá continuar e o seu ciclo de faturação\n e pagamento irão permanecer. O seu próximo débito será de\n { $amount } para o cartão que termina em { $last } em { $endDate }.'
------------------------------------------------------------
'reactivate-confirm-copy =\n O seu acesso a { $name } irá continuar e o seu ciclo de faturação¶\n e pagamento irão permanecer. O seu próximo débito será de¶\n { $amount } para o cartão que termina em { $last } em { $endDate }.\n'
'reactivate-confirm-copy =\n O seu acesso a { $name } irá continuar e o seu ciclo de faturação\n e pagamento irão permanecer. O seu próximo débito será de\n { $amount } para o cartão que termina em { $last } em { $endDate }.\n'
---------------
187:32.22 Compiling fluent-ffi v0.1.0 (/Users/mathjazz/src/mozilla-central/intl/l10n/rust/fluent-ffi)
187:32.60 warning: unused import: `intl_memoizer::IntlLangMemoizer`
187:32.61 --> intl/l10n/rust/fluent-ffi/src/builtins.rs:8:5
187:32.61 |
187:32.61 8 | use intl_memoizer::IntlLangMemoizer;
187:32.61 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
187:34.40 |
187:34.40 = note: `#[warn(unused_imports)]` on by default
187:34.40 error[E0053]: method `as_string` has an incompatible type for trait
187:34.40 --> intl/l10n/rust/fluent-ffi/src/builtins.rs:397:32
1:23.43 Compiling fluent-ffi v0.1.0 (/Users/mathjazz/src/mozilla-central/intl/l10n/rust/fluent-ffi)
1:23.82 error[E0053]: method `as_string` has an incompatible type for trait
1:23.82 --> intl/l10n/rust/fluent-ffi/src/builtins.rs:397:32
1:23.82 |
1:23.82 397 | fn as_string(&self, intls: &IntlLangMemoizer) -> Cow<'static, str> {
1:23.82 | ^^^^^^^^^^^^^^^^^
1:23.83 | |
1:23.83 | expected struct `intl_memoizer::IntlLangMemoizer`, found a different struct `intl_memoizer::IntlLangMemoizer`
1:23.83 | help: change the parameter type to match the trait: `&intl_memoizer::IntlLangMemoizer`
1:23.83 |
0:43.63 Compiling fluent-ffi v0.1.0 (/Users/mathjazz/src/mozilla-central/intl/l10n/rust/fluent-ffi)
0:44.82 error[E0053]: method `as_string` has an incompatible type for trait
0:44.82 --> intl/l10n/rust/fluent-ffi/src/builtins.rs:397:32
0:44.82 |
0:44.82 397 | fn as_string(&self, intls: &IntlLangMemoizer) -> Cow<'static, str> {
0:44.82 | ^^^^^^^^^^^^^^^^^
0:44.82 | |
0:44.82 | expected struct `intl_memoizer::IntlLangMemoizer`, found a different struct `intl_memoizer::IntlLangMemoizer`
0:44.82 | help: change the parameter type to match the trait: `&intl_memoizer::IntlLangMemoizer`
0:44.82 |
--- a/intl/l10n/rust/fluent-ffi/src/bundle.rs
+++ b/intl/l10n/rust/fluent-ffi/src/bundle.rs
@@ -18,21 +18,25 @@ pub type FluentBundleRc = FluentBundle<R
#[derive(Debug)]
#[repr(C, u8)]
pub enum FluentArgument {
Double_(f64),
String(*const nsCString),
}