- Posts: 249
Question
messages.po-files in dev enviroment
- Lars1963
-
Topic Author
- Offline
- Junior Member
-
Less
More
6 months 3 weeks ago - 6 months 3 weeks ago #1
by Lars1963
messages.po-files in dev enviroment was created by Lars1963
For testing, I wanted to create the actual dev-version on my local wamp-server. Of course I performed
before staring a fresh install of the dev-version. At setup (in German) I become the error message that the messages.po in /resources/lang/de isn't there. This was easily solved by downloading it from github.
My question: on downloading the github-repository none of the messages.po-files are included in the dev-zip-file. So they need to be downloaded one by one.
Is this correct? Or should they be included in the dev-zip-file of the main repository?
Code:
composer install --no-dev
My question: on downloading the github-repository none of the messages.po-files are included in the dev-zip-file. So they need to be downloaded one by one.
Is this correct? Or should they be included in the dev-zip-file of the main repository?
Last edit: 6 months 3 weeks ago by Lars1963.
Please Log in or Create an account to join the conversation.
- fisharebest
-
- Offline
- Administrator
-
6 months 3 weeks ago #2
by fisharebest
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Replied by fisharebest on topic messages.po-files in dev enviroment
I guess you have taken an "export" of the code - which excludes all files not used in releases.
The build process for releases combines this "export" with the language files (converted from PO to PHP) to create the actual release.
If you intend to do any development, you should clone the source code repository using:
git clone github.com/fisharebest/webtrees
You now have two options.
1) Use this copy of the source code directly. Just run "composer install".
messages.php files will be created automatically from messages.po on first use.
This contains test scripts, tools, etc.
2) Create a release based on the current dev code.
Run "composer webtrees:build"
This script is used to build official releases, and will generate a file webtrees-VERSION.zip.
The build process for releases combines this "export" with the language files (converted from PO to PHP) to create the actual release.
If you intend to do any development, you should clone the source code repository using:
git clone github.com/fisharebest/webtrees
You now have two options.
1) Use this copy of the source code directly. Just run "composer install".
messages.php files will be created automatically from messages.po on first use.
This contains test scripts, tools, etc.
2) Create a release based on the current dev code.
Run "composer webtrees:build"
This script is used to build official releases, and will generate a file webtrees-VERSION.zip.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- Lars1963
-
Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 249
6 months 3 weeks ago - 6 months 3 weeks ago #3
by Lars1963
Replied by Lars1963 on topic messages.po-files in dev enviroment
Okay, I just tried to clone and build. I got some error messages because of failing testcase.
By cloning the folder tests and its subfolders don't come with, as you can see
Should the be the case?
And by missing the testcases the build gives me a
By cloning the folder tests and its subfolders don't come with, as you can see
Should the be the case?
And by missing the testcases the build gives me a
Code:
Script php index.php compile-po-files handling the webtrees:build event returned with error code 255
Last edit: 6 months 3 weeks ago by Lars1963.
Please Log in or Create an account to join the conversation.
- fisharebest
-
- Offline
- Administrator
-
6 months 3 weeks ago #4
by fisharebest
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Replied by fisharebest on topic messages.po-files in dev enviroment
> Should the be the case?
No. I would expect you to have the tests folder
I just tried it. Works for me. I typed these commands
It produces a file webtrees-XXXX.zip.
If you've checked out a specific tag, the XXX will be the tag name. Otherwise it will be a random-ish string.
No. I would expect you to have the tests folder
I just tried it. Works for me. I typed these commands
Code:
git clone https://github.com/fisharebest/webtrees
cd webtrees
composer webtrees:build
It produces a file webtrees-XXXX.zip.
If you've checked out a specific tag, the XXX will be the tag name. Otherwise it will be a random-ish string.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- Lars1963
-
Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 249
6 months 3 weeks ago #5
by Lars1963
Replied by Lars1963 on topic messages.po-files in dev enviroment
Please Log in or Create an account to join the conversation.
- fisharebest
-
- Offline
- Administrator
-
6 months 3 weeks ago #6
by fisharebest
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Replied by fisharebest on topic messages.po-files in dev enviroment
If you are short on disk-space, use "git clone --depth=1".
This just downloads the latest version of each file, not all the historic versions.
It needs about 1/10th of the disk space.
This just downloads the latest version of each file, not all the historic versions.
It needs about 1/10th of the disk space.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- Lars1963
-
Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 249
6 months 3 weeks ago #7
by Lars1963
Replied by Lars1963 on topic messages.po-files in dev enviroment
yeah, that was the trick!
But, I still get an error on the build:
So, the messages.php aren't being created.
But, I still get an error on the build:
Code:
Script php index.php compile-po-files handling the webtrees:build event returned with error code 255
Please Log in or Create an account to join the conversation.