GitXplorerGitXplorer
d

translation-bundle

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
b623dc8431f019e1ae56fa692ecae10df69b9887

Autowire fix

ddisjfa committed a year ago
Verified
9f61c5ec56b473692bd66cdd2b490129da6a4825

Update composer.json

ddisjfa committed a year ago
Unverified
3dd16262743b858cbcf567fb3f0483c43fb81754

Removed deprecations

ddisjfa committed 4 years ago
Unverified
181aa09d3344dca9507bf15ae18a54d496700833

Upgraded to 4.4

ddisjfa committed 5 years ago
Unverified
5c0b20173ca307cc06a7514c2fc635bf4ae2db12

Updated composer, add licence

ddisjfa committed 5 years ago
Unverified
c249b3986ae5236843cbea95602b23f458667247

Updated form, mograted to template syntax

ddisjfa committed 5 years ago

README

The README file for this repository.

Translation bundle

Check on packagist MIT License

Watch on GitHub Star on GitHub Tweet

Hello, and welcome to my Translation Bundle. This is a bundle for symfony and it is using a doctrine layer to append on the existing translations in your system.

What does this bundle solve

This bundle saves changed translations on a deployed website to the database. This is to test labels or if users would like to "manage" their own.

The bundle extends the cache and updates the translations from a Symfony translation and updates them from the database.

Why do i not want to use this

If you are developing, and just want to fix and save translations. Use the Symfony translation or maybe extent this using the Php translations bundle here. Here you can set up all your translations as a base layer and configure them.

Wait! Why do i use this bundle then?

After a deplay poeple like to use and abuse the labels in the system. Just wanting something else. This is the sweet spot. Just install and go. Let's see where this goes. Just as an extension.

Cool! Lets go

Just install it using composer, to add this to your symfony project

composer req disjfa/translation-bundle

And set up the routes in config/routes/disjfa_translation.yaml in symfony4 or arr them to your routes:

disjfa_translation:
    resource: '@DisjfaTranslationBundle/Controller/'
    type:     annotation

Installed

Now you can go to http://localhost/translation to edit the routes.

Also you can prefix the routes to move them to an admin route

disjfa_translation:
    resource: '@DisjfaTranslationBundle/Controller/'
    type:     annotation
    prefix:   /admin

Optional

Setup the knp paginator service and set up the bootstrap theme

knp_paginator:
    template:
        pagination: '@KnpPaginator/Pagination/twitter_bootstrap_v4_pagination.html.twig'     # sliding pagination controls template

Enjoy

You are done. Now edit the translations as you like