PHP gettext: not all lines are translated

I have two adjacent lines of code:

<td><?php echo __('Product', 'wpsc'); ?>:</td> <td><?php echo __('Quantity', 'wpsc'); ?>:</td> 

And these translations in the .po file

 msgid "Product" // Translates msgstr "Produkt" msgid "Quantity" // does not translate msgstr "Antall" 

One line is displayed on the web page and the other is not. And, yes, I tried to change the translation of the first and confirmed that the translation changes accordingly, so I know that the server is reading the correct .mo file. This is located on an updated Ubuntu server. Any idea on what might be the problem?

+7
php gettext
source share
1 answer

Like the Mark mentioned in his comment, check out the line #, fuzzy above the quantity definition. gettext will not translate fuzzy lines.

( I add this as an answer so that he can vote so that this question leaves the queue that has not been queued )

+3
source share

All Articles