Coder Social home page Coder Social logo

translationsbundle's People

Contributors

chyzas avatar einorler avatar grandltu avatar kazysgurskas avatar linasmo avatar martinohmann avatar mvar avatar ndinh215 avatar saimaz avatar tautrimas avatar tomaspocevicius avatar trandangtri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

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

translationsbundle's Issues

Not intuitive configuration/command parameters behaviour during import

Current situation:
Running app/console ongr:translations:import Foo\\BarBundle\\FooBarBundle imports only keys (no locale translations) due to nulled locales not matching anything. See: https://www.dropbox.com/s/wussq60g5v2qgix/Screenshot%202015-03-02%2014.06.35.png?dl=0

Running app/console ongr:translations:import imports everything.

Proposal:
When specifying one filter option (bundle/domain/locale), others should remain match all, thus running app/console ongr:translations:import Foo\\BarBundle\\FooBarBundle actually imports something useful.

TranslationManager doesn't add objects to translations

Currently TranslationManager is responsible for adding new objects like messages and tags to translation documents. The process is being handled by addObject() method, which at the moment does not add any objects to the given document:

private function addObject($document, $options)

The result of this is that the bundle is not capable of adding tags or new messages to translations

Export doesn't work

vendor/ongr/translations-bundle/Storage/ElasticsearchStorage.php:53
vendor/ongr/translations-bundle/Storage/ElasticsearchStorage.php:57
new TermsFilter('locale'... key is invalid. Should be 'messages.locale', same with domains.

Get list of locales from config but not from aggregations

Scenario: Added "en", "de" and "lt" to config, imported translations from bundle and I see only "en" and "lt". Why? Because there were no translations in "de". Current implementation lists translations based on data in ES. What if I want to translate to new language? It should be enough to add new locale in config.

Crash due to wrong dependencies

Uncaught PHP Exception Symfony\Component\Debug\Exception\UndefinedMethodException: "Attempted to call an undefined method named "isRelevant" of class "ONGR\ElasticsearchBundle\DSL\Filter\TermFilter"." at /{edited}/vendor/ongr/filter-manager-bundle/Filters/Widget/Choice/SingleTermChoice.php line 80

When trying to select any domain in UI.

With filter-manager 0.4.2.
Updating filter-manager to 0.5.4 seems to solve this.

Support short bundle name

Currently import command requires "full bundle namespace". It should support short form (e.g., ONGRTranslationsBundle).

Also whole import service should be reviewed. Probably it's overcomplicated. (Tip: see Kernel::locateResource().)

EDIT: it looks like configuration also ask full namespaces.

Incomplete ESB 1.0 integration

Few places stopped working after ESB 1.0 integration. Because of lack of tests these were not spotted until now.

Best way to catch all of them would be to setup demo project and test all actions available in UI. Commands looks to be working well.

Few spotted places:

  • History document has public properties, but various services calls getters and setters. Public properties should be replaced by getters and setters.
  • TranslationManager tries to get document from document iterator by key. This wont be supported by ESB 1.0

Relates #60

width limitation

Particularly for mobile dev, we'd need a way to limit the translations to a certain width, where a maximum width was defined. Ideally this width is defined in terms of #pixels

Export translation via GUI

3 steps action:

  1. Show pending changes (see #27)
  2. Confirm export
  3. Execute custom shell script (which HAS ongr:translations:export and other required commands)

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.