Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[2.8][Translation] added message cache.#14526

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed

Conversation

aitboudad
Copy link
Contributor

QA
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?no
Fixed tickets#13676
Tests pass?yes
LicenseMIT
# app/config/config.ymlframework:translator:cache:translation.cache.default

The message cache Interface contains now only one method:

interface MessageCacheInterface{publicfunctioncache($locale,array$options =array());}

for more details see#13986.

@aitboudadaitboudadforce-pushed thetranslation_message_cache branch 2 times, most recently fromcf5dd74 tocc6556dCompareMay 3, 2015 00:53
use Symfony\Component\Config\ConfigCacheFactory;

/**
* @author Abdellatif Ait Boudad <a.aitboudad@gmail.com>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

boudad is lowercase 😆

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

😴

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

fixed thanks

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

on his own last name nice@pborreli

@aitboudadaitboudadforce-pushed thetranslation_message_cache branch fromcc6556d to3d1a39fCompareMay 3, 2015 00:59
@mpdude
Copy link
Contributor

Why do you think do we need another interface for this and make theTranslator aware of it?

I mean, why can't we just decorate theTranslator with a caching layer that keeps the results oftrans() andtransChoice() in (shared) memory?

@aitboudad
Copy link
ContributorAuthor

@mpdude The current implementation try to simplify theTranslator itself and to not be aware of how to caching and also it provide the consistant way to overrideMessageCatalogue.
Decorating solve the issue but it isn't ideal as it's attempt to not calltrans() andtransChoice() of theTranslator which can make hard to handle other decorated class likeLoggingTranslator orDataCollectorTranslator for example.

@aitboudad
Copy link
ContributorAuthor

closed in favor of#14671.

@aitboudadaitboudad deleted the translation_message_cache branchMay 18, 2015 18:11
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@aitboudad@mpdude@pborreli@cordoval

[8]ページ先頭

©2009-2025 Movatter.jp