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?
php gettext
OA Olsen
source share