Coder Social home page Coder Social logo

equella_language's Introduction

EQUELLA Language Pack

Our en_US language pack for openEQUELLA. Many Australian spellings changed to US English ones, various unclear verbiage changed, branding changed to "VAULT", minor corrections, and a couple JavaScript hacks.

Building

Run npm run zip within this project to create the language pack zip file in a "dist" directory. npm run open will open the language pack upload URL for VAULT.

To confirm that changes applied OK, it can be helpful to add the hash of the last commit (e.g. git rev-parse --short HEAD) to com.equella.core.langpack.subheading in resource-centre.properties. You'll see the heading update and know that the latest language pack was applied. I've provided a pre-commit git hook that performs this edit; you can activate it by putting the script in git's "hooks" directory i.e. cp pre-commit .git/hooks. Note that it always adds resource-centre.properties to the files being committed so don't use it if you intend to keep a dirty copy of that file in between commits.

Updating

openEQUELLA may introduce language pack changes with new versions. I've written a basic script property-changes.js to try to identify what properties have been added/removed/edited, since there is no official source for this information. npm install will download its dependencies.

In order for property-changes to work, you need to download a copy of the reference language pack for the version you're targeting from the openEQUELLA releases page (placed in the "reference" directory in the following example). Then you can run node property-change.js reference/admin-console.properties pack/admin-console.properties to see a list of changes you may need to address for a particular file. If there are numerous differences between the two property files, then you will need to alternate running the script and making changes until there is no output, since the script only prints the first hundred entries in the removed/added properties arrays. The script could be easily modified to check for language pack values that have changed as well (see the commented out section at the bottom of the analyzeDifferences function).

JS Hacks

EQUELLA doesn't support a way to inject scripts onto any given page. We can add them to display templates for item summaries and to portlets on the dashboard, but not into places like the login page, settings menu, user profile, etc. Thus when we want to use a JavaScript hack to fix something, we have to insert it as an HTML <script> tag in a string definition somewhere. There are a couple hacks in this language pack:

  • improved-login.js in com.equella.core.logon.title
  • disable-cloud.js in com.equella.core.footer.thankyou

For new hacks going forward that don't have a particular suitable location, we'll add them to the "thankyou" string that appears near the bottom of the HTML body on every page.

Links

LICENSE

ECL Version 2.0

equella_language's People

Contributors

phette23 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

equella_language's Issues

incoherent "download" page

Text on the download page makes no sense except for metadata experts.

  • make first header just "Download"
  • make link text "Download this record's files."
  • hide the whole second section about METS records, with its misleading "includes files" which does not, in fact, include files—this will happen in the theme layer

notification email language

Where are the notification email language strings? I can't find them after searching. The text used by default is confusing and doesn't reflect the "VAULT" brand, instead saying "EQUELLA" in the subject line.

The "Share with others" section that starts around line no. 4701 is sort of related (emails sent when sharing items) but also doesn't offer a ton of options. At the very least, probably com.tle.web.viewitem.sharing.summary.content.sharewithothers.share.email.subject could be made more informative.

no export search result string

If you open the admin console, edit a collection, go to Security tab, the collection export privilege (which sorts to the top) doesn't have a matching language string security.privilege.COLLECTION.EXPORT_SEARCH_RESULT.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.