[英]Why doesn't weblate recognize my pot file?
我正在使用托管的 weblate。
我在組件配置的“文件”部分。 下面是我的設置。
翻譯文件:
單語翻譯:
添加新語言:
我無法驗證這些設置,在“新翻譯模板”和“添加新翻譯”字段下方出現錯誤:錯誤是“無法識別新翻譯的基本文件”。
我 100% 確定分支 weblate 上存在的 pot 文件被配置為使用並且也在 master 上,並且路徑是正確的。
這是pot文件的前幾行:
"Content-Type: text/plain; charset=UTF-8\n"
#: src/screens/CardList/CardList.texts.js:9
msgctxt "CardList"
msgid "hello"
msgstr ""
#: src/screens/CardList/CardList.texts.js:11
msgctxt "CardList"
msgid "cards"
msgstr ""
我不明白發生了什么,我做錯了什么嗎?
該文件的 header 似乎已被剝離。 至少您應該在前面添加以下內容以使其在語法上有效:
msgid ""
msgstr ""
請參閱https://github.com/WeblateOrg/weblate/blob/master/weblate/locale/django.pot了解現實生活中的 POT 文件
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.