10
0
mirror of https://github.com/Llewellynvdm/Joomla-XML-Lang-stream.git synced 2024-11-23 19:17:33 +00:00

fixes a few typos that caused a build error

This commit is contained in:
Llewellyn van der Merwe 2021-06-01 07:40:05 +02:00
parent 55648108a4
commit 9fc34077a9
Signed by: Llewellyn
GPG Key ID: EFC0C720A240551C
5 changed files with 20 additions and 12 deletions

View File

@ -63,7 +63,7 @@ You are able to change a few default behaviours in the getBible API builder
push changes to github (only if there are changes)
- must be able to push (ssh authentication needed)
example: ${0##*/:-} --push
example: ./run.sh --push
======================================================
--target-folder=<path>
set folder where we place the XML static files
@ -128,10 +128,6 @@ You will need to setup a list of secrets in your fork of the XML_STREAM.
- XML_STREAM_GPG_KEY
> The name of the myprivatekeys.asc user
- XML_STREAM_GPG_USER
> A repository where you want to place the XML static files
> like: `git@github.com:llewellynvdm/Joomla-XML-Lang-stream.git`
> the github user must have push/pull access to this repo
- XML_STREAM_REPO
> A id_ed25519 ssh private key liked to the github user account
- XML_STREAM_SSH_KEY
> A id_ed25519.pub ssh public key liked to the github user account

View File

@ -25,5 +25,5 @@ xml.stream.repo.push=0
# xml stream target folder where we place the XML static files
xml.stream.target.folder=/home/username/XML-stream/src/
# kill all whiptail messages 0->normal; 1->none
# kill all messages 0->normal; 1->none
xml.stream.build.quiet=0

6
run.sh
View File

@ -35,13 +35,13 @@ function main() {
# get the main translation file of this version
showMessage "Downloading: ${URL_MAIN_LANG}\nStoring@: ${PATH_MAIN_FILE}"
# do the work now
wget -q "${URL_MAIN_LANG}" --output-document="${PATH_FILE}"
wget -q "${URL_MAIN_LANG}" --output-document="${PATH_MAIN_FILE}"
# now get each translation pack
while readXML; do
# get the language tag
LANG=$(getElement)
# act only if we have valid tag
if [ ! -z "${LANG}" ]; then
if [ -n "${LANG}" ]; then
# set the url
URL_LANG="${STREAM_ENDPOINT}&${URL_VERSION_KEY}=${row[0]}&${URL_LANGUAGE_KEY}=${LANG}"
# set the path
@ -111,6 +111,8 @@ function getElement () {
if [[ $TAG_NAME = "extension" ]] ; then
eval local $ATTRIBUTES
echo "$element"
else
echo ''
fi
}

View File

@ -1,4 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<extensionset name="Accredited Joomla! Translations" description="Accredited Joomla! Translations Updates">
<extension name="German" element="de-DE" type="package" version="4.0.0-beta7.1" detailsurl="https://update.joomla.org/language/details4/de-DE_details.xml"/>
</extensionset>
<updates>
<update>
<name>Joomla! 1.5 - Ukrainian</name>
<description>&lt;p&gt;This is the Ukrainian Language Pack for Joomla! 1.5.17&lt;/p&gt;</description>
<element>pkg_uk-UA</element>
<type>package</type>
<version>1.5.17.1</version>
<downloads>
<downloadurl type="full" format="zip" md5="036df621a4bde6dc4904b098b793cdd1" sha1="b81dcd503e1072f0a829172cbc0439931d53cd1d" sha256="2f73a6c4f29cbb5b762ec450bd559fc0c558e9c6a883897fce10280d1db2fa39" sha384="e224561f1c7e7bb511404a504fef27aefce3371c04ac8a7c6959b3799853e879d613f593d04c96d3f7a926c441565452" sha512="af590488750f69b4203378e961bd8316396154e44c9f8c31c1e6aa998c928864c594c4c4c52b394bd3e9f1954fa4cbc86c82f5934c15f6f4a87bed44fd5e612c">https://downloads.joomla.org/language-packs/translations-joomla15/downloads/joomla15-ukrainian/1-5-17-1/uk-ua_joomla_lang_full_1-5-17v1-zip?format=zip</downloadurl>
</downloads>
<targetplatform name="joomla" version="1.5"/>
</update>
</updates>