Skip to content

Commit

Permalink
Remove special handling of yast2-apparmor domain
Browse files Browse the repository at this point in the history
apparmor used textdomain yast2-apparmor, which would imply poject name
yast-yast2-apparmor. Now it is consistent with all other projects;
special handling is no more needed (bsc#1065569).
  • Loading branch information
stanislav-brabec committed Nov 29, 2017
1 parent eede274 commit 8c559c1
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 20 deletions.
4 changes: 0 additions & 4 deletions tools/import-lcn-as-suggestions.sh
Expand Up @@ -76,10 +76,6 @@ for PO in */*.po ; do
rm $PO.new
#BEGIN URL slug
NAME=yast-$DOMAIN
# special handling for textdomains starting by "yast2-"
if test "${NAME#yast-yast2-}" != "$NAME" ; then
NAME="yast-${NAME#yast-yast2-}"
fi
SLUG="$(echo $NAME | tr A-Z. a-z-)"
if test -n "$(echo $SLUG | sed 's/[-a-z0-9_]//g')" ; then
echo "Project URL slug \"$SLUG\" should contain only lowercase letters, \"-\" and \"_\"." >&2
Expand Down
8 changes: 0 additions & 8 deletions tools/update-tool.sh
Expand Up @@ -26,16 +26,8 @@ function weblate_create() {
esac

local WEBLATE_PROJECT=yast-$PROJECT
# special handling for textdomains starting by "yast2-"
if test "${WEBLATE_PROJECT#yast-yast2-}" != "$WEBLATE_PROJECT" ; then
WEBLATE_PROJECT="yast-${WEBLATE_PROJECT#yast-yast2-}"
fi

local PROJECT_NAME=yast-$1
# special handling for textdomains starting by "yast2-"
if test "${PROJECT_NAME#yast-yast2-}" != "$PROJECT_NAME" ; then
PROJECT_NAME="yast-${PROJECT_NAME#yast-yast2-}"
fi
local PROJECT_SLUG="$(echo $PROJECT_NAME | tr A-Z. a-z-)"
if test -n "$(echo $PROJECT_SLUG | sed 's/[-a-z0-9_]//g')" ; then
echo "Project URL slug \"$PROJECT_SLUG\" should contain only lowercase letters, \"-\" and \"_\"." >&2
Expand Down
8 changes: 0 additions & 8 deletions tools/weblate-functions.inc
Expand Up @@ -30,10 +30,6 @@ function weblate_manage() {
# weblate_create_project yast_textdomain yast_project
function weblate_create_project() {
local NAME=yast-$1
# special handling for textdomains starting by "yast2-"
if test "${NAME#yast-yast2-}" != "$NAME" ; then
NAME="yast-${NAME#yast-yast2-}"
fi
local SLUG="$(echo $NAME | tr A-Z. a-z-)"
if test -n "$(echo $SLUG | sed 's/[-a-z0-9_]//g')" ; then
echo "Project URL slug \"$SLUG\" should contain only lowercase letters, \"-\" and \"_\"." >&2
Expand Down Expand Up @@ -76,10 +72,6 @@ EOF
# weblate_create_project yast_textdomain yast_project yast_branch
function weblate_create_component() {
local PROJECT_NAME=yast-$1
# special handling for textdomains starting by "yast2-"
if test "${PROJECT_NAME#yast-yast2-}" != "$PROJECT_NAME" ; then
PROJECT_NAME="yast-${PROJECT_NAME#yast-yast2-}"
fi
local PROJECT_SLUG="$(echo $PROJECT_NAME | tr A-Z. a-z-)"
if test -n "$(echo $PROJECT_SLUG | sed 's/[-a-z0-9_]//g')" ; then
echo "Project URL slug \"$PROJECT_SLUG\" should contain only lowercase letters, \"-\" and \"_\"." >&2
Expand Down

0 comments on commit 8c559c1

Please sign in to comment.