Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding i18n support #63

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

adding i18n support #63

wants to merge 3 commits into from

Conversation

kklecho
Copy link

@kklecho kklecho commented Oct 31, 2015

More specifically:

  • adding dependency to TranslationServiceProvider in composer.json
  • creating translation messages files under src/SimpleUser/translations/{cultureCode}/*
  • loading translation files in src/SimpleUser/UserServiceProvider.php
  • externalizing strings in all templates to translation files
  • adding language pick dropdown in layout.twig (conditional, only present when more than 1 locale in place)
  • updating unit tests
  • updating readme.md with how to example

More specifically:
- adding dependency to TranslationServiceProvider in composer.json
- creating translation messages files under src/SimpleUser/translations/{cultureCode}/*
- loading translation files in src/SimpleUser/UserServiceProvider.php
- externalizing strings in all templates to translation files
- adding language pick dropdown in layout.twig (conditional, only present when more than 1 locale in place)
- updating unit tests
- updating readme.md with how to example
More specifically:
1. UserManager.php
- removed escaping part from setColumns
- created getCol,umnsEscaped method - it operates on getColumns and applies escaping
- changed SQL statements to use getUserColumns and getUserColumnsEscaped where needed
- sanitized :param_name  
2. UserManagerTest.php
- created $app protected property
- added test case for custom email column name containing risky character (space). 
- referencing getUserColumns instead of hardcoded column name in two present testcases
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.

1 participant