Skip to content

[WIP] CS-5775 - handle translations in tpls via CLI - #1108

Open
takeit wants to merge 3 commits into
sourcefabric:v4.4from
takeit:fix
Open

[WIP] CS-5775 - handle translations in tpls via CLI#1108
takeit wants to merge 3 commits into
sourcefabric:v4.4from
takeit:fix

Conversation

@takeit

@takeit takeit commented May 7, 2015

Copy link
Copy Markdown
Contributor

Loading translation files in CLI is not needed. Less execution time.

@ahilles107

Copy link
Copy Markdown
Contributor

how about templates with translations generated by cli? example: anouncements notifications?

@takeit

takeit commented May 7, 2015

Copy link
Copy Markdown
Contributor Author

anouncements notifications ? which files exactly ?

@ahilles107

Copy link
Copy Markdown
Contributor

don't have exact files but think - if you will want build some kind reminders or notifications system where you send mail with content from translated template file - it will fail. It close many doors for us and plugin developers.

@m038

m038 commented May 7, 2015

Copy link
Copy Markdown
Contributor

Yeah, now i think of it, not sure if this is a good idea. What about if you want to translate cli strings?

@ahilles107

Copy link
Copy Markdown
Contributor

@m038 translator will work anyway, just translation files for current publication theme will be not loaded.

@ahilles107

Copy link
Copy Markdown
Contributor

@takeit how performance improvement looks on blackfire?

@takeit

takeit commented May 7, 2015

Copy link
Copy Markdown
Contributor Author

okay agree, so I found a bug, because when you will use template service and execute it via cli it will throw You cannot create a service ("request") of an inactive scope ("request") because we are calling request in CampTemplate. Im gonna fix it.

@ahilles107

Copy link
Copy Markdown
Contributor

i'm not against it - but we should leave option for developers to load those translations somehow with cli (command should provide langauge and publication/issue numbers)

@takeit takeit changed the title skip translations files loading in cli [WIP] load translations in tpls via CLI May 7, 2015
@takeit takeit changed the title [WIP] load translations in tpls via CLI [WIP] CS-5775 - handle translations in tpls via CLI May 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants