You are viewing the PKP Support Forum | PKP Home Wiki

Email templates

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
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

Email templates

Postby nfeasey » Mon Nov 14, 2005 9:08 am

I was wondering how the email templates are translated if you want to add another language to OJS?

Posts: 9
Joined: Thu Oct 20, 2005 9:01 am

Postby asmecher » Mon Nov 14, 2005 1:34 pm


English email templates are stored in dbscripts/xml/data/locale/en_US/email_templates_data.xml; when you create your translation, place the translated email_templates_data.xml file in a directory called dbscripts/xml/data/locale/(locale name) and the email template data will be automatically installed with the locale. (See the Site Administrator's "Languages" page.)

Alec Smecher
Open Journal Systems Team
Posts: 9907
Joined: Wed Aug 10, 2005 12:56 pm

still not working

Postby bunswo » Mon Nov 14, 2005 4:19 pm

Hi -- I tried the steps you recommended but it still doesn't seem to work.

I put the file in a folder called: dbscripts\xml\data\locale\fr\

I un-installed the french language and reinstalled it on the administrator's language page hoping that the email templates would load. The text boxes in the email templates admin pages now appear but there is still no text in them. In fact I checked the database to see if changes that I make to the email templates get saved in the database and they do -- they just don't show up in the text boxes in the email templates admin pages.
Posts: 6
Joined: Mon Aug 15, 2005 1:57 pm

Postby asmecher » Mon Nov 14, 2005 5:49 pm


From docs/README under the "Localization" section:
To add support for other languages, the following sets of XML files must be
localized and placed in an appropriately named directory (using ISO locale
codes, e.g. "fr_FR", is recommended):

* locale/en_US
* dbscripts/xml/data/locale/en_US
* help/en_US
* rt/en_US
* plugins/[plugin category]/[plugin name]/locale, where applicable

The only critical files that need translation for the system to function
properly are found in locale/en_US and dbscripts/xml/data/locale/en_US.

New locales must also be added to the file registry/locales.xml, after which
they can be installed in the system through the site administration web

Translations can be contributed back to PKP for distribution with future
releases of OJS.

Server requirements for full Unicode (UTF-8) support:

* MySQL >= 4.1.1 or PostgreSQL >= 7.1
* PHP >= 4.3.0 compiled with support for the mbstring library

Make sure that the name of the directory (you used "fr") matches the name of the locale as specified in registry/locales.xml. This should be an ISO locale code, e.g. "fr_FR".

Alec Smecher
Open Journal Systems
Posts: 9907
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 5 guests