OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



OJS2.2 fr_FR locale do not show the links to the galleys

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.

OJS2.2 fr_FR locale do not show the links to the galleys

Postby zharel » Sun Jan 13, 2008 2:49 am

Hi,

Yet another problem with the localization: Links from the TOC to the galleys disappear:

In English, Home > User > Editor > Submissions > #5 > Editing
Code: Select all
Galley Format     File     Order     Action     Views
1.    HTML   View Proof    5-65-9-PB.htm  2007-12-08    ↑ ↓    Edit | Delete    124
2.    PDF   View Proof    5-67-6-PB.pdf  2007-12-08    ↑ ↓    Edit | Delete    89

In French, Page d'accueil > Usager > Rédacteur > Soumissions > #5 > Révision
Code: Select all
Format de l'épreuve en placard     Fichier     Mettre en ordre     Action     Vues
1.    HTML (English)   Voir l'épreuve    5-65-9-PB.htm  2007-12-08    ↑ ↓    Modifier | Supprimer    124
2.    PDF (English)   Voir l'épreuve    5-67-6-PB.pdf  2007-12-08    ↑ ↓    Modifier | Supprimer    89


In English, Home > Current > Vol 0 (2007)
Code: Select all
Verniana - Jules Verne Studies      HTML  PDF
Zvi Har’El    i-ii

In French, Page d'accueil > Courant > Vol. 0 (2007)
Code: Select all
Verniana - Jules Verne Studies     
Zvi Har’El    i-ii


PS. The links to the Abstracts (résumé) do exist in the French versions. Only the links to the galleys, HTML and PDF, disappear.

Best,

Zvi.

--
Zvi Har’El
Founding Editor
Verniana—Jules Verne Studies/Étude Jules Verne
JV.Gilead.org.il/studies
ISSN 1565-8872
zharel
 
Posts: 29
Joined: Tue Oct 30, 2007 10:00 am
Location: Haifa, Israel

Re: OJS2.2 fr_FR locale do not show the links to the galleys

Postby zharel » Sun Jan 13, 2008 9:48 am

Hi,

The solution lies in the fact that "Page d'accueil > Usager > Rédacteur > Soumissions > #5 > Révision" listed the "Format de l'épreuve" as HTML (English) and PDF (English).

I solved the problem, by going to each submission in the archive and each of the galleys of these submissions, and in the French locale to change (using the Action "Modifier") the language of the galley to French.

I see some merit in the possibility to show in en_US only English articles and in fr_CA only French articles, but I think normal usage will be that the user would like to see the full TOC in any locale.

Best,

Zvi.

--
Zvi Har’El
Founding Editor
Verniana—Jules Verne Studies/Étude Jules Verne
JV.Gilead.org.il/studies
ISSN 1565-8872
zharel
 
Posts: 29
Joined: Tue Oct 30, 2007 10:00 am
Location: Haifa, Israel

Re: OJS2.2 fr_FR locale do not show the links to the galleys

Postby zharel » Sun Jan 13, 2008 10:02 am

No!!!!! :cry: This is not a solution: Once I finished the process, I now have no galley links in the en_US locale!!!! Help!!! :cry:
zharel
 
Posts: 29
Joined: Tue Oct 30, 2007 10:00 am
Location: Haifa, Israel

Re: OJS2.2 fr_FR locale do not show the links to the galleys

Postby zharel » Sun Jan 13, 2008 1:09 pm

I believe that the solution is to set each galley in with its actual language. But, then to replace the several calls to getLocalizedGalleys by a call to getGalleys, or, as I did, to have getLocalizedGalleys return all the galleys, using the patch

Code: Select all
--- /usr/local/src/build/ojs-2.2/classes/article/PublishedArticle.inc.php   2007-11-24 02:16:00.000000000 +0200
+++ /home/rl/www/JulesVerne/studies/classes/article/PublishedArticle.inc.php   2008-01-13 19:42:18.000000000 +0200
@@ -170,6 +170,9 @@
     * @return array ArticleGalley
     */
    function &getLocalizedGalleys() {
+      $galleys =& $this->getData('galleys');
+      return $galleys;
+      /*
       $primaryLocale = Locale::getPrimaryLocale();
       $locale = Locale::getLocale();
 
@@ -188,6 +191,7 @@
       }
 
       return $galleys;
+      */
    }
 
    /**


Now, after the user chooses his/her favorite language, all the galleys in different languages will be marked by the language in paranthesis. BTW, I also found it annoying to the names of the languages as "English" and "Français (Canada)" (we don't have any other French locale anyway), so I applied another patch:

Code: Select all
--- /usr/local/src/build/ojs-2.2/registry/locales.xml   2007-10-31 23:59:22.000000000 +0200
+++ /home/rl/www/JulesVerne/studies/registry/locales.xml   2008-01-13 21:43:49.000000000 +0200
@@ -17,14 +17,14 @@
 <!DOCTYPE locales SYSTEM "../dbscripts/xml/dtd/locales.dtd">
 
 <locales>
-   <locale key="de_DE" name="Deutsch (Deutschland)"/>
+   <locale key="de_DE" name="Deutsch"/>
    <locale key="en_US" name="English"/>
-   <locale key="es_ES" name="Español (España)"/>
-   <locale key="fr_CA" name="Français (Canada)"/>
+   <locale key="es_ES" name="Español"/>
+   <locale key="fr_CA" name="Français"/>
    <locale key="hr_HR" name="Hrvatski"/>
    <locale key="it_IT" name="Italiano"/>
    <locale key="ja_JP" name="日本語"/>
-   <locale key="pt_BR" name="Português (Brasil)"/>
+   <locale key="pt_BR" name="Português"/>
    <locale key="ru_RU" name="Russian"/>
    <locale key="tr_TR" name="Türkiye Türkçesi"/>
    <locale key="vi_VN" name="Tiếng Việt"/>


I hope these changes make sense. :D

Best,

Zvi.

--
Zvi Har’El
Founding Editor
Verniana—Jules Verne Studies/Étude Jules Verne
JV.Gilead.org.il/studies
ISSN 1565-8872
zharel
 
Posts: 29
Joined: Tue Oct 30, 2007 10:00 am
Location: Haifa, Israel


Return to OJS Technical Support

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 7 guests

cron