소스 검색

show context of translations errors

B. Petersen 4 년 전
부모
커밋
5a385444d4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      scripts/convertTranslations.js

+ 1 - 1
scripts/convertTranslations.js

@@ -32,7 +32,7 @@ function parseAndroid(data) {
 
       let countOfPlaceholders = (value.match(/\%1\$\@/g) || []).length
       if (countOfPlaceholders > 1) {
-        console.error("\n\n\n ERROR: Placeholder mismatch. A source file contained '%s' and '%1$s' in the same resource which we are not willing to fix automatically. Please fix the input source on tranisfex first! \n\n\n")
+        console.error("\n\n\n ERROR: Placeholder mismatch. A source file contained '%s' and '%1$s' in the same resource which we are not willing to fix automatically. Please fix the input source on tranisfex first! context:\n" + line +  "\n\n\n")
         continue;
       }