langtool: Ignore comments when syncing lines

langtool: Don't automatically copy translators.
This commit is contained in:
Henrik Rydgård 2021-09-21 07:39:05 +02:00
parent f663ebafd4
commit 90f0a6d78b

@ -21,6 +21,14 @@ impl Section {
} else {
return false;
};
// Ignore comments when copying lines.
if prefix.starts_with("#") {
return false;
}
// Need to decide a policy for these.
if prefix.starts_with("translators") {
return false;
}
let prefix = prefix.to_owned();
for iter_line in &self.lines {