-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Internationalization #2
Comments
Hmm interesting but that's a bit overkill. Better stick to one file only when possible. Easiest would be to have all in english only of course. |
is there a simpler way to do it than that methodology ? |
Alternative could be using variables
|
I began something like this if [[ "${LANGUAGE:0:2}" == 'fr' ]] then txt_jumptostart="Hop, allons vers ~/dev/scribus" txt_help=" usage : maksvn [-h]ou[-?] [-d]ou[clean] [-nomaj] [diff [dest]] met à jour le source svn de scribus 1.5 et compile === OPTIONS ==================== -h ou -? : affiche cette aide -d ou clean : efface d'abord les bin et objs déjà là -nomaj : pas de mise à jour svn -diff ou diff : crée le fichier de diff dans dest.diff si dest est précisé (dans svnhead.diff sinon) === INFOS ====================== " txt_diffdest="ok on va mettre le diff dans " txt_diffdel="Effacement de " fi |
What does ${LANGUAGE:0:2} mean? (specifically the ':0:2') |
$LANGUAGE is fr_CA:fr_FR on my session |
Doesn't work in OS X. But I get it :) |
Some shell might not know that syntax. Got to use widely spread syntax. What shell is yours ? |
Ok
|
so should we make a part of the script to recognize locale ? or just give the user an option ? |
its now in english |
Is this the direction we want to go in?
http://www.linuxjournal.com/content/internationalizing-those-bash-scripts
The text was updated successfully, but these errors were encountered: