mirror of git://bitreich.org/potcasse
potcasse: rename LANG to LANGUAGE to avoid collapsing into variables used to define a locale.
This commit is contained in:
parent
fd7b98138c
commit
cb2c3425cb
|
@ -28,6 +28,7 @@ It has the following variables:
|
||||||
+ `SITE`: base HTTP URL where your podcast will be available (for example `https://tilde.example/myname/podcast/`
|
+ `SITE`: base HTTP URL where your podcast will be available (for example `https://tilde.example/myname/podcast/`
|
||||||
+ `RSSLINK`: name of the RSS feed
|
+ `RSSLINK`: name of the RSS feed
|
||||||
+ `IMAGE`: if value is not empty, potcasse will use the file `logo.png`
|
+ `IMAGE`: if value is not empty, potcasse will use the file `logo.png`
|
||||||
|
+ `LANGUAGE`: language code (such as `fr` or `en-us`) that can be potentially used by some players
|
||||||
|
|
||||||
You will share the link `$SITE/index.html` or `$SITE/$RSSLINK` to your listeners.
|
You will share the link `$SITE/index.html` or `$SITE/$RSSLINK` to your listeners.
|
||||||
|
|
||||||
|
|
6
potcasse
6
potcasse
|
@ -24,7 +24,7 @@ init() {
|
||||||
cat << EOF > metadata.sh
|
cat << EOF > metadata.sh
|
||||||
TITLE=
|
TITLE=
|
||||||
SITE=
|
SITE=
|
||||||
LANG=en-us
|
LANGUAGE=en-us
|
||||||
#uncomment to use logo.png as a logo
|
#uncomment to use logo.png as a logo
|
||||||
#IMAGE=YES
|
#IMAGE=YES
|
||||||
EOF
|
EOF
|
||||||
|
@ -81,12 +81,12 @@ gen() {
|
||||||
<title>Image of ${SITE}</title>
|
<title>Image of ${SITE}</title>
|
||||||
<link>${SITE}</link>
|
<link>${SITE}</link>
|
||||||
</image>
|
</image>
|
||||||
<language>${LANG}</language>
|
<language>${LANGUAGE}</language>
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat <<EOF >> $TMPHTML
|
cat <<EOF >> $TMPHTML
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="${LANG}">
|
<html lang="${LANGUAGE}">
|
||||||
<head>
|
<head>
|
||||||
<title>${TITLE}</title>
|
<title>${TITLE}</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
Loading…
Reference in New Issue