dragosv / serge-plugins Goto Github PK
View Code? Open in Web Editor NEWSerge (Continuous localization platform https://serge.io/) Plugins
License: Other
Serge (Continuous localization platform https://serge.io/) Plugins
License: Other
This version of CLI tool will be depreciated at November 1st 2020.
Use Lokalise CLI v2 instead.
Implement AppVeyor build for now (Maybe in the future move to Azure Dev Ops Pipelines)
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
Any ideas?
Is the zanata plugin not compatible with the installation instructions in https://serge.io/download/?win/stable?
Thank you.
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).
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.