<commit_before>#!/bin/sh
# Copyright (c) 2009 The Open Source Geospatial Foundation.
# Licensed under the GNU LGPL.
# 
# This library is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation, either version 2.1 of the License,
# or any later version.  This library is distributed in the hope that
# it will be useful, but WITHOUT ANY WARRANTY, without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU Lesser General Public License for more details, either
# in the "LICENSE.LGPL.txt" file distributed with this software or at
# web page "http://www.fsf.org/licenses/lgpl.html".

# About:
# =====
# This script will install additional language support
# Language choice was made based on the 
# 1. SIL Ethnologue http://en.wikipedia.org/wiki/List_of_languages_by_number_of_native_speakers
# 2. Ubuntu Language packa available
# 3. OSGeo Chapter Presence ?
# TODO: find out which applications support which languages
#
# Running:
# =======
# Pick a different language at the login screen
#
PACKAGES=""

#TODO: make an alternate list base on OSGeo chapters
for CODE in \
  zh \ #Chinese(Mandarin) 
  sp \ #Spanish 
  en \ #English 
  hi \ #Hindi/Urdu
  ar \ #Arabic 
  bn \ #Bengali
  pt \ #Portuguese 
  ru \ #Russian
  ja \ #Japanese
  de \ #German
  jv \ #Javanese
  pa \ #Punjabi pa
# no language code for Wu may not be a written language
  fr \ #French 
  te \ #Telugu
  vi \ #Vietnamese
  mr \ #Marathi
  ko \ #Korean
  ta \ #Tamil
  it \ #Italian
  tr \ #Turkish
; do
  #Currently simulates in order to test for packages and how much space it will take
PACKAGES="$PACKAGES language-support-$code" 
  #Additional packages may have language packs specific to them ie: firefox	
done
apt-get install -s $PACKAGES

#TODO: allow select at boot splash screen

<commit_msg>Attempt 2 for language script<commit_after>#!/bin/sh
# Copyright (c) 2009 The Open Source Geospatial Foundation.
# Licensed under the GNU LGPL.
# 
# This library is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation, either version 2.1 of the License,
# or any later version.  This library is distributed in the hope that
# it will be useful, but WITHOUT ANY WARRANTY, without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU Lesser General Public License for more details, either
# in the "LICENSE.LGPL.txt" file distributed with this software or at
# web page "http://www.fsf.org/licenses/lgpl.html".

# About:
# =====
# This script will install additional language support
# Language choice was made based on the 
# 1. SIL Ethnologue http://en.wikipedia.org/wiki/List_of_languages_by_number_of_native_speakers
# 2. Ubuntu Language packa available
# 3. OSGeo Chapter Presence ?
# TODO: find out which applications support which languages
#
# Running:
# =======
# Pick a different language at the login screen
#
PACKAGES=""

#TODO: make an alternate list base on OSGeo chapters
#TODO: figure out how to do inline comment with name of language, possibly store list in a different file
for CODE in \
  zh \
  sp \
  en \
  hi \
  ar \
  bn \
  pt \
  ru \
  ja \
  de \
  jv \
  pa \
# no language code for Wu may not be a written language
  fr \
  te \
  vi \
  mr \
  ko \
  ta \
  it \
  tr \
; do
  #Currently simulates in order to test for packages and how much space it will take
PACKAGES="$PACKAGES language-support-$code" 
  #Additional packages may have language packs specific to them ie: firefox	
done
apt-get install -s $PACKAGES

#TODO: allow select at boot splash screen


{'fraction_non_alphanumeric': 0.0758419517369398, 'fraction_numerical': 0.00503845133916733, 'mean_word_length': 3.511961722488038, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5180783', 'n_tokens_mistral': 1174, 'n_tokens_neox': 1089, 'n_words': 516}