Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Context Sensitive Group
freedombone
Commits
c0479cff
Commit
c0479cff
authored
8 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Language setting
parent
ac542ebe
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/freedombone-config
+1
-0
1 addition, 0 deletions
src/freedombone-config
src/freedombone-utils-international
+17
-16
17 additions, 16 deletions
src/freedombone-utils-international
with
18 additions
and
16 deletions
src/freedombone-config
+
1
−
0
View file @
c0479cff
...
...
@@ -1280,6 +1280,7 @@ function interactive_select_language {
esac
save_configuration_values
locale-gen
"
${
DEFAULT_LANGUAGE
}
"
update-locale
LANG
=
${
DEFAULT_LANGUAGE
}
update-locale
LANGUAGE
=
${
DEFAULT_LANGUAGE
}
update-locale
LC_MESSAGES
=
${
DEFAULT_LANGUAGE
}
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-utils-international
+
17
−
16
View file @
c0479cff
...
...
@@ -29,26 +29,27 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
function
locale_setup
{
if
grep
-Fxq
"locale_setup"
$COMPLETION_FILE
;
then
return
fi
if
grep
-Fxq
"locale_setup"
$COMPLETION_FILE
;
then
return
fi
apt-get
-y
install
locales locales-all debconf
apt-get
-y
install
locales locales-all debconf
if
[
!
"
$DEFAULT_LANGUAGE
"
]
;
then
DEFAULT_LANGUAGE
=
'en_GB.UTF-8'
fi
if
[
${#
DEFAULT_LANGUAGE
}
-lt
2
]
;
then
DEFAULT_LANGUAGE
=
'en_GB.UTF-8'
fi
if
[
!
"
$DEFAULT_LANGUAGE
"
]
;
then
DEFAULT_LANGUAGE
=
'en_GB.UTF-8'
fi
if
[
${#
DEFAULT_LANGUAGE
}
-lt
2
]
;
then
DEFAULT_LANGUAGE
=
'en_GB.UTF-8'
fi
update-locale
LANG
=
${
DEFAULT_LANGUAGE
}
update-locale
LANGUAGE
=
${
DEFAULT_LANGUAGE
}
update-locale
LC_MESSAGES
=
${
DEFAULT_LANGUAGE
}
update-locale
LC_ALL
=
${
DEFAULT_LANGUAGE
}
update-locale
LC_CTYPE
=
${
DEFAULT_LANGUAGE
}
locale-gen
"
${
DEFAULT_LANGUAGE
}
"
update-locale
LANG
=
${
DEFAULT_LANGUAGE
}
update-locale
LANGUAGE
=
${
DEFAULT_LANGUAGE
}
update-locale
LC_MESSAGES
=
${
DEFAULT_LANGUAGE
}
update-locale
LC_ALL
=
${
DEFAULT_LANGUAGE
}
update-locale
LC_CTYPE
=
${
DEFAULT_LANGUAGE
}
echo
'locale_setup'
>>
$COMPLETION_FILE
echo
'locale_setup'
>>
$COMPLETION_FILE
}
# NOTE: deliberately no exit 0
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment