mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
- locale: rework helperscripts
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# usage: cut -d' ' -f1 english.locale | LC_ALL=C sort | uniq | tr [:lower:] [:upper:] | tr \. \_ | tr \- \_ | tr -d \? | ./helpers/create-locals.h
|
# usage: cut -d' ' -f1 english.locale | LC_ALL=C sort | uniq | tr [:lower:] [:upper:] | tr \. \_ | tr \- \_ | tr -d \? | ./helpers/create-locals.h
|
||||||
cat > locals.h <<EOF
|
cat > locals.h <<EOH
|
||||||
#ifndef __locals__
|
#ifndef __locals__
|
||||||
#define __locals__
|
#define __locals__
|
||||||
|
|
||||||
@@ -28,15 +28,12 @@ cat > locals.h <<EOF
|
|||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
NONEXISTANT_LOCALE,
|
NONEXISTANT_LOCALE,
|
||||||
EOF
|
EOH
|
||||||
|
|
||||||
while read id; do
|
while read id; do
|
||||||
if [[ \
|
echo $'\t'"LOCALE_$id," >> locals.h;
|
||||||
"$id" != "CAM_WRONG" \
|
|
||||||
]] ;
|
|
||||||
then
|
|
||||||
echo $'\t'"LOCALE_$id," >> locals.h;
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
|
|
||||||
cat >> locals.h <<EOF
|
cat >> locals.h <<EOF
|
||||||
} neutrino_locale_t;
|
} neutrino_locale_t;
|
||||||
#endif
|
#endif
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# usage: cut -d' ' -f1 english.locale | LC_ALL=C sort | uniq | ./helpers/create-locals_intern.h
|
# usage: cut -d' ' -f1 english.locale | LC_ALL=C sort | uniq | ./helpers/create-locals_intern.h
|
||||||
cat > locals_intern.h <<EOF
|
cat > locals_intern.h <<EOH
|
||||||
#ifndef __locals_intern__
|
#ifndef __locals_intern__
|
||||||
#define __locals_intern__
|
#define __locals_intern__
|
||||||
|
|
||||||
@@ -28,22 +28,13 @@ cat > locals_intern.h <<EOF
|
|||||||
const char * locale_real_names[] =
|
const char * locale_real_names[] =
|
||||||
{
|
{
|
||||||
"INTERNAL ERROR - PLEASE REPORT",
|
"INTERNAL ERROR - PLEASE REPORT",
|
||||||
EOF
|
EOH
|
||||||
|
|
||||||
while read id; do
|
while read id; do
|
||||||
if [[ \
|
echo $'\t'"\"$id\"," >> locals_intern.h;
|
||||||
"$id" != "cam.wrong" \
|
|
||||||
]] ;
|
|
||||||
then
|
|
||||||
echo $'\t'"\"$id\"," >> locals_intern.h;
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
|
|
||||||
cat >> locals_intern.h <<EOF
|
cat >> locals_intern.h <<EOF
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
EOF
|
EOF
|
||||||
# // infoviewer.cantdecode
|
|
||||||
# miscsettings.startbhdriver: only for HAVE_DVB_API_VERSION == 1
|
|
||||||
# // parentallock.onstart
|
|
||||||
# // streamfeatures.info
|
|
||||||
# streaminfo.signal: // streaminfo2.cpp
|
|
||||||
# // timerlist.empty
|
|
||||||
|
Reference in New Issue
Block a user