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

Simplify Localization with php-i18n and convert to json #117

Closed
11 of 12 tasks
Tracked by #52
philipbrembeck opened this issue Feb 24, 2022 · 0 comments · Fixed by #121
Closed
11 of 12 tasks
Tracked by #52

Simplify Localization with php-i18n and convert to json #117

philipbrembeck opened this issue Feb 24, 2022 · 0 comments · Fixed by #121
Assignees
Labels
enhancement New feature or request low priority Fix when there is time
Milestone

Comments

@philipbrembeck
Copy link
Collaborator

philipbrembeck commented Feb 24, 2022

Proposed changes

Add philipp15b/php-i18n i18n.class.php via composer:

$ composer require philipp15b/php-i18n

and convert current localizations to JSON.

Tasks

  • Require class
  • Change localization folder to l10n
  • Convert php-arrays to json
  • Implement in all applicable pages:
    • script.php
    • impressum.php
    • privacy-policy.php
    • offline.php
    • main.php
  • Debate restructuring language-code named folders
  • Edit README!
  • Push & publish
@philipbrembeck philipbrembeck added enhancement New feature or request low priority Fix when there is time labels Feb 24, 2022
@philipbrembeck philipbrembeck added this to the v2.x milestone Feb 24, 2022
@philipbrembeck philipbrembeck self-assigned this Feb 24, 2022
philipbrembeck added a commit that referenced this issue Mar 1, 2022
philipbrembeck added a commit that referenced this issue Mar 1, 2022
philipbrembeck referenced this issue Mar 2, 2022
❤️‍🔥 Converted l10n from array to `json`
gitgauner added a commit that referenced this issue Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request low priority Fix when there is time
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant