zerospam / laravel-gettext

Adds localization support to laravel applications using PoEdit and GNU-Gettext.
99 stars 56 forks source link

Laravel 7 Support #45

Closed MarkusJLechner closed 3 years ago

WimDeMeester commented 4 years ago

I get the following problem: zerospam/laravel-gettext 7.2.1 requires laravel/framework ^5.6 || ^6.0 -> satisfiable by laravel/framework[5.6.x-dev, 5.7.x-dev, 5.8.x-dev, 6.x-dev].

michaloravec commented 4 years ago

It would be great, if somebody merge this pull request finally.

WimDeMeester commented 4 years ago

I agree, but I think that only the owner of this repository can do this.

pabloblazquez commented 4 years ago

Please, owner, merge this fix for L7... thanks in advice!

WimDeMeester commented 4 years ago

If you can make me a maintainer of the repository, I can also merge the pull request. Is there something else I need to do?

CedNet commented 4 years ago

Can someone just email the owner? I need to upgrade Laravel and this package stops me without another... fork.

sukiyanen85 commented 4 years ago

Same here, can't update to v7 because of this package

- zerospam/laravel-gettext 7.2.1 requires laravel/framework ^5.6 || ^6.0 -> satisfiable by laravel/framework[5.6.x-dev, 5.7.x-dev, 5.8.x-dev, 6.x-dev].

redalpha01 commented 4 years ago

Couldn't you branch it and change the dependencies? It's not like there's many breaking changes that affect this packages.

WimDeMeester commented 4 years ago

That is what I did. You can use https://github.com/DeepskyLog/laravel-gettext

sukiyanen85 commented 4 years ago

That is what I did. You can use https://github.com/DeepskyLog/laravel-gettext

Thank you so much! Just upgraded using your repository, since this one looks abandoned it would be great if you could keep yours updated for future Laravel versions

WimDeMeester commented 4 years ago

That is what I did. You can use https://github.com/DeepskyLog/laravel-gettext

Thank you so much! Just upgraded using your repository, since this one looks abandoned it would be great if you could keep yours updated for future Laravel versions

That is my plan!

marcth commented 4 years ago

I added a temporary fix to Laravel's 7.x composer.json file until the zerospam/laravel-gettext child composer.json file is updated. Add a repositories section to your composer.json similar to what is shown below (I just copied the laravel-gettext composer.json) making sure to:

  1. Specify the distribution as a ZIP archive pointing to the gettext git repo.
  2. Update the laravel framework requirement to "laravel/framework": "^5.6 || ^6.0 || ^7.0",

Once the package is updated, it should just be a matter of removing the repository definition and upgrading to the latest version.

    "require": {
        "php": "^7.2.5",
        "fideloper/proxy": "^4.2",
        "fruitcake/laravel-cors": "^1.0",
        "guzzlehttp/guzzle": "^6.3",
        "laravel/framework": "^7.0",
        "laravel/tinker": "^2.0",
        "zerospam/laravel-gettext": "^7.2"
    },
    "require-dev": {
        "facade/ignition": "^2.0",
        "fzaninotto/faker": "^1.9.1",
        "mockery/mockery": "^1.3.1",
        "nunomaduro/collision": "^4.1",
        "phpunit/phpunit": "^8.5"
    },
    "repositories": [
        {
            "type": "package",
            "package": {
                "name": "zerospam/laravel-gettext",
                "description": "Adds localization support to laravel applications in an easy way using Poedit and GNU gettext.",
                "homepage": "https://github.com/zerospam/laravel-gettext",
                "support": {
                    "issues": "https://github.com/zerospam/laravel-gettext/issues"
                },
                "keywords": [
                    "gettext",
                    "localization",
                    "poedit",
                    "laravel-gettext",
                    "laravel",
                    "translation"
                ],
                "authors": [
                    {
                        "name": "Nicolás Daniel Palumbo",
                        "email": "n@xinax.net"
                    },
                    {
                        "name": "Antoine Aflalo",
                        "email": "dev+laravel_gettext@zerospam.ca"
                    }
                ],
                "license": "MIT",
                "version": "7.2.1",
                "dist": {
                    "type": "zip",
                    "url": "https://github.com/zerospam/laravel-gettext/archive/7.2.1.zip",
                    "reference": "7.2.1"
                },
                "require": {
                    "php": ">=7.1",
                    "laravel/framework": "^5.6 || ^6.0 || ^7.0",
                    "laravel/helpers": "^1.1"
                },
                "require-dev": {
                    "mockery/mockery": "dev-master",
                    "phpunit/phpunit": "~7.0 || ^8",
                    "squizlabs/php_codesniffer": "1.5.*",
                    "laravel/laravel": "^5.6 || ^6.0",
                    "php-coveralls/php-coveralls": "^2.1"
                },
                "autoload": {
                    "psr-0": {
                        "Xinax\\LaravelGettext\\": "src/"
                    },
                    "files": [
                        "src/Xinax/LaravelGettext/Support/helpers.php"
                    ]
                },
                "minimum-stability": "stable",
                "extra": {
                    "laravel": {
                        "providers": [
                            "Xinax\\LaravelGettext\\LaravelGettextServiceProvider"
                        ]
                    }
                }
            }
        }
    ],
philippe-bourdeau commented 3 years ago

Upcoming release will support up to laravel 8.