Comments (4)
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 foundat 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.
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 foundat 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.
from pigallery2.
Hi,
I have checked this error.
You need to do following for the translation:
- Download the source
- install the source:
npm install
- add new language
a)npm run add-translation -- --fr
b) find the new language file in the translation folder and fix the language errors - rebuild the frontend app
a)npm install
b) OR you can build your own release withnpm run build-release
- 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)
- Scrollbars missing when searching from Dialog [Vivaldi/Chrome] HOT 2
- How to use GPU acceleration? For example, Nvidia? Can GPU be used to accelerate image display? Currently, the display speed for high-resolution images is a bit slow.. HOT 3
- Easily sort and group directly from URL HOT 1
- Filter "same-day:every-year" shows item from a day earlier HOT 1
- HEVC / H.265 videos HOT 3
- Language switch ignores UrlBase HOT 2
- Special characters displayed wrongly HOT 2
- Allow relative date in filter
- [Feature] make lightbox text configurable
- Hide hidden (dot) files/folders for private/archived photos HOT 1
- rank pictures or like/dislike HOT 3
- Merge Previews and thumbnail generation HOT 8
- Use Imaginary for previews? HOT 4
- Playing videos results in "Error during loading the video." HOT 5
- [Feature] Slidewhow playback from query params
- ffmpeg ffprobe
- enumerate() in load_labels returns a wrong indexed list HOT 2
- how to change directory to store the images HOT 1
- Give proper name to folder zip HOT 3
- Collections - Ad hoc shareable albums HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pigallery2.