July 2018
Beginner
264 pages
8h 9m
English
Let's begin our activity as follows:
#!/bin/bash. gettext.shfunction i_have() { local COUNT=$1 ###i18n: Please leave $COUNT as is echo -e "\n\t" $(eval_ngettext "I have \$COUNT electronic device" "I have \$COUNT electronic devices" $COUNT)}echo $(gettext "Hello")echoecho $(gettext "What is your name?")echo###i18n: Please leave $USER as isecho -e "\t" $(eval_gettext "My name is \$USER" )echoecho $(gettext "Do you have electronics?")i_have 0i_have 1i_have 2
$ xgettext --add-comments='##i18n' -o ...
Read now
Unlock full access