rilpoint_mw113

FAQ

 
Line 38: Line 38:
sudo /etc/init.d/apache2 restart
sudo /etc/init.d/apache2 restart
 +
 +
==Bash localization - How to?==
 +
 +
Create a shell script as follows :
 +
 +
<nowiki>#!/bin/bash</nowiki>
 +
 +
<nowiki>### The location of the message catalog files ###</nowiki>
 +
 +
TEXTDOMAINDIR=/usr/share/locale
 +
 +
<nowiki>### our .mo file name ###</nowiki>
 +
 +
TEXTDOMAIN=greet
 +
 +
<nowiki>### Translate Welcome!  string according to the current locale ###</nowiki>
 +
 +
echo $"Welcome!"
 +
 +
Note echo command with $"..." syntax. Save and close the file. Type the following commands to create language specific files:
 +
 +
$ bash --dump-po-strings greet > greet.pot

Current revision as of 07:24, 9 October 2013