ソースを参照

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.

(cherry picked from commit dbfe36728ed32ee93bd200678534733c89dc3150)
Rémi Verschelde 3 年 前
コミット
7695ad5858

ファイルの差分が大きいため隠しています
+ 392 - 392
doc/translations/ar.po


ファイルの差分が大きいため隠しています
+ 392 - 392
doc/translations/ca.po


ファイルの差分が大きいため隠しています
+ 392 - 392
doc/translations/classes.pot


ファイルの差分が大きいため隠しています
+ 392 - 392
doc/translations/cs.po


ファイルの差分が大きいため隠しています
+ 136 - 136
doc/translations/de.po


ファイルの差分が大きいため隠しています
+ 392 - 392
doc/translations/el.po


ファイルの差分が大きいため隠しています
+ 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))

ファイルの差分が大きいため隠しています
+ 392 - 392
doc/translations/fa.po


ファイルの差分が大きいため隠しています
+ 392 - 392
doc/translations/fi.po


ファイルの差分が大きいため隠しています
+ 392 - 392
doc/translations/fil.po


ファイルの差分が大きいため隠しています
+ 136 - 136
doc/translations/fr.po


ファイルの差分が大きいため隠しています
+ 392 - 392
doc/translations/gl.po


ファイルの差分が大きいため隠しています
+ 392 - 392
doc/translations/hi.po


ファイルの差分が大きいため隠しています
+ 392 - 392
doc/translations/hu.po


ファイルの差分が大きいため隠しています
+ 392 - 392
doc/translations/id.po


ファイルの差分が大きいため隠しています
+ 392 - 392
doc/translations/is.po


ファイルの差分が大きいため隠しています
+ 392 - 392
doc/translations/it.po


ファイルの差分が大きいため隠しています
+ 136 - 136
doc/translations/ja.po


ファイルの差分が大きいため隠しています
+ 392 - 392
doc/translations/ko.po


ファイルの差分が大きいため隠しています
+ 392 - 392
doc/translations/lv.po


ファイルの差分が大きいため隠しています
+ 392 - 392
doc/translations/mr.po


ファイルの差分が大きいため隠しています
+ 392 - 392
doc/translations/nb.po


ファイルの差分が大きいため隠しています
+ 392 - 392
doc/translations/nl.po


ファイルの差分が大きいため隠しています
+ 392 - 392
doc/translations/pl.po


ファイルの差分が大きいため隠しています
+ 392 - 392
doc/translations/pt.po


ファイルの差分が大きいため隠しています
+ 136 - 136
doc/translations/pt_BR.po


ファイルの差分が大きいため隠しています
+ 392 - 392
doc/translations/ro.po


ファイルの差分が大きいため隠しています
+ 136 - 136
doc/translations/ru.po


ファイルの差分が大きいため隠しています
+ 392 - 392
doc/translations/sk.po


ファイルの差分が大きいため隠しています
+ 392 - 392
doc/translations/sr_Cyrl.po


ファイルの差分が大きいため隠しています
+ 392 - 392
doc/translations/sv.po


ファイルの差分が大きいため隠しています
+ 392 - 392
doc/translations/th.po


ファイルの差分が大きいため隠しています
+ 392 - 392
doc/translations/tl.po


ファイルの差分が大きいため隠しています
+ 392 - 392
doc/translations/tr.po


ファイルの差分が大きいため隠しています
+ 392 - 392
doc/translations/uk.po


ファイルの差分が大きいため隠しています
+ 136 - 136
doc/translations/vi.po


ファイルの差分が大きいため隠しています
+ 392 - 392
doc/translations/zh_CN.po


ファイルの差分が大きいため隠しています
+ 392 - 392
doc/translations/zh_TW.po


この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません