gpt4 book ai didi

php - PoEdit 不识别 _n() 复数

转载 作者:行者123 更新时间:2023-12-05 00:42:14 26 4
gpt4 key购买 nike

我在 POEdit 的源关键字中设置了这个:

_
__
_e
_ex
_n
esc_attr_e
_x
_nc

它有效,但是当我使用 _n() 时我只得到第一个字符串功能(二十一主题):

<?php printf(_n('One Comment', '%s Comments', get_comments_number(), 'twentyeleven'), number_format_i18n(get_comments_number())); ?>

任何如何让它识别的想法_n() ?这正是我遇到的问题,但没有解决方案:http://www.poedit.net/trac/ticket/307

最佳答案

你应该在poedit中设置一个关键字,这样你就有了

关键字

n
_n:1,2

例如,这里是我的源关键字

plural form poedit

关于php - PoEdit 不识别 _n() 复数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12184978/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com