2012-08-29 50 views
0

我有了這個集poEdit的源關鍵字:PoEdit軟件無法識別_n()複數

_ 
__ 
_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

回答

3

您應該建立一個關鍵字poEdit的,讓你有

關鍵詞

n 
_n:1,2 

例如,這裏是我的源關鍵字

plural form poedit