Skip to content
Snippets Groups Projects
Commit 6a944c60 authored by drebs's avatar drebs
Browse files

Create Weblate project and import languages from git repository

parent 8ed5c2f4
No related branches found
No related tags found
No related merge requests found
...@@ -62,5 +62,8 @@ COPY apache/apache-vhost.conf /var/lib/weblate/config/apache-vhost.conf ...@@ -62,5 +62,8 @@ COPY apache/apache-vhost.conf /var/lib/weblate/config/apache-vhost.conf
# Install Weblate # Install Weblate
RUN /usr/local/sbin/weblate-setup-env.sh; /usr/local/sbin/weblate-install.sh RUN /usr/local/sbin/weblate-setup-env.sh; /usr/local/sbin/weblate-install.sh
# Create project and import languages
RUN /usr/local/sbin/weblate-setup-env.sh; /usr/local/sbin/weblate-setup-project.sh
# Setup server and serve Weblate using Apache # Setup server and serve Weblate using Apache
CMD /usr/local/sbin/weblate-setup-env.sh; /usr/local/sbin/weblate-run-server.sh CMD /usr/local/sbin/weblate-setup-env.sh; /usr/local/sbin/weblate-run-server.sh
...@@ -22,7 +22,7 @@ weblate_setup_project() { ...@@ -22,7 +22,7 @@ weblate_setup_project() {
# interpreted by bash). # interpreted by bash).
cat ${CREATE_PROJECT_SCRIPT} <(echo -e \\n) | ${MANAGE} shell cat ${CREATE_PROJECT_SCRIPT} <(echo -e \\n) | ${MANAGE} shell
LANGS='^(de|ar|ca|zh|es|fr|it|pl|pt|ru|tr)$' LANGS='^(de|ar|ca|zh|es|fr|it|pl|pt|ru|tr|fa)$'
# Step 2: import initial component (and clone from remote repository). # Step 2: import initial component (and clone from remote repository).
# #
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment