Git Product home page Git Product logo

serge-plugins's Introduction

Hi there ๐Ÿ‘‹

My name is Dragos Varovici and I'm a Forward-looking Polyglot Developer ๐Ÿ‘จโ€๐Ÿ’ป and Cloud Enthusiast โ˜๏ธ from Canada. You can find me on LinkedIn

GitHub followers

๐Ÿ”ง Technologies & Tools

C# Ruby Java Go TypeScript React Perl Rust Python Kotlin

SQLServer .Net Git Docker GitHub Oracle Postgres MySQL MongoDB Amazon AWS Azure

๐Ÿ’ป Open Source

๐Ÿ“Š Stats

Dragos's github stats

serge-plugins's People

Contributors

andrii-bodnar avatar dragosv avatar fossabot avatar gitter-badger avatar icnocop avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

serge-plugins's Issues

Installing the dependencies failed: Module 'Serge' is not installed

Hi.

Thank you for serge plugins.

I installed Serge 1.3 as indicated in https://serge.io/download/?win/stable.

I then tried to install the zanata serge plugin using the following command:

cpanm install Serge::Sync::Plugin::TranslationService::zanata

But I got the following error:

--> Working on install
Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/install-0.01.tar.gz ... OK
Configuring install-0.01 ... OK
Building and testing install-0.01 ... OK
Successfully installed install-0.01
--> Working on Serge::Sync::Plugin::TranslationService::zanata
Fetching http://www.cpan.org/authors/id/D/DR/DRAGOSV/Serge-Sync-Plugin-TranslationService-zanata-0.903.0.tar.gz ... OK
Configuring Serge-Sync-Plugin-TranslationService-zanata-0.903.0 ... OK
==> Found dependencies: Serge
--> Working on Serge
Fetching http://www.cpan.org/authors/id/A/AF/AFAN/Serge-v1.3.2.tar.gz ... OK
Configuring Serge-v1.3.2 ... OK
Building and testing Serge-v1.3.2 ... FAIL
! Installing Serge failed. See C:\Users\ADMINI~1\.cpanm\work\1541017770.4628\build.log for details. Retry with --force to force install it.
! Installing the dependencies failed: Module 'Serge' is not installed
! Bailing out the installation for Serge-Sync-Plugin-TranslationService-zanata-0.903.0.
1 distribution installed

build.log

Any ideas?

Is the zanata plugin not compatible with the installation instructions in https://serge.io/download/?win/stable?

Thank you.

Windows build

Implement AppVeyor build for now (Maybe in the future move to Azure Dev Ops Pipelines)

Undeclared dependencies

The test suite fails if some prereqs are not installed: Clone and Env. The latter is usually part of a normal perl installation, but some linux distributions may ship a perl without Env.pm (e.g. CentOS 7).

Crowdin TranslationService integration

It's very useful plugin but I can't figure out how I should configure conwdin.yml to integrate with Serge.

I have following serge config:

inc
{
    job-common
    {
        optimizations               YES
        active                      YES
        debug                       YES
        source_language             en
        destination_languages       de ja ru
        normalize_strings           NO
        source_process_subdirs      YES
        db_source                   DBI:SQLite:dbname=./translate.db3
        db_namespace                example
        reuse_translations          YES
        reuse_orphaned              YES
        output_lang_files           NO
        output_default_lang_file    YES
        output_encoding             UTF-8
        output_bom                  NO
        parser
        {
            plugin          parse_hash
        }

        serializer
        {
            plugin          serialize_po
        }
    }
}

sync
{
    ts
    {
        plugin      crowdin
        data
        {
            config_file     crowdin.yml
        }
    }

    vcs
    {
        plugin      git
        data
        {
            local_path      %ENV:SERGE_DATA_DIR%/project
            remote_path     ssh://[email protected]/project.git
            name            Serge L10N Robot
            email           [email protected]
        }
    }
}

jobs
{
    {
        @inherit                .#inc/job-common

        id                      example.com.locale
        name                    Example Locales
        source_dir              %ENV:SERGE_DATA_DIR%/project/locales/en-US
        source_match            messages_.+\.php$
        ts_file_path            ./po/%LOCALE:FULL%/%FILE%.po
        output_file_path        %ENV:SERGE_DATA_DIR%/project/locales/%CULTURE%/%NAME:NOLOCALE%_%CULTURE%.%EXT%
    }
}

with according crowdin config

"project_identifier" : "example"
"api_key" : "xxx"
"base_path" : "/path/to/project/po/"
"preserve_hierarchy": true
files: [
 {
  "source" : "/en-US/*.po",
  "translation" : "/%locale_with_underscore%/%original_file_name%",
 }
]

But Serge does not generate source en-US translation files in /po directory.

Undeclared dependency File::chdir

The compile test fails if File::chdir is not installed:

PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t

#   Failed test 'Serge/Sync/Plugin/TranslationService/weblate.pm loaded ok'
#   at t/00-compile.t line 43.
#          got: '512'
#     expected: '0'
Can't locate File/chdir.pm in @INC (@INC contains: ... .) at /home/cpansand/.cpan/build/2020032700/Serge-Sync-Plugin-TranslationService-weblate-0.900.1-N7ptCd/blib/lib/Serge/Sync/Plugin/TranslationService/weblate.pm line 8.
BEGIN failed--compilation aborted at /home/cpansand/.cpan/build/2020032700/Serge-Sync-Plugin-TranslationService-weblate-0.900.1-N7ptCd/blib/lib/Serge/Sync/Plugin/TranslationService/weblate.pm line 8.
Compilation failed in require at -e line 1.
# Looks like you failed 1 test of 1.
t/00-compile.t .. 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests 

Support Lokalise v2 CLI

This version of CLI tool will be depreciated at November 1st 2020.
Use Lokalise CLI v2 instead.

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.