OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Translation broken on one page after upgrade

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

Translation broken on one page after upgrade

Postby doana » Thu Aug 09, 2012 10:54 am

Hi all,

I'm new to OJS. Please forgive me if this is a silly question.

So I'm running through the upgrade procedures on a development copy of our OJS install. I have successfully upgraded both the code and the DB from 2.2.4 to 2.3.7. After the upgrade however, there is one issue: The translation seems partially broken on the issue/archive page.

From what I can tell, it seems like none of the translation keys defined in locale/en_US/locale.xml are being used. Other translation strings defined in lib/pkp/locale/en_US/common.xml work fine. In fact, I can copy and paste the releveant sections of locale/en_US/locale.xml into lib/pkp/locale/en_US/common.xml and then everything works as expected.

It's strange, because the same translation strings are being used on other pages in the site without issue. Some of the strings are in common elements (header and navigation) that are being included in other templates just fine.

So, does anyone have any ideas about what would cause this behaviour?

Thanks for your help!
-Adam
doana
 
Posts: 10
Joined: Thu Aug 09, 2012 10:32 am

Re: Translation broken on one page after upgrade

Postby asmecher » Thu Aug 09, 2012 10:56 am

Hi Adam,

The most likely thing is that your locale/en_US/locale.xml contains a typo of some kind that's preventing it from being loaded. Try validating that XML file, using xmllint or an online XML validator.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Re: Translation broken on one page after upgrade

Postby doana » Thu Aug 09, 2012 12:20 pm

asmecher wrote:Hi Adam,

The most likely thing is that your locale/en_US/locale.xml contains a typo of some kind that's preventing it from being loaded. Try validating that XML file, using xmllint or an online XML validator.

Regards,
Alec Smecher
Public Knowledge Project Team


Thanks Alec. Unfortunately, it comes back clean. I ran:
Code: Select all
xmllint --valid --noout locale.xml

Any other ideas?
doana
 
Posts: 10
Joined: Thu Aug 09, 2012 10:32 am

Re: Translation broken on one page after upgrade

Postby asmecher » Thu Aug 09, 2012 12:27 pm

Hi Adam,

Are there any modifications to the system, in particular to pages/issue/IssueHandler.inc.php? If locale keys from locale/en_US/locale.xml are not loading but only for that one page, IssueHandler is the most likely place to look. If you upgraded by patch, were any .rej files left over? To be sure, you could run a comparison against a stock version.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Re: Translation broken on one page after upgrade

Postby doana » Fri Aug 17, 2012 10:34 am

asmecher wrote:Hi Adam,

Are there any modifications to the system, in particular to pages/issue/IssueHandler.inc.php? If locale keys from locale/en_US/locale.xml are not loading but only for that one page, IssueHandler is the most likely place to look. If you upgraded by patch, were any .rej files left over? To be sure, you could run a comparison against a stock version.

Regards,
Alec Smecher
Public Knowledge Project Team


Hey Alec,

Sorry it took me a while to get back to this. This was exactly the issue. Manually applying the failed hunks of the patch fixed the issue.

Thanks for all of your help,
-Adam
doana
 
Posts: 10
Joined: Thu Aug 09, 2012 10:32 am


Return to OJS Technical Support

Who is online

Users browsing this forum: No registered users and 2 guests