Skip to content

Commit ba07f4e

Browse files
committed
Fix bugs in translation issue creation script
Related to: #3339
1 parent c03b79f commit ba07f4e

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

tools/create-translation-issues.sh

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,13 @@ if ! gh auth status &> /dev/null; then
5454
exit 1
5555
fi
5656

57-
LOGGED_IN_AS=$(gh auth status | grep Logged | sed -e 's/^.*Logged in .*as //' -e 's/ ([^)]*)$//')
57+
LOGGED_IN_AS=$(gh auth status | grep Logged | sed -e 's/^.*Logged in to github.com account //' -e 's/ ([^)]*)$//')
5858

5959
RELEASE=$1
6060
DEADLINE=$2
6161
TYPE=$3
6262
EXTRA_TEXT=${4:-}
6363
MILESTONE="Release ${RELEASE}"
64-
PROJECT=Tracking
6564

6665
# shellcheck disable=SC2034 # shellcheck can't know that this will be used with envsubst, so "unused" variable is correct here.
6766
START_DATE=$(date -Idate)
@@ -114,8 +113,11 @@ ${EXTRA_TEXT}${MULTIPLE_TRANSLATORS_TEXT}
114113
115114
Further documentation can be found in [TRANSLATING.md](https://github.com/jamulussoftware/jamulus/blob/main/docs/TRANSLATING.md).
116115
116+
117117
Thanks for contributing to Jamulus!
118118
119+
In case you are **NOT** planning to update **${LANG}**, please comment on this issue.
120+
119121
<a href="https://hosted.weblate.org/engage/jamulus/"><img src="https://hosted.weblate.org/widgets/jamulus/-/jamulus-app/multi-auto.svg" alt="Translation status" /></a>
120122
121123
**[Weblate progress](https://hosted.weblate.org/changes/browse/jamulus/jamulus-app/${LANG}/?start_date=${START_DATE})**'
@@ -159,12 +161,6 @@ Please [replace with new URLs](https://github.com/jamulussoftware/jamuluswebsite
159161
160162
<!-- add URLs here-->
161163
162-
![settings-profile](https://user-images.githubusercontent.com/4561747/178144679-bef8518c-f095-4848-86bf-7639cb508505.png)
163-
164-
![server-window-setup](https://user-images.githubusercontent.com/4561747/178142684-1b85e654-78be-4909-a76c-945d7a0f7ccc.png)
165-
166-
![server-window-options](https://user-images.githubusercontent.com/4561747/178142687-da256fa5-d7b8-47ab-9265-63c3c9760841.png)
167-
168164
'
169165

170166
get_languages() {
@@ -242,7 +238,7 @@ create_translation_issue_for_lang() {
242238
# If there's no existing issue, create one
243239
if [[ -z $existing_issue ]]; then
244240
echo "Creating Issue to translate $lang for $RELEASE"
245-
URL=$(gh issue create --title "$title" --label translation --project "$PROJECT" --body "$body" --assignee "$translators" --milestone "$MILESTONE")
241+
URL=$(gh issue create --title "$title" --label translation --body "$body" --assignee "$translators" --milestone "$MILESTONE")
246242
existing_issue=${URL/*\//}
247243
else
248244
echo "Issue to translate $lang for $RELEASE already exists"

0 commit comments

Comments
 (0)