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
The Public Knowledge Project Support Forum is moving to

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.
Posts: 9
Joined: Thu Oct 20, 2005 9:01 am

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: 10015
Joined: Wed Aug 10, 2005 12:56 pm

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: 6
Joined: Mon Aug 15, 2005 1:57 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: 10015
Joined: Wed Aug 10, 2005 12:56 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

Return to “OJS Technical Support”

Who is online

Users browsing this forum: No registered users and 19 guests