Giter VIP home page Giter VIP logo

laminas-mvc-i18n's Introduction

laminas-mvc-i18n

Build Status

🇷🇺 Русским гражданам

Мы, участники Laminas, родились и живем в разных странах. У многих из нас есть друзья, родственники и коллеги как в России, так и в Украине. Некоторые из нас родились в России. Некоторые из нас живут в России. У некоторых бабушки и дедушки сражались с фашистами во Второй мировой войне. Здесь никто не поддерживает фашизм.

У одного из нас есть украинская родственница, которая спаслась из дома вместе с сыном. Поезд задержался из-за бомбежки на дороге впереди. У нас есть друзья, которые прячутся в бомбоубежищах. Мы с тревогой ждем весточки от них после воздушных налетов, которые беспорядочно наносят удары и попадают по больницам, школам, детским садам и домам. Мы не берем это из каких-либо СМИ. Мы наблюдаем это напрямую.

Вы доверяете нам достаточно, чтоб использовать наши программы, и мы просим вас довериться нам вновь. Мы нуждаемся в помощи. Выходите и протестуйте против этой бесполезной войны. Остановите кровопролитие. Скажите "Нет войне!"

🇺🇸 To Citizens of Russia

We at Laminas come from all over the world. Many of us have friends, family and colleagues in both Russia and Ukraine. Some of us were born in Russia. Some of us currently live in Russia. Some have grandparents who fought Nazis in World War II. Nobody here supports fascism.

One team member has a Ukrainian relative who fled her home with her son. The train was delayed due to bombing on the road ahead. We have friends who are hiding in bomb shelters. We anxiously follow up on them after the air raids, which indiscriminately fire at hospitals, schools, kindergartens and houses. We're not taking this from any media. These are our actual experiences.

You trust us enough to use our software. We ask that you trust us to say the truth on this. We need your help. Go out and protest this unnecessary war. Stop the bloodshed. Say "stop the war!"

laminas-mvc-i18n provides integration between:

  • laminas-i18n
  • laminas-mvc
  • laminas-router

and replaces the i18n functionality found in the v2 releases of the latter two components.

Installation

composer require laminas/laminas-mvc-i18n

Assuming you are using the component installer, doing so will enable the component in your application, allowing you to immediately start developing console applications via your MVC. If you are not, please read the introduction for details on how to register the functionality with your application.

For use with laminas-mvc v3 and up

While this component has an initial stable release, please do not use it with laminas-mvc releases prior to v3, as it is not compatible.

Migrating from laminas-mvc v2 i18n features to laminas-mvc-i18n

Please see the migration guide for details on how to migrate your existing laminas-mvc console functionality to the features exposed by this component.

laminas-mvc-i18n's People

Contributors

boesing avatar fezfez avatar froschdesign avatar geerteltink avatar gennadiylitvinyuk avatar ghostwriter avatar gsteel avatar kokspflanze avatar koopzington avatar michalbundyra avatar ocramius avatar renovate[bot] avatar samsonasik avatar slamdunk avatar snapshotpl avatar svycka avatar tysonandre avatar weierophinney avatar xerkus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

laminas-mvc-i18n's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Repository problems

These problems occurred while renovating this repository. View logs.

  • WARN: Use matchDepNames instead of matchPackageNames

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

composer
composer.json
  • php ~8.1.0 || ~8.2.0 || ~8.3.0
  • container-interop/container-interop ^1.1
  • laminas/laminas-i18n ^2.13.0
  • laminas/laminas-router ^3.5.0
  • laminas/laminas-servicemanager ^3.15.1
  • laminas/laminas-stdlib ^3.10.1
  • laminas/laminas-validator ^2.19.0
  • laminas/laminas-coding-standard ~2.5.0
  • phpspec/prophecy-phpunit ^2.0.2
  • phpunit/phpunit ^9.6.13
  • psalm/plugin-phpunit ^0.19.0
  • vimeo/psalm ^5.15
github-actions
.github/workflows/continuous-integration.yml
.github/workflows/docs-build.yml
.github/workflows/release-on-milestone-closed.yml

  • Check this box to trigger a request for Renovate to run again on this repository

Psalm integration

Feature Request

Q A
QA yes

Summary

As decided during the Technical-Steering-Committee Meeting on August 3rd, 2020, Laminas wants to implement vimeo/psalm in all packages.

Implementing psalm is quite easy.

Required

  • Create a .psalm.xml.dist in the project root
  • Copy and paste the contents from this psalm.xml.dist
  • Run $ composer require vimeo/psalm
  • Run $ vendor/bin/psalm --set-baseline=psalm-baseline.xml
  • Add a composer script static-analysis with the command psalm --shepherd --stats
  • Add a new line to script: in .travis.yml: - if [[ $TEST_COVERAGE == 'true' ]]; then composer static-analysis ; fi
  • Remove phpstan from the project (phpstan.neon.dist, .travis.yml entry, composer.json require-dev and scripts)
Optional
  • Fix as many psalm errors as possible.

Change on fly language from en_US to fr_FR ZF3

Hi everyone,
I successfully installed the zend-mvc-i18n in my ZF3 project and when I change the default language manually the message change.
But i'm stuck with this:
I use this two URL to change on fly the language between en_US and fr_FR
<?= $this->url($this->route, array('lang' => 'en_US'));?>
<?= $this->url($this->route, array('lang' => 'fr_FR'));?>
but it doesn't work et used also a javascript function:

function editLocaleLangue(pRoute) {
    $.ajax({
        type: "POST",
        url: '/language',
        data: "idLangue=" + pRoute,
        dataType: "json",
        success: function (data) {
        },
        complete: function (xhr, status) {
            window.location.reload();
        }
    });
}

also it's not working.

Help please !


Originally posted by @akram82Travel at zendframework/zend-mvc-i18n#19

PHP 8.0 support

Feature Request

Q A
New Feature yes

Summary

To be prepared for the december release of PHP 8.0, this repository has some additional TODOs to be tested against the new major version.

In order to make this repository compatible, one has to follow these steps:

  • Modify composer.json to provide support for PHP 8.0 by adding the constraint ~8.0.0
  • Modify composer.json to drop support for PHP less than 7.3
  • Modify composer.json to implement phpunit 9.3 which supports PHP 7.3+
  • Modify .travis.yml to ignore platform requirements when installing composer dependencies (simply add --ignore-platform-reqs to COMPOSER_ARGS env variable)
  • Modify .travis.yml to add PHP 8.0 to the matrix (NOTE: Do not allow failures as PHP 8.0 has a feature freeze since 2020-08-04!)
  • Modify source code in case there are incompatibilities with PHP 8.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.