#85 use the new migration platform
Merged 10 months ago by bcotton. Opened 10 months ago by jibecfed.
fedora-web/ jibecfed/websites master  into  master

file modified
+1 -2
@@ -18,8 +18,7 @@ 

      python-dateutil \

      python-dogpile-cache \

      python-requests \

-     python-fedfind \

-     python-zanata-client && \

+     python-fedfind && \

        dnf clean all

  

  ENV FLASK_APP main.py

file modified
+7 -1
@@ -1,7 +1,13 @@ 

- # websites

+ # Websites

  

  This repository is the home of getfedora.org, and hopefully eventually the

  other Fedora Project websites.

  

+ ### Contributing

+ 

  Documentation for getting started with using it can be found here:

  https://docs.fedoraproject.org/en-US/websites/

+ 

+ Translations are handled by the Fedora [localization team](https://fedoraproject.org/wiki/L10N) on [Fedora Weblate](https://translate.stg.fedoraproject.org/projects/fedora-websites/).

+ 

+ [![Translation status](https://translate.stg.fedoraproject.org/widgets/fedora-websites/-/287x66-white.png)](https://translate.stg.fedoraproject.org/engage/fedora-websites/?utm_source=widget)

@@ -1,7 +1,9 @@ 

  #!/usr/bin/env bash

- zanata pull --transdir translations

- for file in translations/*.po; do

-   mkdir -p $(echo $file | sed 's/\.po//')/LC_MESSAGES

-   mv $file $(echo $file | sed 's/\.po//')/LC_MESSAGES/messages.po

- done

+ TRANS_TMP=$(mktemp -d)

+ 

+ git clone ssh://git@pagure.io/fedora-web/translations.git "$TRANS_TMP"

+ mkdir -p translations/

+ cp -R "$TRANS_TMP"/getfedora.org-redesign/* translations/

+ rm -rf "$TRANS_TMP"

+ 

  pybabel compile -d translations

@@ -0,0 +1,17 @@ 

+ #!/usr/bin/env bash

+ 

+ TRANS_TMP=$(mktemp -d)

+ 

+ git clone ssh://git@pagure.io/fedora-web/translations.git "$TRANS_TMP"

+ 

+ cp getfedora.org.pot "$TRANS_TMP"/getfedora.org-redesign/

+ 

+ pushd "$TRANS_TMP"

+ 

+ git add *.pot

+ git commit -m "update pot file for getfedora.org-redesign"

+ git push

+ 

+ popd

+ 

+ rm -rf "$TRANS_TMP"

@@ -2,5 +2,5 @@ 

  pybabel extract -F ../babel.cfg -o getfedora.org.pot . ../partials/

  echo

  echo

- echo 'If you have a valid ~/.config/zanata.ini, you may now run:'

- echo '   zanata push getfedora.org.pot'

+ echo 'If you have write access to https://pagure.io/fedora-web/translations, you may now run:'

+ echo './scripts/push-pot.sh'

Using Weblate means to use a dedicated repository for translations instead of zanata pull/push.

I took the opportunity to reorganize files so changing the structure isn't required anymore: https://pagure.io/fedora-web/translations/c/51e09347070eddc2f4217b8c9a233eeff0d3b19d

2 new commits added

  • remove zanata references
  • make it executable
10 months ago

3 new commits added

  • remove zanata references
  • make it executable
  • use dedicated repository instead zanata
10 months ago

rebased onto 59eb74a

10 months ago

Metadata Update from @bcotton:
- Request assigned

10 months ago

LGTM, merging with a rebase.

Metadata Update from @bcotton:
- Pull-request tagged with: translations

10 months ago

Pull-Request has been merged by bcotton

10 months ago