Skip to content
Snippets Groups Projects
s2fLocalization.sh 677 B
Newer Older
  • Learn to ignore specific revisions
  • samvo's avatar
    samvo committed
    #!/bin/bash
    
    locales_arr=("${LANGUAGE//:/}")
    first_locale="${locales_arr[0]:0:2}"
    
    function window_title()
    {
        case "$first_locale" in
            "ru")
                printf "Создание новой папки";;
            *)
                printf "Create new folder";;
        esac
    }
    
    function set_name()
    {
        case "$first_locale" in
            "ru")
                printf "Укажите имя новой папки";;
            *)
                printf "Set new folder name";;
        esac
    }
    
    
    samvo's avatar
    samvo committed
    
    
    samvo's avatar
    samvo committed
    #Standart system name for new folder
    function def_name()
    {
        case "$first_locale" in
            "ru")
                printf "Новая папка";;
            *)
                printf "New folder";;
        esac
    }