OJS and CustomLocale Plug-in

Hi everybody,
I have a question: I already checked old post but I could not find the answer.
I’d like to change the text “Current Issue” to “Current Volume”.
I have OJS 3.2.1.0 and I just installed Custom Locale Plugin: customLocale-v1_1_0-1.tar.gz

Can you help me?

Thanks a lot,
Pau

Hi @Pau,

I see we don’t have much guidance on how to use that plugin, so I’ll describe it here:

  1. Install the Custom Locale Plugin (currently available in the Plugin Gallery).
  2. On the Installed Plugins list, click the checkbox beside Custom Locale Plugin to enable the plugin.
  3. In Settings > Website, you should now see a tab called Locales:
    image

Good, you now have your plugin installed and ready to use. Now to change some specific text. There are a few steps involved:

  1. Find the text you want to change in the locale files. There are a few ways to do this:
    a. Use the Github search tools, specifying the following query:
    org:pkp "Current Issue" path:locale/en_US language:"Gettext Catalog"
    
    …where Current Issue is the text you want to search for, and locale/en_US says you want to search for locale files in the U.S. English language. (This helps narrow down the results to something helpful.)
    This will turn up the following result:
    image
    …so the text you’re looking for appears in locale/en_US/editor.po.
    b. Use command-line tools on your server (or development machine):
    $ find . -name \*.po -exec fgrep -l "\"Current Issue\"" "{}" ";"
    ./locale/en_US/editor.po
    ./locale/en_US/locale.po
    
    …so the text could appear in those two files.
  2. Edit the text using the Custom Locale Plugin.
    Once you’ve identified the file that you need to edit, choose it in the Custom Locale Plugin. You can now use the Search tool to find and edit the piece of text you’re targeting:
    image

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like

Hi Alec,
what I have to say: so clear now!!

Thanks a lot for your work, really!

Kind regards,
Pau

1 Like