Coder Social home page Coder Social logo

pkp / customlocale Goto Github PK

View Code? Open in Web Editor NEW

This project forked from langsci/customlocale

0.0 0.0 18.0 257 KB

Fine-tune the language of OPS, OJS, or OMP without modifying files or changing it for everyone.

License: GNU General Public License v3.0

PHP 66.00% CSS 1.59% Smarty 17.19% JavaScript 15.22%

customlocale's People

Contributors

ajnyga avatar alexandrafo avatar amirzoian avatar asmecher avatar bsvvi avatar cfanselow avatar ckamburov avatar defstat avatar diegojmacedo avatar ewhanson avatar germanhb avatar jirrka avatar jonasraoni avatar jordilacruz avatar josekarvalho avatar kant avatar mannemark avatar mhvezina avatar mirkospiroski avatar mooselybased avatar natewr avatar osmndrmz avatar ppv1979 avatar primoz-svetek avatar shabilullah avatar teismann avatar tigran54 avatar touhidurabir avatar vormia avatar

Watchers

 avatar  avatar  avatar

customlocale's Issues

Plugin doesn't allow editing official translation's empty strings

Hello!

As the title says, the plugin doesn't allow editing empty translation strings, like this one in pkp-lib/locale/es/emails.po:

msgid "emails.footer.unsubscribe"
msgstr ""

I know, the best approach would be contributing untranslated strings, but in the meantime we need a fix for these tags being sent to the users now. As a quick fix I had to add them to the emails.po file but they'll be removed with the next update.

Also, I've checked the pkp-lib's Weblate project and currently there isn't a section for this emails.po file, the Spanish translation is shown as complete.

So the empty strings aren't shown in the UI for translation. May this option be added for future fixes?

Regards!

Prepare migration for the 3.4 release

It's needed to update the migration file due to the merge of localization folders.

A migration for the 3.4 already exists (it's working with a "lock file" as we don't have access to the previous/current version at the moment the code is called):
https://github.com/pkp/customLocale/blob/579c394dedbcfb084d0466bdf32372bcc8794a0e/classes/migration/upgrade/v1_2_0/I15_LocaleMigration.php

  • Also, at this moment the build is broken with the message: CypressError: cy.click()can only be called on a single element. Your subject contained 2 elements. Pass{ multiple: true } if you want to serially click each element. Fixed by #24

OJS crashes after activating the plugin

Setup:

  • customLocale v1_1_0-1
  • PHP 7.4
  • OJS 3.3.0-6
  • Windows 10

Installed by extracting tar into <ojs>/plugins/generic/

[Tue May 18 16:17:05.276134 2021] [php7:error] [pid 6576:tid 1088] [client ::1:63979] PHP Fatal error:  Uncaught Error: Call to a member function getId() on null in D:\\ApacheHosted\\ojs\\plugins\\generic\\customLocale\\CustomLocalePlugin.inc.php:32\nStack trace:\n#0 D:\\ApacheHosted\\ojs\\lib\\pkp\\classes\\plugins\\PluginRegistry.inc.php(69): CustomLocalePlugin->register('generic', 'plugins/generic...', NULL)\n#1 D:\\ApacheHosted\\ojs\\lib\\pkp\\classes\\plugins\\PluginRegistry.inc.php(142): PluginRegistry::register('generic', Object(CustomLocalePlugin), 'plugins/generic...', NULL)\n#2 D:\\ApacheHosted\\ojs\\lib\\pkp\\classes\\core\\Dispatcher.inc.php(133): PluginRegistry::loadCategory('generic', true)\n#3 D:\\ApacheHosted\\ojs\\lib\\pkp\\classes\\core\\PKPApplication.inc.php(362): Dispatcher->dispatch(Object(Request))\n#4 D:\\ApacheHosted\\ojs\\index.php(68): PKPApplication->execute()\n#5 {main}\n  thrown in D:\\ApacheHosted\\ojs\\plugins\\generic\\customLocale\\CustomLocalePlugin.inc.php on line 32

$contextFileManager = new ContextFileManager($context->getId());

Improve ability to edit languages other than the primary locale

Currently the custom locale plugin only allows editing of the journal's primary locale. For users with other locales, it's necessary to work around this by temporarily setting the primary locale to the other locale.

Improve the plugin's ability to work with other languages without requiring the work-around.

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.