Code Monkey home page Code Monkey logo

pybossa-default-theme's People

Contributors

alejandrodob avatar alexandermendes avatar alvaroner avatar dchhabda avatar elyrichardson avatar fiorda avatar jdesilvio avatar krzysztofmadejski avatar portableant avatar teleyinex avatar therealmarv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

pybossa-default-theme's Issues

Switching to Brazilian Portuguese Language does NOT work

Sorry to bother again.
Just noticed that if there's capital letters in the language, such as pt_BR, this language will not be translated.

Root cause:

def setup_babel(app):
    """Return babel handler."""
    babel.init_app(app)

    @babel.localeselector
    def _get_locale():
        locales = [l[0] for l in app.config.get('LOCALES')]
        if current_user.is_authenticated():
            lang = current_user.locale
        else:
            lang = request.cookies.get('language')
        if (lang is None or lang == '' or
            lang.lower() not in locales):
            lang = request.accept_languages.best_match(locales)
        if (lang is None or lang == '' or
                lang.lower() not in locales):
            lang = app.config.get('DEFAULT_LOCALE') or 'en'
        if request.headers.get('Content-Type') == 'application/json':
            lang = 'en'
        return lang.lower()
    return babel

When comparing the string, it's using lang.lower() not in locales.
When I'm debugging it, the lang is pt_BR, changed to pt_br, will not match any of the locales in locale array

Answer value undefined when clicking in the icons

Currently, when one clicks in an answer button in some of the templates, if this is done precisely in the icon within the button, then the answer is not correctly submited, and an undefined value is used instead.

Improve messages about publishing/published projects

If a project has been published and has results, it doesn't seem to be possible to delete task runs, tasks or the project itself, neither through the web interface nor through the REST API. But the web interface suggests otherwise, since it has a button "Delete all Tasks and Task Runs" along with a message "If you delete all the tasks and task runs they will be gone forever!" (although particularly attentive users may notice that the feedback post-deletion says "TASKS AND TASKRUNS WITH NO ASSOCIATED RESULTS HAVE BEEN DELETED"). With the help of Daniel's pointers, I was able to solve this directly through the database (updating the published flag and deleting the project's results). But it would be good if this was facilitated (maybe with an optional "force=1" parameter in the REST API) or documented somewhere and/or a better warning was given of what you can't do after publishing a project.

Installation instructions

Hi Daniel,
I wonder if this could be made a little clearer:
http://docs.pybossa.com/en/latest/customizing.html?highlight=theme#creating-your-own-theme
"PyBossa supports themes. By default, it provides its own theme that you can use or if you prefer, copy it and create your own." Do you create a theme by the name that you want it to be called and then deploy to the themes folder? Or does it need to maintain the current pybossa-default-theme naming convention? At the moment I am a little unclear.
Dan

po files broken

I am uploading to transifex for convenience (the project is here: https://www.transifex.com/codeforeurope/pybossa/) and discover that files are broken. I have managed to fix a lot of them; but french is difficult with a lot of duplicate strings.

I want to do a pull request with all languages except french. Then I will use handwork to get the french translation up to speed.

GDPR: Age checks

The theme should ask for user's age when registering. If the user is below 16 years old, the user will not be able to create an account and will be invited to participate anonymously.

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.