vvucic
March 9, 2016, 6:16pm
1
I translate OJS into Serbian using generic translate plugin in my OJS installation. When I do check I see the Missing locale files with unspecified location and name . Please see screenshot in attach.
When I click on create it does not happening. Iam just prompted with a list of xml files and that is it. I still see information on those two missing locale files.
Please advise.
regards
See this bug report from a parallel question :
opened 09:23PM - 22 Feb 16 UTC
closed 11:56PM - 04 Nov 20 UTC
The new Counter plugin dynamically loads locale files to support drop-in additio… n of new COUNTER reports.
https://github.com/pkp/ojs/blob/ojs-stable-2_4_8/plugins/reports/counter/CounterReportPlugin.inc.php#L40-L51
The Translator plugin assumes that a call to a plugin's `getLocaleFilename()` will return an identically ordered array of locale files, regardless of which locale is selected.
As a result, if a plugin returns a variant set of locale files (ala Counter) the Translator plugin returns an unhelpful error "The locale file '' is missing or unreadable."
Perhaps all plugins' `getLocaleFilename()` should return an identically ordered array of locale files, based on the reference locale, regardless of whether the locale files exist in the selected locale. More likely, the Translator plugin should allow for variant locale files lists.
There is a patch here:
committed 09:32PM - 22 Feb 16 UTC
ramon
August 12, 2016, 11:08pm
4
Hello @ctgraham ,
Do we have to worry about the missing “plugins/reports/counter/locale/pt_BR/ar1.xml” and “plugins/reports/counter/locale/pt_BR/jr1.xml”?
Creating them doesn’t work, but since you say they are dynamic…
I remember fixing this for 2.4.8.0, but the code was basically the same in 2.4.8.1.
Creating these xml files should resolve the message.
Each file is really just the translation of the name of the COUNTER report at this point:
Journal Report 1
Article Report 1
Feel free to submit the translation back to PKP for inclusion in the product.
ramon
August 15, 2016, 12:25pm
6
Hello @ctgraham ,
OJS cannot create them through the interface… they have to be created manually…
It looks like we never finished pulling this change into the core for 2.4.8:
committed 09:32PM - 22 Feb 16 UTC
It is currently scheduled and 2.4.9. You can reapply the patch.