Giter Site home page Giter Site logo

Comments (4)

angelmanst avatar angelmanst commented on May 17, 2024

In the meantime I noticed I was not using the source project. I've cloned it into my environment and in the meantime I've run into missing modules issues. I was missing the following modules:

  • gulp-typescript
  • typescript
  • gulp-zip
  • run-sequence
  • gulp-json-modify

So, I installed one by one with:

npm install <module name>

I ended up with the following error:

osmc@angelcenter:~/TEMP/pigallery2/source$ npm run add-translation -- --pt

[email protected] add-translation /home/osmc/TEMP/pigallery2/source
gulp add-translation "--pt"

[17:44:24] Using gulpfile ~/TEMP/pigallery2/source/gulpfile.js
[17:44:24] Starting 'add-translation'...
[17:44:24] Starting 'extract-locale'...
creating source translation file: locale.source.xlf

/bin/sh: 1: ng: not found

[17:44:24] 'extract-locale' errored after 91 ms
[17:44:24] Error: Command failed: ng xi18n --out-file=./../locale.source.xlf --i18n-format=xlf --i18n-> locale=en
/bin/sh: 1: ng: not found

at ChildProcess.exithandler (child_process.js:204:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:886:16)
at Socket.<anonymous> (internal/child_process.js:342:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:497:12)

[17:44:24] Finished 'add-translation' after 119 ms
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] add-translation: gulp add-translation "--pt"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] add-translation script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/osmc/.npm/_logs/2018-12-21T17_44_24_392Z-debug.log

Attached the mentioned log:
2018-12-21T17_44_24_392Z-debug.log

from pigallery2.

angelmanst avatar angelmanst commented on May 17, 2024

Again, I've installed ng with:
sudo apt-get install ng-common

And got a different error:

osmc@angelcenter:~/TEMP/pigallery2/source$ npm run add-translation -- --pt

[email protected] add-translation /home/osmc/TEMP/pigallery2/source
gulp add-translation "--pt"

[17:55:01] Using gulpfile ~/TEMP/pigallery2/source/gulpfile.js
[17:55:01] Starting 'add-translation'...
[17:55:01] Starting 'extract-locale'...
creating source translation file: locale.source.xlf

/usr/bin/ng: line 40: exec: xi18n: not found

[17:55:02] 'extract-locale' errored after 147 ms
[17:55:02] Error: Command failed: ng xi18n --out-file=./../locale.source.xlf --i18n-format=xlf --i18n-locale=en
/usr/bin/ng: line 40: exec: xi18n: not found

at ChildProcess.exithandler (child_process.js:204:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:886:16)
at Socket. (internal/child_process.js:342:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:497:12)
[17:55:02] Finished 'add-translation' after 178 ms
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] add-translation: gulp add-translation "--pt"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] add-translation script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/osmc/.npm/_logs/2018-12-21T17_55_02_198Z-debug.log

Attached the mentioned log:
2018-12-21T17_55_02_198Z-debug.log

from pigallery2.

bpatrik avatar bpatrik commented on May 17, 2024

from pigallery2.

bpatrik avatar bpatrik commented on May 17, 2024

Hi,

I have checked this error.
You need to do following for the translation:

  1. Download the source
  2. install the source: npm install
  3. add new language
    a) npm run add-translation -- --fr
    b) find the new language file in the translation folder and fix the language errors
  4. rebuild the frontend app
    a) npm install
    b) OR you can build your own release with npm run build-release
  5. you can make a pull request with the new file, so others can use it too :)

I think you were missing the 2. npm install part. I've updated the Readme.md to clarify this step.
Sorry for the inconvenience.

Best,
Patrik

from pigallery2.

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.