【发布时间】:2021-04-16 22:09:27
【问题描述】:
这是我的代码的一个小sn-p:
#SUBTRACTION
elif _("sub") in calc: #FOR TRANSLATORS: This is a translated if statement. Dont add accents. Use a key part of the word e.g. sub instead of subtract instead of the full word if possible.
misc.showUserWhatIThink(_("subtract a number from a number"))
TheBasics.subtraction()
Poedit (gettext) 会将注释 FOR TRANSLATORS: This is a translated if statement. [...] 分配给 subtract a number from a number 而不是 sub。我希望“sub”的注释出现在“翻译注释”部分。
有什么办法可以规避吗?我已经一遍又一遍地添加了相同的评论;我不想重做所有这些。
【问题讨论】:
标签: python python-3.x internationalization gettext poedit