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

[i18n] Localization In Core #141

Closed
6 of 7 tasks
lonnieezell opened this issue Jul 1, 2016 · 9 comments
Closed
6 of 7 tasks

[i18n] Localization In Core #141

lonnieezell opened this issue Jul 1, 2016 · 9 comments
Labels
help wanted More help is needed for the proper resolution of an issue or pull request in progress new feature PRs for new features
Milestone

Comments

@lonnieezell
Copy link
Member

lonnieezell commented Jul 1, 2016

CI should provide localization and internationalization as a core feature. My research on this is on-going so this list might evolve with time.

  • New config setting 'locale' that will be referenced site-wide, defaulting to 'en_US'
  • Should be able to change locale at runtime
  • New class for working with Date/Time
  • New class for working with Numbers
  • Be able to automatically set locale based on headers.
  • Date helper timezone features should use this
  • ???A Model trait/class that adds features for helping managing translation tables for fields.
@lonnieezell lonnieezell added the new feature PRs for new features label Jul 1, 2016
@lonnieezell lonnieezell added this to the Pre-Alpha 2 milestone Jul 1, 2016
@davidgv88
Copy link
Contributor

What do you think about the support .mo .po files. In older versions of CI always is through an array.

@sv3tli0
Copy link
Contributor

sv3tli0 commented Jul 5, 2016

It will be good to have multiple translation source formats possible, even if CI has 2-3 by default.

@davidgv88
Copy link
Contributor

Yes! For example with this two Sources:

  • Array (Default),
  • Gettext

@davidgv88
Copy link
Contributor

For more info: http://forum.codeigniter.com/thread-65550.html

I will write the proposal in Forum.

@johnnymast
Copy link

Interesting i will read into this maybe i could help

@baselbj
Copy link
Contributor

baselbj commented Mar 17, 2017

I liked this and will ake some research on it. I think the best example on localization is the .net they did will in this part.

@lonnieezell
Copy link
Member Author

I'm not familiar with how .net handles it, but am open to solutions. CakePHP does a pretty good job with it, too. Basically, it should get in your way as little as possible, and be integrated into the tools you would use even if you weren't doing any localized work.

Just be sure to become familiar with what's already in the framework:

So, it's started, but has a few notable things that are left to do. Most of it will likely be centered around integrating the intl extension which has been bundled with PHP since 5.3.

@baselbj
Copy link
Contributor

baselbj commented Mar 19, 2017

I will study it soon :)

@jim-parry jim-parry added help wanted More help is needed for the proper resolution of an issue or pull request in progress labels Jul 13, 2017
@lonnieezell
Copy link
Member Author

I think we have everything implemented for this now. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted More help is needed for the proper resolution of an issue or pull request in progress new feature PRs for new features
Projects
None yet
Development

No branches or pull requests

6 participants