Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Marcin Mikołajczak
funkwhale
Commits
93da3567
Commit
93da3567
authored
Jul 04, 2018
by
Eliot Berriot
Browse files
Merge branch 'patch-1' into 'develop'
Adding arabic translation See merge request
funkwhale/funkwhale!302
parents
663c6238
6ccfeaa0
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
93da3567
...
...
@@ -4,7 +4,8 @@ variables:
IMAGE_LATEST
:
$IMAGE_NAME:latest
PIP_CACHE_DIR
:
"
$CI_PROJECT_DIR/pip-cache"
PYTHONDONTWRITEBYTECODE
:
"
true"
REVIEW_DOMAIN
:
preview.funkwhale.audio
REVIEW_INSTANCE_URL
:
https://demo.funkwhale.audio
stages
:
-
review
...
...
@@ -28,16 +29,16 @@ review_front:
# this is to ensure we don't have any errors in the output,
# cf https://code.eliotberriot.com/funkwhale/funkwhale/issues/169
-
INSTANCE_URL=$REVIEW_INSTANCE_URL yarn run build | tee /dev/stderr | (! grep -i 'ERROR in')
-
mkdir -p /static/front/$CI_BUILD_REF_SLUG
-
cp -r dist/* /static/front/$CI_BUILD_REF_SLUG
-
mkdir -p /static/front/$CI_
PROJECT_PATH_SLUG-$CI_
BUILD_REF_SLUG
-
cp -r dist/* /static/front/$CI_
PROJECT_PATH_SLUG-$CI_
BUILD_REF_SLUG
cache
:
key
:
"
$CI_PROJECT_ID
__front_dependencies"
key
:
"
funkwhale
__front_dependencies"
paths
:
-
front/node_modules
-
front/yarn.lock
environment
:
name
:
review/front-$CI_BUILD_REF_
NAME
url
:
http://front-$CI_BUILD_REF_SLUG.$REVIEW_DOMAIN
name
:
review/front
/$CI_PROJECT_PATH_SLUG
-$CI_BUILD_REF_
SLUG
url
:
http://front-$CI_
PROJECT_PATH_SLUG-$CI_
BUILD_REF_SLUG.$REVIEW_DOMAIN
on_stop
:
stop_front_review
only
:
-
branches
...
...
@@ -47,14 +48,14 @@ review_front:
stop_front_review
:
stage
:
review
script
:
-
rm -rf /static/front/$CI_BUILD_REF_SLUG/
-
rm -rf /static/front/$CI_
PROJECT_PATH_SLUG-$CI_
BUILD_REF_SLUG/
variables
:
GIT_STRATEGY
:
none
when
:
manual
only
:
-
branches
environment
:
name
:
review/front-$CI_BUILD_REF_
NAME
name
:
review/front
/$CI_PROJECT_PATH_SLUG
-$CI_BUILD_REF_
SLUG
action
:
stop
tags
:
-
funkwhale-review
...
...
@@ -78,11 +79,11 @@ review_docs:
-
"
$PIP_CACHE_DIR"
script
:
-
./build_docs.sh
-
mkdir -p /static/docs/$CI_BUILD_REF_SLUG
-
cp -r $CI_PROJECT_DIR/public/* /static/docs/$CI_BUILD_REF_SLUG
-
mkdir -p /static/docs/$CI_
PROJECT_PATH_SLUG-$CI_
BUILD_REF_SLUG
-
cp -r $CI_PROJECT_DIR/public/* /static/docs/$CI_
PROJECT_PATH_SLUG-$CI_
BUILD_REF_SLUG
environment
:
name
:
review/docs-$CI_BUILD_REF_
NAME
url
:
http://docs-$CI_BUILD_REF_SLUG.$REVIEW_DOMAIN
name
:
review/docs
/$CI_PROJECT_PATH_SLUG
-$CI_BUILD_REF_
SLUG
url
:
http://docs-$CI_
PROJECT_PATH_SLUG-$CI_
BUILD_REF_SLUG.$REVIEW_DOMAIN
on_stop
:
stop_docs_review
only
:
-
branches
...
...
@@ -92,14 +93,14 @@ review_docs:
stop_docs_review
:
stage
:
review
script
:
-
rm -rf /static/docs/$CI_BUILD_REF_SLUG/
-
rm -rf /static/docs/$CI_
PROJECT_PATH_SLUG-$CI_
BUILD_REF_SLUG/
variables
:
GIT_STRATEGY
:
none
when
:
manual
only
:
-
branches
environment
:
name
:
review/docs-$CI_BUILD_REF_
NAME
name
:
review/docs
/$CI_PROJECT_PATH_SLUG
-$CI_BUILD_REF_
SLUG
action
:
stop
tags
:
-
funkwhale-review
...
...
@@ -168,7 +169,7 @@ test_front:
-
yarn install
-
yarn run unit
cache
:
key
:
"
$CI_PROJECT_ID
__front_dependencies"
key
:
"
funkwhale
__front_dependencies"
paths
:
-
front/node_modules
-
front/yarn.lock
...
...
@@ -195,7 +196,7 @@ build_front:
-
yarn run build | tee /dev/stderr | (! grep -i 'ERROR in')
-
chmod -R 750 dist
cache
:
key
:
"
$CI_PROJECT_ID
__front_dependencies"
key
:
"
funkwhale
__front_dependencies"
paths
:
-
front/node_modules
-
front/yarn.lock
...
...
changes/changelog.d/arabic.i18n
0 → 100644
View file @
93da3567
Arabic translation (!302)
front/locales/ar/LC_MESSAGES/app.po
0 → 100644
View file @
93da3567
This diff is collapsed.
Click to expand it.
front/src/locales.js
View file @
93da3567
/* eslint-disable */
export
default
{
"
locales
"
:
[
{
"
code
"
:
"
ar
"
,
"
label
"
:
"
العربية
"
},
{
"
code
"
:
"
en_US
"
,
"
label
"
:
"
English (United-States)
"
...
...
pyproject.toml
View file @
93da3567
...
...
@@ -32,6 +32,11 @@
name
=
"Documentation"
showcontent
=
true
[[tool.towncrier.type]]
directory
=
"i18n"
name
=
"i18n"
showcontent
=
true
[[tool.towncrier.type]]
directory
=
"misc"
name
=
"Other"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment