You are viewing the PKP Support Forum | PKP Home Wiki

Tracking an XML message key to find its related web page

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.

Tracking an XML message key to find its related web page

Postby msaghaei » Mon Aug 14, 2006 12:36 am

Hi Alec

For the pupose of translation we need to know the context in which some words or phrases are used. I wonder is there any quick guide to find the page in which a certain word or phase of an XML key has been used. For example to be able to correctly translate the word "Enabled" in the
Code: Select all
<message key="common.enabled">Enabled</message>
we need to know the used context to find out whether it is a none or a verb.

M. Saghaei
Posts: 119
Joined: Sun Jan 08, 2006 1:01 pm

Postby asmecher » Mon Aug 14, 2006 8:14 am

Hi msaghaei,

Here's what I use -- it should be available in any *NIX platform. To search all templates for the localization key:
Code: Select all
fgrep -l "common.enabled" `find . -name \*.tpl`
Likewise, to search all PHP scripts (as locale keys are sometimes referenced from PHP):
Code: Select all
fgrep -l "common.enabled" `find . -name \*.php`
Alec Smecher
Open Journal Systems Team
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Return to OJS Technical Support

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest