Przeglądaj źródła

i18n: Remove line numbers from classref PO files

It's useful context for translators but it generates very spammy diffs whenever
a line is added or removed, changing the comments for hundreds or thousands of
msgids needlessly.

We still have the file names so it's relatively easy to search in file to find
the location of the source string.
Rémi Verschelde 3 lat temu
rodzic
commit
dbfe36728e

Plik diff jest za duży
+ 392 - 392
doc/translations/ar.po


Plik diff jest za duży
+ 392 - 392
doc/translations/ca.po


Plik diff jest za duży
+ 392 - 392
doc/translations/classes.pot


Plik diff jest za duży
+ 392 - 392
doc/translations/cs.po


Plik diff jest za duży
+ 136 - 136
doc/translations/de.po


Plik diff jest za duży
+ 392 - 392
doc/translations/el.po


Plik diff jest za duży
+ 136 - 136
doc/translations/es.po


+ 5 - 2
doc/translations/extract.py

@@ -221,7 +221,7 @@ def _make_translation_catalog(classes):
 
 
 ## generate the catalog file
-def _generate_translation_catalog_file(unique_msgs, output):
+def _generate_translation_catalog_file(unique_msgs, output, location_line=False):
     with open(output, "w", encoding="utf8") as f:
         f.write(HEADER)
         for msg in BASE_STRINGS:
@@ -238,7 +238,10 @@ def _generate_translation_catalog_file(unique_msgs, output):
                 path = desc.desc_list.path.replace("\\", "/")
                 if path.startswith("./"):
                     path = path[2:]
-                f.write(" {}:{}".format(path, desc.line_no))
+                if location_line:  # Can be skipped as diffs on line numbers are spammy.
+                    f.write(" {}:{}".format(path, desc.line_no))
+                else:
+                    f.write(" {}".format(path))
             f.write("\n")
 
             f.write('msgid "{}"\n'.format(msg))

Plik diff jest za duży
+ 392 - 392
doc/translations/fa.po


Plik diff jest za duży
+ 392 - 392
doc/translations/fi.po


Plik diff jest za duży
+ 392 - 392
doc/translations/fil.po


Plik diff jest za duży
+ 136 - 136
doc/translations/fr.po


Plik diff jest za duży
+ 392 - 392
doc/translations/gl.po


Plik diff jest za duży
+ 392 - 392
doc/translations/hi.po


Plik diff jest za duży
+ 392 - 392
doc/translations/hu.po


Plik diff jest za duży
+ 392 - 392
doc/translations/id.po


Plik diff jest za duży
+ 392 - 392
doc/translations/is.po


Plik diff jest za duży
+ 392 - 392
doc/translations/it.po


Plik diff jest za duży
+ 136 - 136
doc/translations/ja.po


Plik diff jest za duży
+ 392 - 392
doc/translations/ko.po


Plik diff jest za duży
+ 392 - 392
doc/translations/lv.po


Plik diff jest za duży
+ 392 - 392
doc/translations/mr.po


Plik diff jest za duży
+ 392 - 392
doc/translations/nb.po


Plik diff jest za duży
+ 392 - 392
doc/translations/nl.po


Plik diff jest za duży
+ 392 - 392
doc/translations/pl.po


Plik diff jest za duży
+ 392 - 392
doc/translations/pt.po


Plik diff jest za duży
+ 136 - 136
doc/translations/pt_BR.po


Plik diff jest za duży
+ 392 - 392
doc/translations/ro.po


Plik diff jest za duży
+ 136 - 136
doc/translations/ru.po


Plik diff jest za duży
+ 392 - 392
doc/translations/sk.po


Plik diff jest za duży
+ 392 - 392
doc/translations/sr_Cyrl.po


Plik diff jest za duży
+ 392 - 392
doc/translations/sv.po


Plik diff jest za duży
+ 392 - 392
doc/translations/th.po


Plik diff jest za duży
+ 392 - 392
doc/translations/tl.po


Plik diff jest za duży
+ 392 - 392
doc/translations/tr.po


Plik diff jest za duży
+ 392 - 392
doc/translations/uk.po


Plik diff jest za duży
+ 136 - 136
doc/translations/vi.po


Plik diff jest za duży
+ 392 - 392
doc/translations/zh_CN.po


Plik diff jest za duży
+ 392 - 392
doc/translations/zh_TW.po


Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików