- Posts: 228
Question Development Category
- Klugesherz
- Topic Author
- Offline
- Junior Member
Should we not create a Development category, in order to share the development topics ?
It would be helpful and so would not pollute the other topics
Thanks in advance
WebTrees 2.1.x---> My famility tree
PHP 8.0
Please Log in or Create an account to join the conversation.
- bertkoor
- Away
- Platinum Member
- Greetings from Utrecht, Holland
Klugesherz wrote: For those who contribute to the software
The list of active contributors is not that long:
github.com/fisharebest/webtrees/graphs/contributors
According to Contributing.md there's also (going to be?) a Slack channel for developers.
Klugesherz wrote: in order to share the development topics ?
Those are supposed to be 'issues', tracked on GitHub, and each of them has its own conversation:
github.com/fisharebest/webtrees/issues
Klugesherz wrote: It would be helpful and so would not pollute the other topics
I personally observe zero pollution of developers chatting amongst each other. Could you give an example?
stamboom.BertKoor.nl runs on webtrees v1.7.13
Please Log in or Create an account to join the conversation.
- Klugesherz
- Topic Author
- Offline
- Junior Member
- Posts: 228
bertkoor wrote:
Not sure that Slack Channel will be the most appropriate.Slack channel for developers.
This is fine if you are working in the same company, but not in case you contribute as free, to a software.
Oups, this is my opinion of course..Which will certainly not be taken into account, as I'm just starting in to the contribution.
For me it is important to have a place where it is possible to share, and request some clarifications about the software
A specific "DEV" category in this forum, would have been fine
Here some Examples:
* Why I'm acing an issue when I run "npm run production" under windows
* Why all parameters in wt_getcom_setting are all duplicated with gedcom_id 1 and gedcom_id-1 ?
* Where I can find help to use for the I18N::translate() function
* ..
Open to the administrators of this Forum
WebTrees 2.1.x---> My famility tree
PHP 8.0
Please Log in or Create an account to join the conversation.
- ric2015
- Offline
- Senior Member
Klugesherz wrote: Why I'm acing an issue when I run "npm run production" under windows
Not sure if this is the same issue, but it worked for me after changing the first few lines in 'package.json' to (note the extra 'node'):
... according to notes I made at that time - don't ask me for details, I'm not actually familiar with these build tools
Klugesherz wrote: Why all parameters in wt_getcom_setting are all duplicated with gedcom_id 1 and gedcom_id-1 ?
Default settings are stored under id -1 ( here ) and copied from this id to additional trees ( here ). It seems that new trees could just as well be initialized directly from the defaults in 'SeedGedcomSettingTable.php', I'm not sure why this is done indirectly via the database table.
Richard
webtrees 2.1.17 at cissee.de/webtrees2
Vesta custom modules (Classic Look & Feel, Gov4webtrees, Shared Places, Extended Relationships) available at cissee.de
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
You can also use the issue tracker on github to ask questions.
> an issue when I run "npm run production" under windows
I only use Linux and Mac, so it is hard to guess what issues you have.
> I'm not sure why this is done indirectly via the database table.
There is some code to allow you to update the defaults (-1).
It is only activated when you have a large number of trees.
> Where I can find help to use for the I18N::translate() function
The file app/I18N.php contains lots of examples showing how to use these functions. e.g. plurals, context, etc.
There are also examples of the I18N functions in one of the example modules.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- Klugesherz
- Topic Author
- Offline
- Junior Member
- Posts: 228
Humm.. It seems not fixing the issueric2015 wrote: it worked for me after changing the first few lines in 'package.json' to (note the extra 'node'):
Yes sure, but some times you need a bit more general information when you starting in coding..fisharebest wrote: You can also use the issue tracker on github to ask questions.
Open to you..
fisharebest wrote: The file app/I18N.php contains lots of examples showing how to use these functions. e.g. plurals, context, etc.
Sorry this was not really the quest.
It is more related to the topic For fixes
To fix the issue #3476, #3479 I would need a new entry in the translate dictionary.
So my question was to know who is in charge to create this new entries ?
What is the process for such a request ?
And what is the routing to generate the messages.php files
Before to pull request this fix, I wanted to have more information
In the mean time I have pull requested #3484, which should be OK
WebTrees 2.1.x---> My famility tree
PHP 8.0
Please Log in or Create an account to join the conversation.
- ric2015
- Offline
- Senior Member
Klugesherz wrote:
Code:'NODE_ENV' n’est pas reconnu en tant que commande interne ou externe, un programme exécutable ou un fichier de commandes.
Ok, so that is one step earlier then.
One solution for this problem on windows is to install win-node-env, see here .
Checking my notes more closely, I see that this is what I had to do as well
If you get this to work, we should probably add a FAQ entry for this.
Richard
webtrees 2.1.17 at cissee.de/webtrees2
Vesta custom modules (Classic Look & Feel, Gov4webtrees, Shared Places, Extended Relationships) available at cissee.de
Please Log in or Create an account to join the conversation.
- Klugesherz
- Topic Author
- Offline
- Junior Member
- Posts: 228
ric2015 wrote: One solution for this problem on windows is to install win-node-env, see here .
YES.
It is working
Thank you !!
In a short view the steps run in git working directory
To avoid issue: npm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLY
Install win-node-env
which creates executables like NODE_ENV.cmd that sets the NODE_ENV environment variable and runs the rest of the command.
To update the vulnerabilities
Then Changing the first few lines in 'package.json' and add the extra 'node'
WebTrees 2.1.x---> My famility tree
PHP 8.0
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
Can you try this for me.
In `devDependencies {}`, add:
"cross-env": "^7.0.2",
In `scripts`, change
NODE_ENV=...
to
cross-env NODE_ENV=...
I hope this will make the script compatible with Windows.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- ddrury
- Offline
- Senior Member
See docs.microsoft.com/en-us/windows/wsl/install-win10
--
Dave
Local: Win 11 Pro, WSL2/Ubuntu20.04.4, Apache 2.4.51, PHP 7.4.26/8.1.7, MySQL 8.0.27
Production: Litespeed 8.0.1, PHP 8.1.9, MySQL 8.0.26
Please Log in or Create an account to join the conversation.
- Klugesherz
- Topic Author
- Offline
- Junior Member
- Posts: 228
modify package.json as you highligthed
npm install
npm audit fix
npm run ...
--> Works for me (No need to install win-node-env)
WebTrees 2.1.x---> My famility tree
PHP 8.0
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- Klugesherz
- Topic Author
- Offline
- Junior Member
- Posts: 228
Can you revert back to my questions / translate.webtrees.net/projects/webtrees ?
WebTrees 2.1.x---> My famility tree
PHP 8.0
Please Log in or Create an account to join the conversation.