Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/sh | ||
|
||
export HOME=$SNAP_USER_DATA | ||
|
||
export I18NPATH=$SNAP/usr/share/i18n | ||
export LOCPATH=$SNAP_USER_DATA | ||
|
||
APPLANG=en_US | ||
APPENC=UTF-8 | ||
APPLOC="$APPLANG.$APPENC" | ||
|
||
# generate a locale so we get properly working charsets and graphics | ||
if [ ! -e $SNAP_USER_DATA/$APPLOC ]; then | ||
localedef --prefix=$SNAP_USER_DATA -f $APPENC -i $APPLANG $SNAP_USER_DATA/$APPLOC | ||
fi | ||
|
||
export LC_ALL=$APPLOC | ||
export LANG=$APPLOC | ||
export LANGUAGE=${APPLANG%_*} | ||
|
||
$SNAP/bin/nikola "$@" |