Code Monkey home page Code Monkey logo

Comments (9)

rmariuzzo avatar rmariuzzo commented on July 30, 2024 3

Released: https://github.com/rmariuzzo/Laravel-JS-Localization/releases/tag/v1.3.4

from laravel-js-localization.

rmariuzzo avatar rmariuzzo commented on July 30, 2024 1

I partially run the test on Windows, because there were a bunch of edge cases that are like rabbit holes that goes deeper and deeper. Not directly related to this lib, but because of the dependencies on Windows.

from laravel-js-localization.

rmariuzzo avatar rmariuzzo commented on July 30, 2024

Perfect, I will check on it this weekend. I'm in the hospital right now for
a scheduled chemo.

On Oct 28, 2016 11:55 AM, "Oleg" [email protected] wrote:

Hello, there are small bug in the code.

Problem is that on windows directory separator is "" instead of "/".

That means, that following code you have won't work:

\Mariuzzo\LaravelJsLocalization\Generators\LangJsGenerator::
isMessagesExcluded

protected function isMessagesExcluded($filePath)
{
if (empty($this->messagesIncluded)) {
return false;
}

    $localeDirSeparatorPosition = strpos($filePath, '/');
    $filePath = substr($filePath, $localeDirSeparatorPosition);
    $filePath = ltrim($filePath, '/');
    $filePath = substr($filePath, 0, -4);

    if (in_array($filePath, $this->messagesIncluded)) {
        return false;
    }

    return true;
}

Please, fix it so it will work on windows too.

Easy fix would be to add following replace:
$filePath = str_replace(DIRECTORY_SEPARATOR,'/',$filePath);

However, I am not sure that this will be sufficient.

Please, take a look on this, I can test on windows, if needed.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#65, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAa2HzzBR0CTfoI22hnU0aJZtdGKtYHNks5q4hrTgaJpZM4Kjlqn
.

from laravel-js-localization.

antonkomarev avatar antonkomarev commented on July 30, 2024

@rmariuzzo I will check the code ASAP. That's my fault :}

from laravel-js-localization.

antonkomarev avatar antonkomarev commented on July 30, 2024

Solution is published, but I don't have any Windows machines to test it. Help required 🆘

from laravel-js-localization.

olelis avatar olelis commented on July 30, 2024

I can check on monday.

On 28 Oct 2016 22:12, "Pe Ell" [email protected] wrote:

Solution is published, but I don't have any Windows machines to test it.
Help required 🆘


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#65 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ANrsHyp_X4JrxG3Pntl_cHeTdEtvr_SZks5q4kkggaJpZM4Kjlqn
.

from laravel-js-localization.

olelis avatar olelis commented on July 30, 2024

Nope, does not work.

Here is the link to my pull request: #67

from laravel-js-localization.

rmariuzzo avatar rmariuzzo commented on July 30, 2024

I'm configuring a Windows image to test this and release if it looks good.

from laravel-js-localization.

rmariuzzo avatar rmariuzzo commented on July 30, 2024

I'm still working on it. It is a pain to setup the env in Windows... 😞

from laravel-js-localization.

Related Issues (20)

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.