OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Problem installing french locale / EmailTemplateDAO

Open Harvester Systems support questions and answers, bug reports, and development issues.

Moderators: jmacgreg, michael, John

Forum rules
Developer Resources:

Git: You can access our public Git Repository here. Comprehensive Git usage instructions are available on the wiki.

Bugzilla: You can access our Bugzilla report tracker here.

Search: You can use our Google Custom Search to search across our main website, the support forum, and Bugzilla.

Questions and discussion are welcome.

Problem installing french locale / EmailTemplateDAO

Postby Nicolas » Tue Nov 16, 2010 8:10 am

I Wrapped a pkp-ohs in joomla here : http://www.ifre.fr/index.php/ressources/oai-ifre

I tried to install french locale following the steps.
Everything seems to be OK, but when I click on "install", I get this message.
Fatal error: Call to undefined method EmailTemplateDAO::installEmailTemplateData() in /var/www/harvester/lib/pkp/classes/i18n/PKPLocale.inc.php on line 296
I couldn't find a solution on the support forum.
Thanks in advance for any help !
Nicolas
Nicolas
 
Posts: 6
Joined: Tue Nov 16, 2010 7:16 am

Re: Problem installing french locale / EmailTemplateDAO

Postby jmacgreg » Wed Nov 17, 2010 12:30 pm

Hi Nicolas,

Where did you get the French locale files? Did you create them yourself? IIRC, OHS doesn't come with any locale other than English ... so there may be a problem with the French translation itself. If you have translated the OHS into French we would greatly appreciate it if you would share the files; I can help troubleshoot from there.

Cheers,
James
jmacgreg
 
Posts: 4186
Joined: Tue Feb 14, 2006 10:50 am

Re: Problem installing french locale / EmailTemplateDAO

Postby Nicolas » Thu Nov 18, 2010 8:19 am

There is already a \lib\pkp\locale\fr_CA\common file, which I discovered after I translated most of the en_US one.
So I tried with both of them and there is still the same problem.
I would like to contribute with a french translation, but I now need it to work (then I could try to finish the translation).
And I don't understand the problem with the EmailTemplateDAO (I am not a professionnal in encoding).
You shall find my files uploaded. The email one is not translated.
Thanks in advance if you can help me !
Nicolas
Attachments
harvester locale fr.zip
(16.16 KiB) Downloaded 147 times
Nicolas
 
Posts: 6
Joined: Tue Nov 16, 2010 7:16 am

Re: Problem installing french locale / EmailTemplateDAO

Postby jmacgreg » Fri Nov 19, 2010 11:52 am

Hi Nicolas,

Thanks for the files! I have replicated your problem, and have filed a bug report here:http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=6225. Please feel free to CC yourself to that report for future updates. Hopefully we'll have a fix soon -- it would be great to have a French translation of the Harvester available!

Regarding the locale file(s) in lib/pkp: since there are a lot of locale elements common to all of our applications, we have consolidated them in what we call our Web Application Library, in lib/pkp, to cut down on duplication and maintenance across all apps. I'm not sure how the Harvester is currently using these locale keys; but eventually, it should be drawing keys from both locations.

Cheers,
James
jmacgreg
 
Posts: 4186
Joined: Tue Feb 14, 2006 10:50 am

Re: Problem installing french locale / EmailTemplateDAO

Postby jmacgreg » Fri Nov 19, 2010 4:34 pm

Hi Nicolas,

Alec, our lead developer, has posted a fix here: http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=6225. During my testing I already converted your email_templates_data.xml file to an emailTemplates.xml file (which is needed as per comment 1 in the bug report), so I have attached it here. Could you apply the patch, and add the attached xml file to locale/fr_FR/, and let us know whether installing the locale now works?

Cheers,
James
Attachments
emailTemplates.xml
(3.02 KiB) Downloaded 162 times
jmacgreg
 
Posts: 4186
Joined: Tue Feb 14, 2006 10:50 am

Re: Problem installing french locale / EmailTemplateDAO

Postby Nicolas » Tue Nov 23, 2010 3:27 am

Thanks for your commitment,
I am very sorry, but could you explain how to install the patch, step by step ?
Cheers
Nicolas
Nicolas
 
Posts: 6
Joined: Tue Nov 16, 2010 7:16 am

Re: Problem installing french locale / EmailTemplateDAO

Postby jmacgreg » Wed Nov 24, 2010 5:16 pm

Hi Nicolas,

There is an extensive set of instructions on applying patches here, and a more general description of what patches are and how they work here. If you have any further questions though, just let me know.

Cheers,
James
jmacgreg
 
Posts: 4186
Joined: Tue Feb 14, 2006 10:50 am

Re: Problem installing french locale / EmailTemplateDAO

Postby Nicolas » Thu Dec 09, 2010 8:30 am

Hello
Sorry for taking a long time to answer.
I could put the fix and the patch at the root, but could not make it work.
It told me "patch is not recognised as an internal or external command, an executable program..."
(sorry for my bad translation)
Does the program "patch" need to be installed ? is it working on wamp ?
There is no other way to apply this fix ?
As you see, I am not a star in cmd.exe !
Cheers
Nicolas
Nicolas
 
Posts: 6
Joined: Tue Nov 16, 2010 7:16 am

Re: Problem installing french locale / EmailTemplateDAO

Postby jmacgreg » Fri Dec 10, 2010 11:21 am

Hi Nicolas,

The first link I linked to also links to a page where you can get an application that will run the patch. Alternatively, you can also apply the patch manually: see viewtopic.php?p=7904#p7904.

Cheers,
James
jmacgreg
 
Posts: 4186
Joined: Tue Feb 14, 2006 10:50 am

Re: Problem installing french locale / EmailTemplateDAO

Postby Nicolas » Tue Dec 14, 2010 8:15 am

Do I need to install this patch program or should it run as soon as copied on the server ?
Thanks
Nicolas
 
Posts: 6
Joined: Tue Nov 16, 2010 7:16 am

Re: Problem installing french locale / EmailTemplateDAO

Postby Nicolas » Thu Dec 16, 2010 7:36 am

So I finally applied the patch manually - it took some time - but it is done.
Everything seems to work fine, except a number of
##plugins.schemas.dc.fields.title.name##
See for example : http://www.ifre.fr/harvester/index.php/record/view/11
Thanks a lot
There is still some work to finish translate it. As soon as I have a full french locale, I will come back to you.
Nicolas
Nicolas
 
Posts: 6
Joined: Tue Nov 16, 2010 7:16 am

Re: Problem installing french locale / EmailTemplateDAO

Postby asmecher » Wed Aug 15, 2012 9:14 am

Hi Nicolas,

Pieces of text like ##something.here## indicate that those locale keys are not yet translated in the language you're viewing (or that there's a typo in the file preventing it from being parsed). Once you complete the translation, they should appear translated in French. (In this case, the missing locale file is plugins/schemas/dc/locale/fr_CA/locale.xml.)

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


Return to Open Harvester Systems Support and Development

Who is online

Users browsing this forum: No registered users and 1 guest