Comments (5)
Here, we could use
$bundle = $this->getApplication()->getKernel()->getBundle($input->getArgument('bundle'));
$path = $bundle->getPath();
$dir = dir($path);
to get the directory of the bundle basing directly on the bundle name instead of the full namespace.
@mvar @saimaz , how do you think?
from translationsbundle.
And another question: here we should have an option to indicate it is a bundle name or namespace? (in case we support importing all translation files for both bundle name and namespace)
from translationsbundle.
IMO we dont need to support full namespeces. It's useless. According symfony wide practices everybody uses a short notation which is BundleName
. e.g. for Translations it would be ONGRTranslationsBundle
. And that's it.
from translationsbundle.
Yup, thanks @saimaz
from translationsbundle.
Closes #64
from translationsbundle.
Related Issues (20)
- Ensure that only valid pluralisation translations are stored
- Add timestamps to translations
- Documentation is incorrect at configuration step HOT 2
- Mobile layout is missing some toolbar components
- Upgrade codesniffer standard to ~2.1
- Implement filter to see only missing translations
- Crash due to wrong dependencies
- Add possibility to select all locales for missing translation.
- Missing button to remove translation from all locales
- Too small input field for translation HOT 1
- Add support for the elasticsearch 1.0-alpha release
- Get list of locales from config but not from aggregations
- Incomplete ESB 1.0 integration
- Document's Object should not extend AbstractDocument
- Export doesn't work HOT 4
- Incompatible with the latest filter manager
- TranslationManager doesn't add objects to translations
- Symfony file structure changed in Symfony3
- width limitation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from translationsbundle.