Comments (6)
It's in my pull request, which will probably be merged within the next 24h if the author doesn't have any more comments, this will enable you to add your functions that your project uses instead of the static '__'
from laravel-langman-gui.
trans()
and trans_choice()
can be used for array translations as well, that's why we don't scan for them by default, however you can add a localization_methods
config key which is available since 0.1.2
.
'localization_methods' => ['__', 'trans', 'trans_choice'],
from laravel-langman-gui.
After running composer update
and fetching the new version, the translation tool seems utterly confused so I must be missing something.
I emptied my en.json and fr.json files and made a scan. Instead of the 100+ items it found previously I now have only three results : __
, trans
and trans_choice
.
My config file looks like this :
<?php
return [
'base_language' => 'fr',
'localization_methods' => ['__', 'trans', 'trans_choice'],
'route_group_config' => [
'middleware' => ['web'],
'namespace' => 'Themsaid\LangmanGUI'
]
];
from laravel-langman-gui.
@tfortier I just released a new fix on v0.1.3, give it a try.
from laravel-langman-gui.
Works like a charm. Thank you very much π
from laravel-langman-gui.
Welcome :)
from laravel-langman-gui.
Related Issues (20)
- Change default font HOT 1
- Don't use default scrollbar, use a modern one HOT 3
- Bugged creating language and scaning for new lang file HOT 1
- Show unused strings HOT 3
- Scan doesn't work on fresh project and install HOT 11
- Edit keys - feature HOT 1
- installed the package interface css and js not loading properly HOT 1
- Cannot add or scan HOT 1
- Strange view HOT 2
- Initial scan fails with "array_key_exists() expects parameter 2 to be array, null given"
- JS popup keeps showing up when I click "Scan"
- Filter the space around arguement in __() function
- It looks like vendor:publish don't do its job HOT 1
- Middleware issue HOT 1
- Subclassing from Manager, please make it protected. HOT 1
- scans wrong keys
- All Routes 404 Not Found
- Scan doesn't detect @lang() strings?
- πCalling for help HOT 1
- laravel 7 suported? HOT 1
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 laravel-langman-gui.