diff --git a/lib/package/localization.js b/lib/package/localization.js index 33fb155d..4aa3e329 100644 --- a/lib/package/localization.js +++ b/lib/package/localization.js @@ -21,7 +21,6 @@ create table if not exists translation ( language text noy null, msgid text not null, msgid_plural text not null, - fuzzy bool NOT NULL, translations json not null, primary key ( language, msgid, msgid_plural ) ); @@ -33,13 +32,11 @@ INSERT INTO translation language, msgid, msgid_plural, - fuzzy, translations ) VALUES - ( ?, ?, ?, ?, ? ) + ( ?, ?, ?, ? ) ON CONFLICT ( language, msgid, msgid_plural ) DO UPDATE SET - fuzzy = EXCLUDED.fuzzy, translations = EXCLUDED.translations `.prepare(), @@ -161,7 +158,7 @@ export default class { // message is fully translated if ( message.isTranslated ) { - if ( message.isDisFuzzy ) continue; + if ( message.isFuzzy ) continue; this.#storeMessage( poFile.language, message ); } @@ -198,9 +195,9 @@ export default class { message.isFuzzy = true; message.setTranslations( [ res.data ] ); - console.log( `Auto translated: -${ message.id } -${ res.data } + console.log( `Cloud translation: +- ${ message.id } +- ${ res.data } ` ); } @@ -236,7 +233,6 @@ ${ res.data } language, message.id, message.pluralId || "", - message.isDisFuzzy, message.translations, ] ); }